summaryrefslogtreecommitdiff
path: root/tex/context/base/char-ini.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-02-20 22:00:14 +0200
committerMarius <mariausol@gmail.com>2011-02-20 22:00:14 +0200
commit3880c6aa8cef3b379b06777c09f9ce3e7e61f493 (patch)
treebcde92b4216855c15fbd77700423f5cb919c05c9 /tex/context/base/char-ini.lua
parent21179ddb493e5c3355211e090959036cc048366b (diff)
downloadcontext-3880c6aa8cef3b379b06777c09f9ce3e7e61f493.tar.gz
beta 2011.02.20 20:34
Diffstat (limited to 'tex/context/base/char-ini.lua')
-rw-r--r--tex/context/base/char-ini.lua34
1 files changed, 32 insertions, 2 deletions
diff --git a/tex/context/base/char-ini.lua b/tex/context/base/char-ini.lua
index bb7cce997..a10b75398 100644
--- a/tex/context/base/char-ini.lua
+++ b/tex/context/base/char-ini.lua
@@ -96,7 +96,8 @@ local ranges = allocate()
characters.ranges = ranges
setmetatablekey(data, "__index", function(t,k)
- if type(k) == "string" then
+ local tk = type(k)
+ if tk == "string" then
k = lpegmatch(pattern,k) or utfbyte(k)
if k then
local tk = rawget(t,k)
@@ -109,7 +110,7 @@ setmetatablekey(data, "__index", function(t,k)
return private
end
end
- if k < 0xF0000 then
+ if tk == "number" and k < 0xF0000 then
for r=1,#ranges do
local rr = ranges[r]
if k >= rr.first and k <= rr.last then
@@ -911,3 +912,32 @@ end
-- end
--~ characters.data, characters.groups = chardata, groupdata
+
+--~ [0xF0000]={
+--~ category="co",
+--~ cjkwd="a",
+--~ description="<Plane 0x000F Private Use, First>",
+--~ direction="l",
+--~ unicodeslot=0xF0000,
+--~ },
+--~ [0xFFFFD]={
+--~ category="co",
+--~ cjkwd="a",
+--~ description="<Plane 0x000F Private Use, Last>",
+--~ direction="l",
+--~ unicodeslot=0xFFFFD,
+--~ },
+--~ [0x100000]={
+--~ category="co",
+--~ cjkwd="a",
+--~ description="<Plane 0x0010 Private Use, First>",
+--~ direction="l",
+--~ unicodeslot=0x100000,
+--~ },
+--~ [0x10FFFD]={
+--~ category="co",
+--~ cjkwd="a",
+--~ description="<Plane 0x0010 Private Use, Last>",
+--~ direction="l",
+--~ unicodeslot=0x10FFFD,
+--~ },