diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-02-11 12:23:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-02-11 12:23:00 +0100 |
commit | c1277fe938900d76727978e9140fbf6bea3e13bb (patch) | |
tree | e389cf5e66a3fa0d362c92954842006942b1d32c /tex/context/base/sort-lan.lua | |
parent | cf7217d37a358672fddc334ce519f59f3e69d0fd (diff) | |
download | context-c1277fe938900d76727978e9140fbf6bea3e13bb.tar.gz |
beta 2011.02.11 12:23
Diffstat (limited to 'tex/context/base/sort-lan.lua')
-rw-r--r-- | tex/context/base/sort-lan.lua | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tex/context/base/sort-lan.lua b/tex/context/base/sort-lan.lua index 8137bac13..44b92d2b0 100644 --- a/tex/context/base/sort-lan.lua +++ b/tex/context/base/sort-lan.lua @@ -10,7 +10,7 @@ if not modules then modules = { } end modules ['sort-lan'] = { -- Gesang. However this is a quite adapted and reformatted variant -- so it needs some checking. -local utfchar = utf.char +local utfchar, utfbyte = utf.char, utf.byte local sorters = sorters local definitions = sorters.definitions local replacementoffset = sorters.constants.replacementoffset @@ -857,3 +857,19 @@ definitions["et"] = { "t", "u", "v", "w", "õ", "ä", "ö", "ü", "x", "y", } } + +--- Korean + +local first = languages.firstcharacters.korean + +function firstofsplit(entries,split) + first = first or languages.firstcharacters.korean + local entry = split and split[1] or "" + local entry = utfchar(first(utfbyte(entry))) + local tag = entry + return entry, tag +end + +definitions["kr"] = { + firstofsplit = firstofsplit, +} |