diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/lang-rep.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/lang-rep.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/lang-rep.lua b/Master/texmf-dist/tex/context/base/mkiv/lang-rep.lua index 93509d82a3e..a5c4d97c826 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/lang-rep.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/lang-rep.lua @@ -42,6 +42,8 @@ local report_replacement = logs.reporter("languages","replacements") local glyph_code = nodes.nodecodes.glyph local nuts = nodes.nuts +local tonut = nuts.tonut +local tonode = nuts.tonode local getnext = nuts.getnext local getprev = nuts.getprev @@ -215,7 +217,9 @@ local function tonodes(list,template) end function replacements.handler(head) + head = tonut(head) local current = head + local done = false local overload = attributes.applyoverloads while current do if getid(current) == glyph_code then @@ -323,13 +327,14 @@ function replacements.handler(head) if overload then overload(final,getnext(precurrent),getprev(current)) end + done = true end end end -- we're one ahead now but we need to because we handle words current = getnext(current) end - return head + return tonode(head), done end local enabled = false |