summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/toks-aux.lmt
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/toks-aux.lmt')
-rw-r--r--tex/context/base/mkxl/toks-aux.lmt38
1 files changed, 20 insertions, 18 deletions
diff --git a/tex/context/base/mkxl/toks-aux.lmt b/tex/context/base/mkxl/toks-aux.lmt
index 9377bad42..c152afb36 100644
--- a/tex/context/base/mkxl/toks-aux.lmt
+++ b/tex/context/base/mkxl/toks-aux.lmt
@@ -157,7 +157,7 @@ local function getthem(getter,post)
for k, v in next, getter() do
codes[k] = gsub(v,"[_ ]","")
end
- if post ~= "" then
+ if post and post ~= "" then
if environment.initex then
for k, v in next, codes do
texintegerdef(v .. post,k,"immutable")
@@ -176,23 +176,25 @@ local function getthem(getter,post)
return utilities.storage.allocate(table.swapped(codes,codes))
end
-tex.discoptioncodes = getthem(tex.getdiscoptionvalues, "discoptioncode")
-tex.flagcodes = getthem(tex.getflagvalues, "flagcode" )
-tex.frozenparcodes = getthem(tex.getfrozenparvalues, "frozenparcode")
-tex.glyphoptioncodes = getthem(tex.getglyphoptionvalues, "glyphoptioncode")
-tex.groupcodes = getthem(tex.getgroupvalues, "groupcode")
-tex.hyphenationcodes = getthem(tex.gethyphenationvalues, "hyphenationcode")
-tex.mathcontrolcodes = getthem(tex.getmathcontrolvalues, "mathcontrolcode")
----.mathflattencodes = getthem(tex.getmathflattenvalues, "mathflattencode")
-tex.noadoptioncodes = getthem(tex.getnoadoptionvalues, "") -- only at lua end
-tex.normalizelinecodes = getthem(tex.getnormalizelinevalues, "normalizecode") -- we keep the short name
-tex.normalizeparcodes = getthem(tex.getnormalizeparvalues, "normalizeparcode")
-tex.automigrationcodes = getthem(tex.getautomigrationvalues, "automigrationcode") -- only at lua end
-tex.parcontextcodes = getthem(tex.getparcontextvalues, "parcontextcode")
-tex.textcontrolcodes = getthem(tex.gettextcontrolvalues, "") -- only at lua end
-tex.listanchorcodes = getthem(tex.getlistanchorvalues, "listanchorcode")
-tex.listsigncodes = getthem(tex.getlistsignvalues, "listsigncode")
-tex.classoptioncodes = getthem(tex.getmathclassoptionvalues, "classoptioncode")
+tex.discoptioncodes = getthem(tex.getdiscoptionvalues, "discoptioncode")
+tex.flagcodes = getthem(tex.getflagvalues, "flagcode" )
+tex.frozenparcodes = getthem(tex.getfrozenparvalues, "frozenparcode")
+tex.glyphoptioncodes = getthem(tex.getglyphoptionvalues, "glyphoptioncode")
+tex.groupcodes = getthem(tex.getgroupvalues, "groupcode")
+tex.hyphenationcodes = getthem(tex.gethyphenationvalues, "hyphenationcode")
+tex.mathcontrolcodes = getthem(tex.getmathcontrolvalues, "mathcontrolcode")
+---.mathflattencodes = getthem(tex.getmathflattenvalues, "mathflattencode")
+tex.noadoptioncodes = getthem(tex.getnoadoptionvalues ) -- only at lua end
+tex.normalizelinecodes = getthem(tex.getnormalizelinevalues, "normalizecode") -- we keep the short name
+tex.normalizeparcodes = getthem(tex.getnormalizeparvalues, "normalizeparcode")
+tex.automigrationcodes = getthem(tex.getautomigrationvalues, "automigrationcode")
+tex.parcontextcodes = getthem(tex.getparcontextvalues, "parcontextcode")
+tex.textcontrolcodes = getthem(tex.gettextcontrolvalues ) -- only at lua end
+tex.listanchorcodes = getthem(tex.getlistanchorvalues, "listanchorcode")
+tex.listsigncodes = getthem(tex.getlistsignvalues, "listsigncode")
+tex.classoptioncodes = getthem(tex.getmathclassoptionvalues, "classoptioncode")
+---.alignmentcontextcodes = getthem(tex.getalignmentcontextvalues ) -- only at lua end
+tex.specialmathclasscodes = getthem(tex.getspecialmathclassvalues ) -- only at lua end
function tex.stringtocodesbitmap(str,codes)
local bitmap = 0