diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-03-12 18:45:40 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-03-12 18:45:40 +0100 |
commit | 188632f4b0f71c5170a20f1b151bde68f603bfd9 (patch) | |
tree | 49a5a917a1ce6f17cbb6f542dff5b8254cd74c70 /tex/context/modules/mkiv/s-math-characters.lua | |
parent | b7a7de31716616b7a5176259e2b60349f8089615 (diff) | |
download | context-188632f4b0f71c5170a20f1b151bde68f603bfd9.tar.gz |
2022-03-12 11:26:00
Diffstat (limited to 'tex/context/modules/mkiv/s-math-characters.lua')
-rw-r--r-- | tex/context/modules/mkiv/s-math-characters.lua | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/tex/context/modules/mkiv/s-math-characters.lua b/tex/context/modules/mkiv/s-math-characters.lua index fc697cae5..aed3258d2 100644 --- a/tex/context/modules/mkiv/s-math-characters.lua +++ b/tex/context/modules/mkiv/s-math-characters.lua @@ -157,8 +157,8 @@ local alllookups = collectalllookups(tfmdata,"math","dflt") -- skip else local next_sizes = char.next - local vvariants = char.vvariants or char.vert_variants - local hvariants = char.hvariants or char.horiz_variants + local vparts = char.vparts or char.vert_variants + local hparts = char.hparts or char.horiz_variants local mathclass = info.mathclass local mathspec = info.mathspec local mathsymbol = info.mathsymbol @@ -208,32 +208,33 @@ local alllookups = collectalllookups(tfmdata,"math","dflt") done[next_sizes] = true context.showmathcharactersnextentry(n,f_unicode(next_sizes),next_sizes) next_sizes = characters[next_sizes] - vvariants = next_sizes.vvariants or next_sizes.vert_variants or vvariants - hvariants = next_sizes.hvariants or next_sizes.horiz_variants or hvariants + vparts = next_sizes.vparts or next_sizes.vert_variants or vparts + hparts = next_sizes.hparts or next_sizes.horiz_variants or hparts if next_sizes then next_sizes = next_sizes.next end end end context.showmathcharactersstopnext() - if hvariants or vvariants then + if vparts or hparts then context.showmathcharactersbetweennextandvariants() end end - if hvariants then - context.showmathcharactersstarthvariants() - for i=1,#hvariants do -- we might go top-down in the original - local vi = hvariants[i] - context.showmathcharactershvariantsentry(i,f_unicode(vi.glyph),vi.glyph) + if vparts then + context.showmathcharactersstartvparts() + for i=1,#vparts do -- we might go top-down in the original + local vi = vparts[i] + context.showmathcharactersvpartsentry(i,f_unicode(vi.glyph),vi.glyph) end - context.showmathcharactersstophvariants() - elseif vvariants then - context.showmathcharactersstartvvariants() - for i=1,#vvariants do - local vi = vvariants[#vvariants-i+1] - context.showmathcharactersvvariantsentry(i,f_unicode(vi.glyph),vi.glyph) + context.showmathcharactersstopvparts() + end + if hparts then + context.showmathcharactersstarthparts() + for i=1,#hparts do + local hi = hparts[#hparts-i+1] + context.showmathcharactershpartsentry(i,f_unicode(hi.glyph),hi.glyph) end - context.showmathcharactersstopvvariants() + context.showmathcharactersstophparts() end local lookups = alllookups[unicode] if lookups then |