diff options
author | Marius <mariausol@gmail.com> | 2012-04-10 21:00:17 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-04-10 21:00:17 +0300 |
commit | 36b0f38733f407939d9b7b289cef61de179f5f4d (patch) | |
tree | fb1207d3afc50064c04643b5c3f2979ba41084fa /tex/context/base/sort-lan.lua | |
parent | 7a35f116eb35cf0060e7d789bd136d7d9300dc84 (diff) | |
download | context-36b0f38733f407939d9b7b289cef61de179f5f4d.tar.gz |
beta 2012.04.10 19:46
Diffstat (limited to 'tex/context/base/sort-lan.lua')
-rw-r--r-- | tex/context/base/sort-lan.lua | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/tex/context/base/sort-lan.lua b/tex/context/base/sort-lan.lua index 351c73e45..6a0cb8eab 100644 --- a/tex/context/base/sort-lan.lua +++ b/tex/context/base/sort-lan.lua @@ -8,7 +8,8 @@ if not modules then modules = { } end modules ['sort-lan'] = { -- Many vectors were supplied by Wolfgang Schuster and Philipp -- Gesang. However this is a quite adapted and reformatted variant --- so it needs some checking. +-- so it needs some checking. Other users provides tables and +-- corrections as well. local utfchar, utfbyte = utf.char, utf.byte local sorters = sorters @@ -875,3 +876,34 @@ definitions["kr"] = { "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", } } + +-- Japanese + +definitions["jp"] = { + replacements = { + { "ぁ", "あ" }, { "ぃ", "い" }, + { "ぅ", "う" }, { "ぇ", "え" }, + { "ぉ", "お" }, { "っ", "つ" }, + { "ゃ", "や" }, { "ゅ", "ゆ" }, + { "ょ", "よ" }, + }, + entries = { + ["あ"] = "あ", ["い"] = "い", ["う"] = "う", ["え"] = "え", ["お"] = "お", + ["か"] = "か", ["き"] = "き", ["く"] = "く", ["け"] = "け", ["こ"] = "こ", + ["さ"] = "さ", ["し"] = "し", ["す"] = "す", ["せ"] = "せ", ["そ"] = "そ", + ["た"] = "た", ["ち"] = "ち", ["つ"] = "つ", ["て"] = "て", ["と"] = "と", + ["な"] = "な", ["に"] = "に", ["ぬ"] = "ぬ", ["ね"] = "ね", ["の"] = "の", + ["は"] = "は", ["ひ"] = "ひ", ["ふ"] = "ふ", ["へ"] = "へ", ["ほ"] = "ほ", + ["ま"] = "ま", ["み"] = "み", ["む"] = "む", ["め"] = "め", ["も"] = "も", + ["や"] = "や", ["ゆ"] = "ゆ", ["よ"] = "よ", + ["ら"] = "ら", ["り"] = "り", ["る"] = "る", ["れ"] = "れ", ["ろ"] = "ろ", + ["わ"] = "わ", ["ゐ"] = "ゐ", ["ゑ"] = "ゑ", ["を"] = "を", ["ん"] = "ん", + }, + orders = { + "あ", "い", "う", "え", "お", "か", "き", "く", "け", "こ", + "さ", "し", "す", "せ", "そ", "た", "ち", "つ", "て", "と", + "な", "に", "ぬ", "ね", "の", "は", "ひ", "ふ", "へ", "ほ", + "ま", "み", "む", "め", "も", "や", "ゆ", "よ", + "ら", "り", "る", "れ", "ろ", "わ", "ゐ", "ゑ", "を", "ん", + } +} |