summaryrefslogtreecommitdiff
path: root/tex/context/base/char-ini.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-11-26 19:00:25 +0200
committerMarius <mariausol@gmail.com>2012-11-26 19:00:25 +0200
commit48c4609c92a6e0cbbbd8c5e894d2e11b081e032f (patch)
tree6fd604c2644afd46971a42f42ce3e1a276c19883 /tex/context/base/char-ini.lua
parent7bd57701b696956d241d5f3fec8cc6288082cf5c (diff)
downloadcontext-48c4609c92a6e0cbbbd8c5e894d2e11b081e032f.tar.gz
beta 2012.11.26 13:31
Diffstat (limited to 'tex/context/base/char-ini.lua')
-rw-r--r--tex/context/base/char-ini.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/tex/context/base/char-ini.lua b/tex/context/base/char-ini.lua
index 6e14982c7..70e893b2c 100644
--- a/tex/context/base/char-ini.lua
+++ b/tex/context/base/char-ini.lua
@@ -717,7 +717,15 @@ characters.activeoffset = 0x10000 -- there will be remapped in that byte range
-- entities.gt = utfchar(characters.activeoffset + utfbyte(">"))
-- end
--- some day we will make a table
+-- -- some day we will make a table .. not that many calls to utfchar
+--
+-- local utfchar = utf.char
+-- local utfbyte = utf.byte
+-- local utfbytes = { }
+-- local utfchars = { }
+--
+-- table.setmetatableindex(utfbytes,function(t,k) local v= utfchar(k) t[k] = v return v end)
+-- table.setmetatableindex(utfchars,function(t,k) local v= utfbyte(k) t[k] = v return v end)
local function utfstring(s)
if type(s) == "table" then