summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/toks-ini.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/toks-ini.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/toks-ini.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/context/base/toks-ini.lua b/Master/texmf-dist/tex/context/base/toks-ini.lua
index 1f4d48466b2..ef4b5406b66 100644
--- a/Master/texmf-dist/tex/context/base/toks-ini.lua
+++ b/Master/texmf-dist/tex/context/base/toks-ini.lua
@@ -5,8 +5,7 @@ if not modules then modules = { } end modules ['toks-ini'] = {
license = "see context related readme files"
}
-local utf = unicode.utf8
-local utfbyte, utfchar = utf.byte, utf.char
+local utfbyte, utfchar, utfvalues = utf.byte, utf.char, utf.values
local format, gsub = string.format, string.gsub
--[[ldx--
@@ -56,7 +55,7 @@ tokens.other = function(chr) return createtoken(utfbyte(chr), 12) end
tokens.letters = function(str)
local t, n = { }, 0
- for chr in string.utfvalues(str) do
+ for chr in utfvalues(str) do
n = n + 1
t[n] = createtoken(chr, 11)
end
@@ -198,7 +197,7 @@ collectors.showtoken = showtoken
function collectors.trace()
local t = get_next()
- texio.write_nl(showtoken(t))
+ logs.report("tokenlist",showtoken(t))
return t
end