[NTG-context] index for Japanese alphabet

Hans Hagen pragma at wxs.nl
Tue Apr 10 19:44:04 CEST 2012


On 9-4-2012 13:26, S Barmeier wrote:

> Once I know how to enable a particular sorting pattern for a register I
> can probably figure it out by myself. How would I do that?

\setupregister[index][language=jp]


> Best,
> Severin
>
> --- Japanese
>
> definitions["jp"] = {
>      replacements = {
>          { "ぁ", "あ" }, { "ぃ", "い" },
>          { "ぅ", "う" }, { "ぇ", "え" },
>          { "ぉ", "お" }, { "っ", "つ" },
>          { "ゃ", "や" }, { "ゅ", "ゆ" },
>          { "ょ", "よ" },
>      },
>      entries = {
>          ["あ"] = "あ", ["い"] = "い", ["う"] = "う", ["え"] = "え", ["
> お"] = "お",
>          ["か"] = "か", ["き"] = "き", ["く"] = "く", ["け"] = "け", ["
> こ"] = "こ",
>          ["さ"] = "さ", ["し"] = "し", ["す"] = "す", ["せ"] = "せ", ["
> そ"] = "そ",
>          ["た"] = "た", ["ち"] = "ち", ["つ"] = "つ", ["て"] = "て", ["
> と"] = "と",
>          ["な"] = "な", ["に"] = "に", ["ぬ"] = "ぬ", ["ね"] = "ね", ["
> の"] = "の",
>          ["は"] = "は", ["ひ"] = "ひ", ["ふ"] = "ふ", ["へ"] = "へ", ["
> ほ"] = "ほ",
>          ["ま"] = "ま", ["み"] = "み", ["む"] = "む", ["め"] = "め", ["
> も"] = "も",
>          ["や"] = "や", ["ゆ"] = "ゆ", ["よ"] = "よ",
>          ["ら"] = "ら", ["り"] = "り", ["る"] = "る", ["れ"] = "れ", ["
> ろ"] = "ろ",
>          ["わ"] = "わ", ["ゐ"] = "ゐ", ["ゑ"] = "ゑ", ["を"] = "を", ["
> ん"] = "ん",
>      },
>      orders = {
>          "あ", "い", "う", "え", "お", "か", "き", "く", "け", "こ",
>          "さ", "し", "す", "せ", "そ", "た", "ち", "つ", "て", "と",
>          "な", "に", "ぬ", "ね", "の", "は", "ひ", "ふ", "へ", "ほ",
>          "ま", "み", "む", "め", "も", "や", "ゆ", "よ",
>          "ら", "り", "る", "れ", "ろ", "わ", "ゐ", "ゑ", "を", "ん",
>      }
> }


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list