diff options
author | Marius <mariausol@gmail.com> | 2011-05-15 14:20:12 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-05-15 14:20:12 +0300 |
commit | 615ba84b2b4a17ee92e4a28762d0086389802d55 (patch) | |
tree | 04d9b763df9399bb255be8366a828b2142858196 /tex/context/base/char-ini.lua | |
parent | fefebde9e50a00034bc24315398d5796d9664ae6 (diff) | |
download | context-615ba84b2b4a17ee92e4a28762d0086389802d55.tar.gz |
beta 2011.05.15 12:57
Diffstat (limited to 'tex/context/base/char-ini.lua')
-rw-r--r-- | tex/context/base/char-ini.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tex/context/base/char-ini.lua b/tex/context/base/char-ini.lua index 2244048c3..89f8336f8 100644 --- a/tex/context/base/char-ini.lua +++ b/tex/context/base/char-ini.lua @@ -723,6 +723,17 @@ setmetatableindex(ucchars, function(t,u) if u then local c = data[u] c = c and c setmetatableindex(shchars, function(t,u) if u then local c = data[u] c = c and c.shcode c = c and utfstring(c) or (type(u) == "number" and utfchar(u)) or u t[u] = c return c end end) setmetatableindex(fschars, function(t,u) if u then local c = data[u] c = c and c.fscode c = c and utfstring(c) or (type(u) == "number" and utfchar(u)) or u t[u] = c return c end end) +local decomposed = allocate() characters.decomposed = decomposed -- lazy table + +setmetatableindex(decomposed, function(t,u) -- either a table or false + if u then + local c = data[u] + local s = c and c.decomposed or false + t[u] = s + return s + end +end) + local specialchars = allocate() characters.specialchars = specialchars -- lazy table local descriptions = allocate() characters.descriptions = descriptions -- lazy table |