summaryrefslogtreecommitdiff
path: root/tex/context/base/char-cjk.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-05-15 14:20:12 +0300
committerMarius <mariausol@gmail.com>2011-05-15 14:20:12 +0300
commit615ba84b2b4a17ee92e4a28762d0086389802d55 (patch)
tree04d9b763df9399bb255be8366a828b2142858196 /tex/context/base/char-cjk.lua
parentfefebde9e50a00034bc24315398d5796d9664ae6 (diff)
downloadcontext-615ba84b2b4a17ee92e4a28762d0086389802d55.tar.gz
beta 2011.05.15 12:57
Diffstat (limited to 'tex/context/base/char-cjk.lua')
-rw-r--r--tex/context/base/char-cjk.lua21
1 files changed, 19 insertions, 2 deletions
diff --git a/tex/context/base/char-cjk.lua b/tex/context/base/char-cjk.lua
index 5dc20ff74..067371c64 100644
--- a/tex/context/base/char-cjk.lua
+++ b/tex/context/base/char-cjk.lua
@@ -226,13 +226,30 @@ local hangul_syllable_basetable = {
linebreak = "h2",
}
+--~ local hangul_syllable_metatable = {
+--~ __index = function(t,k)
+--~ local u = t.unicodeslot
+--~ if k == "fscode" then
+--~ -- no need to cache this as we normally use fscodes
+--~ return leadconsonant(u)
+--~ elseif k == "shcode" then
+--~ return { decomposed(u) }
+--~ elseif k == "specials" then
+--~ return { "char", decomposed(u) }
+--~ elseif k == "description" then
+--~ return description(u)
+--~ else
+--~ return hangul_syllable_basetable[k]
+--~ end
+--~ end
+--~ }
+
local hangul_syllable_metatable = {
__index = function(t,k)
local u = t.unicodeslot
if k == "fscode" then
- -- no need to cache this as we normally use fscodes
return leadconsonant(u)
- elseif k == "shcode" then
+ elseif k == "decomposed" then
return { decomposed(u) }
elseif k == "specials" then
return { "char", decomposed(u) }