summaryrefslogtreecommitdiff
path: root/indexing/upmendex/doc
diff options
context:
space:
mode:
Diffstat (limited to 'indexing/upmendex/doc')
-rw-r--r--indexing/upmendex/doc/samples/Makefile4
-rw-r--r--indexing/upmendex/doc/samples/alphabet/alpha_es.idx2
-rw-r--r--indexing/upmendex/doc/samples/mdxsty01.ist2
-rw-r--r--indexing/upmendex/doc/samples/mdxsty02.ist2
-rw-r--r--indexing/upmendex/doc/samples/mdxsty03.ist33
-rw-r--r--indexing/upmendex/doc/samples/multi.idx11
-rw-r--r--indexing/upmendex/doc/samples/option/mdxsty_j02.ist6
-rw-r--r--indexing/upmendex/doc/upmendex.ja.txt64
8 files changed, 98 insertions, 26 deletions
diff --git a/indexing/upmendex/doc/samples/Makefile b/indexing/upmendex/doc/samples/Makefile
index 533ddaf743..ce33305212 100644
--- a/indexing/upmendex/doc/samples/Makefile
+++ b/indexing/upmendex/doc/samples/Makefile
@@ -8,8 +8,8 @@ scripts:
done
styles:
- for num in 00 01 02; do \
- $(UPMENDEX) multi.idx -s mdxsty$$num.ist -o multi_$$num.ind ; \
+ for num in 00 01 02 03; do \
+ $(UPMENDEX) multi.idx -s mdxsty$$num.ist -t multi_$$num.ilg -o multi_$$num.ind ; \
done
compare:
diff --git a/indexing/upmendex/doc/samples/alphabet/alpha_es.idx b/indexing/upmendex/doc/samples/alphabet/alpha_es.idx
index 7c3982df83..1a81aa998b 100644
--- a/indexing/upmendex/doc/samples/alphabet/alpha_es.idx
+++ b/indexing/upmendex/doc/samples/alphabet/alpha_es.idx
@@ -93,3 +93,5 @@
\indexentry{qu}{6004}
\indexentry{qua}{6005}
\indexentry{quz}{6006}
+\indexentry{ª}{501}
+\indexentry{º}{502}
diff --git a/indexing/upmendex/doc/samples/mdxsty01.ist b/indexing/upmendex/doc/samples/mdxsty01.ist
index 56e6a89f0c..24f4f5ff3b 100644
--- a/indexing/upmendex/doc/samples/mdxsty01.ist
+++ b/indexing/upmendex/doc/samples/mdxsty01.ist
@@ -8,5 +8,5 @@ lethead_flag 1
lethead_prefix "\n\\centerline{\\bfseries --- "
lethead_suffix " ---}\\par\\nobreak"
-character_order "NSTKDJHGCL"
+character_order "NSTKDJHGCLah"
diff --git a/indexing/upmendex/doc/samples/mdxsty02.ist b/indexing/upmendex/doc/samples/mdxsty02.ist
index 03353d85eb..f0536dd863 100644
--- a/indexing/upmendex/doc/samples/mdxsty02.ist
+++ b/indexing/upmendex/doc/samples/mdxsty02.ist
@@ -8,7 +8,7 @@ lethead_flag -1
lethead_prefix "\n\\centerline{\\bfseries --- "
lethead_suffix " ---}\\par\\nobreak"
-character_order "JKHGCLTDSN"
+character_order "JKHGCLTDhaSN"
hangul_head "가나다라마바사아카"
%% hangul_head "㉠㉡㉢㉣㉤㉥㉦㉧㉨㉩㉪㉫㉬㉭"
diff --git a/indexing/upmendex/doc/samples/mdxsty03.ist b/indexing/upmendex/doc/samples/mdxsty03.ist
new file mode 100644
index 0000000000..8b57069919
--- /dev/null
+++ b/indexing/upmendex/doc/samples/mdxsty03.ist
@@ -0,0 +1,33 @@
+% -*- coding: utf-8 -*-
+
+delim_0 "\\leaders\\hbox{$\\cdot$}\\hfill "
+delim_1 "\\leaders\\hbox{$\\cdot$}\\hfill "
+delim_2 "\\leaders\\hbox{$\\cdot$}\\hfill "
+
+headings_flag 1
+heading_prefix "\n\\centerline{\\bfseries --- "
+heading_suffix " ---}\\par\\nobreak"
+
+character_order "SahHJKDTLCGN"
+symbol_flag 2
+
+script_preamble latin "\n% begin latin"
+script_postamble latin "\n% end latin"
+script_preamble cyrillic "\n% begin cyrillic"
+script_postamble cyrillic "\n% end cyrillic"
+script_preamble greek "\n% begin greek"
+script_postamble greek "\n% end greek"
+script_preamble kana "\n% begin kana"
+script_postamble kana "\n% end kana"
+script_preamble hangul "\n% begin hangul"
+script_postamble hangul "\n% end hangul"
+script_preamble hanzi "\n% begin hanzi"
+script_postamble hanzi "\n% end hanzi"
+script_preamble devanagari "\n% begin devanagari"
+script_postamble devanagari "\n% end devanagari"
+script_preamble thai "\n% begin thai"
+script_postamble thai "\n% end thai"
+script_preamble arabic "\n% begin arabic"
+script_postamble arabic "\n% end arabic"
+script_preamble hebrew "\n% begin hebrew"
+script_postamble hebrew "\n% end hebrew"
diff --git a/indexing/upmendex/doc/samples/multi.idx b/indexing/upmendex/doc/samples/multi.idx
index 8241647256..5567532210 100644
--- a/indexing/upmendex/doc/samples/multi.idx
+++ b/indexing/upmendex/doc/samples/multi.idx
@@ -5,7 +5,10 @@
\indexentry{もりおうがい@森鷗外}{5}
\indexentry{세종대왕@세종대왕(世宗大王)}{6}
\indexentry{王羲之}{7}
-\indexentry{0123456789}{8}
-\indexentry{¥¥¥¥¥}{9}
-\indexentry{พ่อขุนรามคำแหงมหาราช}{10}
-\indexentry{गौतम सिद्धार्थ}{11}
+\indexentry{0120¹₂③❹➄➏🄈⑻⒐㉈🄋🄌}{8}
+\indexentry{€$$¢¢££¥¥₩₩฿₹}{9}
+\indexentry{☃☎♥⚽☺☝✈🀅🍣👻}{10}
+\indexentry{พ่อขุนรามคำแหงมหาราช}{11}
+\indexentry{गौतम सिद्धार्थ}{12}
+\indexentry{محمد‎}{13}
+\indexentry{אֱלִיעֶזֶר בֶּן־יְהוּדָה‎}{14}
diff --git a/indexing/upmendex/doc/samples/option/mdxsty_j02.ist b/indexing/upmendex/doc/samples/option/mdxsty_j02.ist
index 3b084ba9d8..b5cac2a050 100644
--- a/indexing/upmendex/doc/samples/option/mdxsty_j02.ist
+++ b/indexing/upmendex/doc/samples/option/mdxsty_j02.ist
@@ -4,9 +4,9 @@ delim_0 "\\leaders\\hbox{$\\cdot$}\\hfill "
delim_1 "\\leaders\\hbox{$\\cdot$}\\hfill "
delim_2 "\\leaders\\hbox{$\\cdot$}\\hfill "
-lethead_flag 1
-lethead_prefix "\n\\centerline{\\bfseries --- "
-lethead_suffix " ---}\\par\\nobreak"
+headings_flag 1
+heading_prefix "\n\\centerline{\\bfseries --- "
+heading_suffix " ---}\\par\\nobreak"
priority 1
letter_head 2
diff --git a/indexing/upmendex/doc/upmendex.ja.txt b/indexing/upmendex/doc/upmendex.ja.txt
index 072a5fe873..22b2ab6230 100644
--- a/indexing/upmendex/doc/upmendex.ja.txt
+++ b/indexing/upmendex/doc/upmendex.ja.txt
@@ -123,7 +123,7 @@ upmendex - 索引整形ツール
preamble <文字列>
"\\begin{theindex}\n"
- 出力ファイルの文字列。
+ 出力ファイルの先頭の文字列。
postamble <文字列>
"\n\n\\end{theindex}\n"
@@ -167,6 +167,10 @@ upmendex - 索引整形ツール
0
lethead_flagと同じ。
+ headings_flag <数値>
+ 0
+ lethead_flagと同じ。
+
kana_head <文字列>
""
仮名見出し文字。見出し文字を文字列で指定する。
@@ -283,23 +287,36 @@ upmendex - 索引整形ツール
symhead_positive <文字列>
"Symbols"
- lethead_flag または heading_flag が正数の場合に数字・記号の頭文字として
+ lethead_flag または heading_flag または headings_flag が正数の場合に記号の頭文字として
出力する文字列。
symhead_negative <文字列>
"symbols"
- lethead_flag または heading_flag が負数の場合に数字・記号の頭文字として
+ lethead_flag または heading_flag または headings_flag が負数の場合に記号の頭文字として
出力する文字列。
symbol <文字列>
""
- symbol_flag が0でない場合に、数字・記号の頭文字として出力する文字列。
+ symbol_flag が0でない場合に、記号の頭文字として出力する文字列。
文字列が定義されていれば、symhead_positive および symhead_negative より
優先される。((up)mendex専用)
+ numhead_positive <文字列>
+ "Numbers"
+ lethead_flag または heading_flag が正数かつ symbol_flag が2の場合に数字の頭文字として
+ 出力する文字列。
+
+ numhead_negative <文字列>
+ "numbers"
+ lethead_flag または heading_flag が負数かつ symbol_flag が2の場合に数字の頭文字として
+ 出力する文字列。
+
symbol_flag <数値>
1
- symbol の出力フラグ。0のとき出力しない。((up)mendex専用)
+ symbol の出力フラグ。0のとき見出しを出力しない。
+ 1のとき数字を記号の一部として扱い記号の見出しを出力する。
+ 2のとき数字と記号を別の集合に分類し数字と記号の見出しを出力する。
+ ((up)mendex専用)
letter_head <数値>
1
@@ -313,14 +330,31 @@ upmendex - 索引整形ツール
((up)mendex専用)
character_order <文字列>
- "SNLGCJKHDT"
+ "SNLGCJKHDTah"
記号、英字、日本語の優先順位。'S'は記号、'N'は数字、'L'はラテン文字、
'G'はギリシャ文字、'C'はキリル文字、'J'は日本語(かな)、'K'はハングル、
- 'H'は漢字、'D'はデーヴァナーガリー、'T'はタイ文字を表す。
- upendexでは索引項目の分類として「数字」は「記号」に含める仕様なので、
+ 'H'は漢字、'D'はデーヴァナーガリー、'T'はタイ文字、
+ 'a'はアラビア文字、'h'はヘブライ文字を表す。
+ symbol_flag=1のとき、索引項目の分類として「数字」は「記号」に含めるので、
'S'と'N'は必ず隣り合わせること(数字と数字以外の記号の順序入れ替えは可能)。
(upmendex専用)
+ script_preamble <文字列1> <文字列2>
+ ""
+ 各スクリプトごとのブロックの先頭の文字列を文字列2に指定する。
+ スクリプト名1個を以下の中から文字列1に指定しなければならない:
+ 'latin', 'cyrillic', 'greek', 'kana', 'hangul', 'hanzi',
+ 'devanagari', 'thai', 'arabic', 'hebrew'
+ (upmendex専用)
+
+ script_postamble <文字列1> <文字列2>
+ ""
+ 各スクリプトごとのブロックの末尾の文字列を文字列2に指定する。
+ スクリプト名1個を以下の中から文字列1に指定しなければならない:
+ 'latin', 'cyrillic', 'greek', 'kana', 'hangul', 'hanzi',
+ 'devanagari', 'thai', 'arabic', 'hebrew'
+ (upmendex専用)
+
icu_locale <文字列>
""
ICU collatorにおいて従うlocale。
@@ -331,20 +365,20 @@ upmendex - 索引整形ツール
""
ICU collatorにおいてlocaleによらずに照合順序を指定する場合、
照合順序のルールを示す文字列。
- ( Ref. http://userguide.icu-project.org/collation/customization
- https://unicode-org.github.io/icu/userguide/collation/customization/
+ ( Ref. https://unicode-org.github.io/icu/userguide/collation/customization/
http://www.unicode.org/reports/tr35/tr35-collation.html#Rules )
UTF-8のUnicode文字及び、以下のエスケープ文字列が使用可能である:
\Uhhhhhhhh (16進数[0-9A-Fa-f]を8桁), \uhhhh (16進数を4桁),
\xhh (16進数を2桁), \x{h...} (16進数を1〜8桁), \ooo (8進数[0-7]を3桁)。
+ icu_localeとicu_rulesを同時に指定した場合、icu_localeで指定したルールの上に
+ icu_rulesで指定したルールを追加する。
空文字列(デフォルト)のときは、localeによる照合順序のルールに従う。
(upmendex専用)
icu_attributes <文字列>
""
ICU collatorのattribute指定。
- ( Ref. http://userguide.icu-project.org/collation/customization#TOC-Default-Options
- https://unicode-org.github.io/icu/userguide/collation/customization/#default-options
+ ( Ref. https://unicode-org.github.io/icu/userguide/collation/customization/#default-options
http://www.unicode.org/reports/tr35/tr35-collation.html#Setting_Options )
以下の文字列を解釈する:
"alternate:shifted", "alternate:non-ignorable",
@@ -365,7 +399,7 @@ upmendex - 索引整形ツール
カナに揃え、拗音、撥音、濁点を除いた読みを付けなければなりませんでした(自動的に
揃えるバージョンもある)。
upmendex ではカナについてはInternational Components for Unicode (ICU)による
-ソートを行います。また漢字については辞書ファイルを設定することにより各索引語ごと
+ソートを行います。また漢字と記号については辞書ファイルを設定することにより各索引語ごと
に読みを付ける作業をかなり解消できます。
辞書ファイルは <熟語 読み> のリストで構成されます。熟語と読みの区切りはタブま
@@ -376,7 +410,7 @@ upmendex - 索引整形ツール
漢字 かんじ
読み よみ
環境 かんきょう
- α アルファ
+ $ ドル
辞書に登録する熟語は、読み方が1通りになるよう送り仮名を付けてください。
「表」、「性質」のように送り仮名によらず2通りの読み方ができる語についてはどち
@@ -445,5 +479,5 @@ upmendex - 索引整形ツール
参考
International Components for Unicode (ICU)
-http://site.icu-project.org/
+http://icu.unicode.org/
https://unicode-org.github.io/icu/