diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/unic-ini.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/unic-ini.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/context/base/unic-ini.lua b/Master/texmf-dist/tex/context/base/unic-ini.lua index cca1f06175a..132c92efaab 100644 --- a/Master/texmf-dist/tex/context/base/unic-ini.lua +++ b/Master/texmf-dist/tex/context/base/unic-ini.lua @@ -11,9 +11,13 @@ local utfchar = utf.char -- Beware, initializing unicodechar happens at first usage and takes -- 0.05 -- 0.1 second (lots of function calls). -function commands.unicodechar(asked) - local n = characters.unicodechar(asked) - if n then - context(utfchar(n)) +interfaces.implement { + name = "unicodechar", + arguments = "string", + actions = function(asked) + local n = characters.unicodechar(asked) + if n then + context(utfchar(n)) + end end -end +} |