diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/catc-ini.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/catc-ini.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/catc-ini.lua b/Master/texmf-dist/tex/context/base/catc-ini.lua index 2749f403c9c..b2c793a6a98 100644 --- a/Master/texmf-dist/tex/context/base/catc-ini.lua +++ b/Master/texmf-dist/tex/context/base/catc-ini.lua @@ -6,6 +6,8 @@ if not modules then modules = { } end modules ['catc-ini'] = { license = "see context related readme files" } +-- todo: everywhere replace tex.ctxcatcodes -> catcodes.numbers.ctxcatcodes + catcodes = catcodes or { } catcodes.numbers = catcodes.numbers or { } catcodes.names = catcodes.names or { } @@ -31,3 +33,8 @@ end for k, v in next, catcodes.numbers do tex[k] = v end + +-- nasty + +table.setmetatableindex(catcodes.numbers,function(t,k) if type(k) == "number" then t[k] = k return k end end) +table.setmetatableindex(catcodes.names, function(t,k) if type(k) == "string" then t[k] = k return k end end) |