diff options
author | Mojca Miklavec <mojca.miklavec@gmail.com> | 2012-05-14 17:38:55 +0000 |
---|---|---|
committer | Mojca Miklavec <mojca.miklavec@gmail.com> | 2012-05-14 17:38:55 +0000 |
commit | 15995e10bfc68edf79970c4ea4fbb6678566c46e (patch) | |
tree | 2de7ca2a83f2d37ef043ad7429a5cb945bb79ddb /Master/texmf-dist/tex/context/base/char-cjk.lua | |
parent | c9a39f716f1e5ec820ed3aab2c9aef25c5a9d730 (diff) |
ConTeXt 2012.05.14 16:00
git-svn-id: svn://tug.org/texlive/trunk@26371 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/char-cjk.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/char-cjk.lua | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/context/base/char-cjk.lua b/Master/texmf-dist/tex/context/base/char-cjk.lua index 067371c6478..b077f4a3e0e 100644 --- a/Master/texmf-dist/tex/context/base/char-cjk.lua +++ b/Master/texmf-dist/tex/context/base/char-cjk.lua @@ -247,7 +247,7 @@ local hangul_syllable_basetable = { local hangul_syllable_metatable = { __index = function(t,k) local u = t.unicodeslot - if k == "fscode" then + if k == "fscode" or k == "leadconsonant" then return leadconsonant(u) elseif k == "decomposed" then return { decomposed(u) } @@ -261,6 +261,22 @@ local hangul_syllable_metatable = { end } +function characters.remap_hangul_syllabe(t) + local tt = type(t) + if tt == "number" then + return remapped[t] or t + elseif tt == "table" then + local r = { } + for i=1,#t do + local ti = t[i] + r[i] = remapped[ti] or ti + end + return r + else + return t + end +end + local hangul_syllable_extender = function(k,v) local t = { unicodeslot = k, |