diff options
Diffstat (limited to 'tex/context/base/char-ini.lua')
-rw-r--r-- | tex/context/base/char-ini.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tex/context/base/char-ini.lua b/tex/context/base/char-ini.lua index 5c4a40bad..e61f1ce78 100644 --- a/tex/context/base/char-ini.lua +++ b/tex/context/base/char-ini.lua @@ -566,12 +566,17 @@ end function characters.uccode(n) return data[n].uccode or n end function characters.lccode(n) return data[n].lccode or n end -function characters.flush(n) +function characters.flush(n,direct) local c = data[n] if c and c.contextname then - texsprint(texcatcodes, "\\"..c.contextname) + c = "\\" .. c.contextname else - texsprint(utfchar(n)) + c = utfchar(n) + end + if direct then + return c + else + texsprint(c) end end |