diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/modules/mkiv/s-languages-hyphenation.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/modules/mkiv/s-languages-hyphenation.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/context/modules/mkiv/s-languages-hyphenation.lua b/Master/texmf-dist/tex/context/modules/mkiv/s-languages-hyphenation.lua index 65fd1ab1443..6d3cf3d3e83 100644 --- a/Master/texmf-dist/tex/context/modules/mkiv/s-languages-hyphenation.lua +++ b/Master/texmf-dist/tex/context/modules/mkiv/s-languages-hyphenation.lua @@ -29,8 +29,7 @@ local newrule = nodepool.rule local newglue = nodepool.glue local insert_node_after = nuts.insert_after - -local nextglyph = nuts.traversers.glyph +local traverse_by_id = nuts.traverse_id local tonut = nodes.tonut local tonode = nodes.tonode @@ -130,7 +129,7 @@ end local function getlanguage(head,l,left,right) local t = { } - for n in nextglyph, tonut(head) do + for n in traverse_by_id(glyph_code,tonut(head)) do t[n] = { getlang(n), getfield(n,"left"), @@ -149,7 +148,7 @@ function moduledata.languages.hyphenation.showhyphens(head) local marked = { } local cached = { } -- somehow assigning -1 fails - for n in nextglyph, tonut(head) do + for n in traverse_by_id(glyph_code,tonut(head)) do cached[n] = { getlang(n), getfield(n,"left"), |