summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/syst-con.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/syst-con.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/syst-con.lua28
1 files changed, 9 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/context/base/syst-con.lua b/Master/texmf-dist/tex/context/base/syst-con.lua
index 519808e175d..b2f6c42afc8 100644
--- a/Master/texmf-dist/tex/context/base/syst-con.lua
+++ b/Master/texmf-dist/tex/context/base/syst-con.lua
@@ -13,23 +13,13 @@ converters = converters or { }
the top of <l n='luatex'/>'s char range but outside the unicode range.</p>
--ldx]]--
-do
- local char, flush, format = unicode.utf8.char, tex.sprint, string.format
+local char, texsprint, format = unicode.utf8.char, tex.sprint, string.format
- function converters.hexstringtonumber(n) flush(tonumber(n,16)) end
- function converters.octstringtonumber(n) flush(tonumber(n, 8)) end
- function converters.rawcharacter (n) flush(char(0x110000+n)) end
-
- function converters.lchexnumber (n) flush(format("%x" ,n)) end
- function converters.uchexnumber (n) flush(format("%X" ,n)) end
- function converters.lchexnumbers (n) flush(format("%02x",n)) end
- function converters.uchexnumbers (n) flush(format("%02X",n)) end
- function converters.octnumber (n) flush(format("%03o",n)) end
-
- function converters.lchexnumber (n) flush(("%x" ):format(n)) end
- function converters.uchexnumber (n) flush(("%X" ):format(n)) end
- function converters.lchexnumbers (n) flush(("%02x"):format(n)) end
- function converters.uchexnumbers (n) flush(("%02X"):format(n)) end
- function converters.octnumber (n) flush(("%03o"):format(n)) end
-
-end
+function converters.hexstringtonumber(n) texsprint(tonumber(n,16)) end
+function converters.octstringtonumber(n) texsprint(tonumber(n, 8)) end
+function converters.rawcharacter (n) texsprint(char(0x110000+n)) end
+function converters.lchexnumber (n) texsprint(format("%x" ,n)) end
+function converters.uchexnumber (n) texsprint(format("%X" ,n)) end
+function converters.lchexnumbers (n) texsprint(format("%02x",n)) end
+function converters.uchexnumbers (n) texsprint(format("%02X",n)) end
+function converters.octnumber (n) texsprint(format("%03o",n)) end