From adec059e95b8e5728d8fb2d8420c5e928812c282 Mon Sep 17 00:00:00 2001 From: Takuji Tanaka Date: Tue, 9 Feb 2016 11:02:48 +0000 Subject: texk/upmendex: upmendex 0.50 git-svn-id: svn://tug.org/texlive/trunk@39638 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/support/upmendex/README.txt | 76 ++++ .../doc/support/upmendex/samples/Makefile | 19 + .../doc/support/upmendex/samples/alphabet/Makefile | 37 ++ .../upmendex/samples/alphabet/mdxsty_es1.ist | 12 + .../upmendex/samples/alphabet/mdxsty_es11.ist | 12 + .../upmendex/samples/alphabet/mdxsty_es12.ist | 12 + .../upmendex/samples/alphabet/mdxsty_es13.ist | 12 + .../upmendex/samples/alphabet/mdxsty_es2.ist | 12 + .../upmendex/samples/alphabet/mdxsty_es21.ist | 12 + .../upmendex/samples/alphabet/mdxsty_es22.ist | 12 + .../upmendex/samples/alphabet/mdxsty_es23.ist | 12 + .../upmendex/samples/alphabet/mdxsty_zh1.ist | 12 + .../upmendex/samples/alphabet/mdxsty_zh11.ist | 12 + .../upmendex/samples/alphabet/mdxsty_zh12.ist | 13 + .../upmendex/samples/alphabet/mdxsty_zh13.ist | 13 + .../upmendex/samples/alphabet/mdxsty_zh14.ist | 13 + .../upmendex/samples/alphabet/mdxsty_zh2.ist | 12 + .../upmendex/samples/alphabet/mdxsty_zh21.ist | 12 + .../upmendex/samples/alphabet/mdxsty_zh22.ist | 12 + .../upmendex/samples/alphabet/mdxsty_zh31.ist | 12 + .../doc/support/upmendex/samples/mdxsty00.ist | 10 + .../doc/support/upmendex/samples/mdxsty01.ist | 12 + .../doc/support/upmendex/samples/mdxsty02.ist | 17 + .../doc/support/upmendex/samples/option/Makefile | 22 ++ .../support/upmendex/samples/option/mdxsty_j00.ist | 11 + .../support/upmendex/samples/option/mdxsty_j01.ist | 11 + .../support/upmendex/samples/option/mdxsty_j02.ist | 12 + .../upmendex/samples/option/mdxsty_rule0.ist | 12 + .../texmf-dist/doc/support/upmendex/upmendex.doc | 427 +++++++++++++++++++++ 29 files changed, 873 insertions(+) create mode 100644 Master/texmf-dist/doc/support/upmendex/README.txt create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/Makefile create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/Makefile create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es1.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es11.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es12.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es13.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es2.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es21.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es22.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es23.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh1.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh11.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh12.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh13.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh14.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh2.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh21.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh22.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh31.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/mdxsty00.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/mdxsty01.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/mdxsty02.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/option/Makefile create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j00.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j01.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j02.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_rule0.ist create mode 100644 Master/texmf-dist/doc/support/upmendex/upmendex.doc (limited to 'Master/texmf-dist/doc/support') diff --git a/Master/texmf-dist/doc/support/upmendex/README.txt b/Master/texmf-dist/doc/support/upmendex/README.txt new file mode 100644 index 00000000000..5f37f9aa34a --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/README.txt @@ -0,0 +1,76 @@ +upmendex --- unicode version of mendex +2016.01.31 Ver0.50 +TANAKA, Takuji ttk(at)t-lab(dot)opal(dot)ne(dot)jp + +[ About upmendex ] +upmendex is a multilingual index processor with following features: + * Mostly compatible with makeindex and + upper compatible with mendex, + based on mendex version 2.6f by ASCII media works. + * Unicode for internal process and + support UTF-8 encoding for input/outout. + Will work with upLaTeX, XeLaTeX and luaLaTeX. + * Support Latin (including non-English), Greek, Cyrillic, + Korean Hangul and Han (Hanzi ideographs) scripts + as well as Japanese. + * Apply International Components for Unicode (ICU) + for sorting process. + +[ Contents ] +README.txt :: This file +source/ :: sources +doc/ :: documents +doc/samples/ :: samples for test + More samples are distributed at Ref. [2]. + +[ Building upmendex ] +The sources work with TeX Live svn r39498 . +Ref. TeX Live and Subversion http://www.tug.org/texlive/svn/ +Tested with ICU 56.1 . + +[ Status ] +Beta version. +No warranty. + +[ Copyright ] +Lisence notice is written in COPYRIGHT . +It is as same as the BSD 3-Clause License. +http://opensource.org/licenses/BSD-3-Clause + +[ Supported locale ] +In ICU collator, default "root" locale covers several lauguages: +English, French, Germany, Italian and so on. +Follows are available for setting into "icu_locale". + + Latin script: + "az" (Azerbaijani), "ca" (Catalan), "cs", "cs@collation=search" (Czech), + "da" (Danish), "de@collation=phonebook" (German), "eo" (Espelanto), + "es", "es@collation=traditional", "es@collation=search" (Spanish), + "fi" (Finnish), "gl" (Galician), + "hr", "hr@collation=search" (Croatian), "hu" (Hungarian), + "lt" (Lithuanian), "nb", "nn", "no" (Norwegian), + "pl" (Polish), "ro" (Romanian), "sk", "sk@collation=search" (Slovak), + "sl" (Slovenian), "sq" (Albanian), + "sr-Latn", "sr-Latn@collation=search" (Serbian), "sv" (Swedish), + "tr" (Turkish), "vi" (Vietnamese) + + Cyrillic script: + "be" (Belarusian), "bg" (Bulgarian), "ru" (Russian), + "sr" (Serbian), "uk" (Ukraine) + + Greek script: + "el" (Greek) + + CJK (Han script (Hanzi), Hangul, Kana): + "ja", "ja@collation=unihan" (Japanese), + "ko", "ko@collation=search", "ko@collation=unihan" (Korean), + "zh", "zh@collation=unihan", "zh@collation=stroke", "zh@collation=zhuyin" (Chinese) + +[ References ] +[1] ASCII Nihongo TeX (Publishing TeX) + ASCII MEDIA WORKS + http://ascii.asciimw.jp/pb/ptex/ +[2] upTeX, upLaTeX ― unicode version of pTeX, pLaTeX + http://www.t-lab.opal.ne.jp/tex/uptex_en.html +[3] International Components for Unicode (ICU) + http://site.icu-project.org/ diff --git a/Master/texmf-dist/doc/support/upmendex/samples/Makefile b/Master/texmf-dist/doc/support/upmendex/samples/Makefile new file mode 100644 index 00000000000..7cd082cbb89 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/Makefile @@ -0,0 +1,19 @@ +UPMENDEX = upmendex + +all: scripts styles + +scripts: + for scr in french german greek russian korean; do \ + $(UPMENDEX) $$scr -s mdxsty00.ist ; \ + done + +styles: + for num in 00 01 02; do \ + $(UPMENDEX) multi.idx -s mdxsty$$num.ist -o multi_$$num.ind ; \ + done + +compare: + for ind in $(wildcard *.ind); do \ + diff -qs $$ind output/$$ind ; \ + done + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/Makefile b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/Makefile new file mode 100644 index 00000000000..a33c0e11b85 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/Makefile @@ -0,0 +1,37 @@ +UPMENDEX = upmendex + +alphabet: es zh + +es: + for num in 1 2 11 12 13 22 22 23; do \ + for loc in es; do \ + $(UPMENDEX) alpha_$$loc.idx -s mdxsty_$$loc$$num.ist -o alpha_$$loc$$num.ind ; \ + done ; \ + done + +zh: + for num in 1 2 11 12 13 14 21 22 31; do \ + for loc in zh; do \ + $(UPMENDEX) alpha_$$loc.idx -s mdxsty_$$loc$$num.ist -o alpha_$$loc$$num.ind ; \ + done ; \ + done + for num in 11 12 13 14; do \ + loc='zh' ; \ + locx='zhr' ; \ + $(UPMENDEX) alpha_$$locx.idx -s mdxsty_$$loc$$num.ist -o alpha_$$locx$$num.ind ; \ + done + for num in 21 22; do \ + loc='zh' ; \ + locx='zhs' ; \ + $(UPMENDEX) alpha_$$locx.idx -s mdxsty_$$loc$$num.ist -o alpha_$$locx$$num.ind ; \ + done + for num in 31; do \ + loc='zh' ; \ + locx='zhz' ; \ + $(UPMENDEX) alpha_$$locx.idx -s mdxsty_$$loc$$num.ist -o alpha_$$locx$$num.ind ; \ + done + for num in 1 2; do \ + loc='zh' ; \ + locx='zhp' ; \ + $(UPMENDEX) alpha_$$locx.idx -s mdxsty_$$loc$$num.ist -o alpha_$$locx$$num.ind ; \ + done diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es1.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es1.ist new file mode 100644 index 00000000000..1c82c1edfae --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es1.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "es" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es11.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es11.ist new file mode 100644 index 00000000000..bcf1b788f8e --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es11.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "es@collation=traditional" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es12.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es12.ist new file mode 100644 index 00000000000..bef0b6f818f --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es12.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "es@collation=traditional" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es13.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es13.ist new file mode 100644 index 00000000000..804b137c967 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es13.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +delim_0 "\\leaders\\hbox{$\\cdot$}\\hfill " +delim_1 "\\leaders\\hbox{$\\cdot$}\\hfill " +delim_2 "\\leaders\\hbox{$\\cdot$}\\hfill " + +lethead_flag 2 +lethead_prefix "\n\\centerline{\\bfseries --- " +lethead_suffix " ---}\\par\\nobreak" + +icu_locale "es@collation=traditional" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es2.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es2.ist new file mode 100644 index 00000000000..194545e04f3 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es2.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "es" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es21.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es21.ist new file mode 100644 index 00000000000..119652482cb --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es21.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "es@collation=search" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es22.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es22.ist new file mode 100644 index 00000000000..b9c13151f70 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es22.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "es@collation=search" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es23.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es23.ist new file mode 100644 index 00000000000..8f9890b0718 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_es23.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +delim_0 "\\leaders\\hbox{$\\cdot$}\\hfill " +delim_1 "\\leaders\\hbox{$\\cdot$}\\hfill " +delim_2 "\\leaders\\hbox{$\\cdot$}\\hfill " + +lethead_flag 2 +lethead_prefix "\n\\centerline{\\bfseries --- " +lethead_suffix " ---}\\par\\nobreak" + +icu_locale "es@collation=search" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh1.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh1.ist new file mode 100644 index 00000000000..e52cb7910c3 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh1.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "zh" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh11.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh11.ist new file mode 100644 index 00000000000..4f4661ec8e8 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh11.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "zh@collation=unihan" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh12.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh12.ist new file mode 100644 index 00000000000..f2e8c0aa87a --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh12.ist @@ -0,0 +1,13 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "zh@collation=unihan" +hanzi_head "一部;丨部;丶部;丿部;乙部;亅部;二部;亠部;人部;儿部;入部;八部;冂部;冖部;冫部;几部;凵部;刀部;力部;勹部;匕部;匚部;匸部;十部;卜部;卩部;厂部;厶部;又部;口部;囗部;土部;士部;夂部;夊部;夕部;大部;女部;子部;宀部;寸部;小部;尢部;尸部;屮部;山部;巛部;工部;己部;巾部;干部;幺部;广部;廴部;廾部;弋部;弓部;彐部;彡部;彳部;心部;戈部;戶部;手部;支部;攴部;文部;斗部;斤部;方部;无部;日部;曰部;月部;木部;欠部;止部;歹部;殳部;毋部;比部;毛部;氏部;气部;水部;火部;爪部;父部;爻部;爿部;片部;牙部;牛部;犬部;玄部;玉部;瓜部;瓦部;甘部;生部;用部;田部;疋部;疒部;癶部;白部;皮部;皿部;目部;矛部;矢部;石部;示部;禸部;禾部;穴部;立部;竹部;米部;糸部;缶部;网部;羊部;羽部;老部;而部;耒部;耳部;聿部;肉部;臣部;自部;至部;臼部;舌部;舛部;舟部;艮部;色部;艸部;虍部;虫部;血部;行部;衣部;襾部;見部;角部;言部;谷部;豆部;豕部;豸部;貝部;赤部;走部;足部;身部;車部;辛部;辰部;辵部;邑部;酉部;釆部;里部;金部;長部;門部;阜部;隶部;隹部;雨部;靑部;非部;面部;革部;韋部;韭部;音部;頁部;風部;飛部;食部;首部;香部;馬部;骨部;高部;髟部;鬥部;鬯部;鬲部;鬼部;魚部;鳥部;鹵部;鹿部;麥部;麻部;黃部;黍部;黑部;黹部;黽部;鼎部;鼓部;鼠部;鼻部;齊部;齒部;龍部;龜部;龠部" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh13.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh13.ist new file mode 100644 index 00000000000..6fce8ee43c0 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh13.ist @@ -0,0 +1,13 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "ja@collation=unihan" +hanzi_head "一部;丨部;丶部;丿部;乙部;亅部;二部;亠部;人部;儿部;入部;八部;冂部;冖部;冫部;几部;凵部;刀部;力部;勹部;匕部;匚部;匸部;十部;卜部;卩部;厂部;厶部;又部;口部;囗部;土部;士部;夂部;夊部;夕部;大部;女部;子部;宀部;寸部;小部;尢部;尸部;屮部;山部;巛部;工部;己部;巾部;干部;幺部;广部;廴部;廾部;弋部;弓部;彐部;彡部;彳部;心部;戈部;戸部;手部;支部;攴部;文部;斗部;斤部;方部;无部;日部;曰部;月部;木部;欠部;止部;歹部;殳部;毋部;比部;毛部;氏部;气部;水部;火部;爪部;父部;爻部;爿部;片部;牙部;牛部;犬部;玄部;玉部;瓜部;瓦部;甘部;生部;用部;田部;疋部;疒部;癶部;白部;皮部;皿部;目部;矛部;矢部;石部;示部;禸部;禾部;穴部;立部;竹部;米部;糸部;缶部;网部;羊部;羽部;老部;而部;耒部;耳部;聿部;肉部;臣部;自部;至部;臼部;舌部;舛部;舟部;艮部;色部;艸部;虍部;虫部;血部;行部;衣部;襾部;見部;角部;言部;谷部;豆部;豕部;豸部;貝部;赤部;走部;足部;身部;車部;辛部;辰部;辵部;邑部;酉部;釆部;里部;金部;長部;門部;阜部;隶部;隹部;雨部;靑部;非部;面部;革部;韋部;韭部;音部;頁部;風部;飛部;食部;首部;香部;馬部;骨部;高部;髟部;鬥部;鬯部;鬲部;鬼部;魚部;鳥部;鹵部;鹿部;麥部;麻部;黃部;黍部;黑部;黹部;黽部;鼎部;鼓部;鼠部;鼻部;齊部;齒部;龍部;龜部;龠部" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh14.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh14.ist new file mode 100644 index 00000000000..7e92ed574f7 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh14.ist @@ -0,0 +1,13 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "ko@collation=unihan" +hanzi_head "一部;丨部;丶部;丿部;乙部;亅部;二部;亠部;人部;儿部;入部;八部;冂部;冖部;冫部;几部;凵部;刀部;力部;勹部;匕部;匚部;匸部;十部;卜部;卩部;厂部;厶部;又部;口部;囗部;土部;士部;夂部;夊部;夕部;大部;女部;子部;宀部;寸部;小部;尢部;尸部;屮部;山部;巛部;工部;己部;巾部;干部;幺部;广部;廴部;廾部;弋部;弓部;彐部;彡部;彳部;心部;戈部;戶部;手部;支部;攴部;文部;斗部;斤部;方部;无部;日部;曰部;月部;木部;欠部;止部;歹部;殳部;毋部;比部;毛部;氏部;气部;水部;火部;爪部;父部;爻部;爿部;片部;牙部;牛部;犬部;玄部;玉部;瓜部;瓦部;甘部;生部;用部;田部;疋部;疒部;癶部;白部;皮部;皿部;目部;矛部;矢部;石部;示部;禸部;禾部;穴部;立部;竹部;米部;糸部;缶部;网部;羊部;羽部;老部;而部;耒部;耳部;聿部;肉部;臣部;自部;至部;臼部;舌部;舛部;舟部;艮部;色部;艸部;虍部;虫部;血部;行部;衣部;襾部;見部;角部;言部;谷部;豆部;豕部;豸部;貝部;赤部;走部;足部;身部;車部;辛部;辰部;辵部;邑部;酉部;釆部;里部;金部;長部;門部;阜部;隶部;隹部;雨部;靑部;非部;面部;革部;韋部;韭部;音部;頁部;風部;飛部;食部;首部;香部;馬部;骨部;高部;髟部;鬥部;鬯部;鬲部;鬼部;魚部;鳥部;鹵部;鹿部;麥部;麻部;黃部;黍部;黑部;黹部;黽部;鼎部;鼓部;鼠部;鼻部;齊部;齒部;龍部;龜部;龠部" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh2.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh2.ist new file mode 100644 index 00000000000..359f3b97bde --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh2.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "zh" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh21.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh21.ist new file mode 100644 index 00000000000..499dcf9eff3 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh21.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "zh@collation=stroke" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh22.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh22.ist new file mode 100644 index 00000000000..6cc7d3252ca --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh22.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "zh@collation=stroke" +hanzi_head "1画;2画;3画;4画;5画;6画;7画;8画;9画;10画;11画;12画;13画;14画;15画;16画;17画;18画;19画;20画;21画;22画;23画;24画;25画;26画;27画;28画;29画;30画;31画;32画;33画;35画;36画;39画;48画" diff --git a/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh31.ist b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh31.ist new file mode 100644 index 00000000000..c3584031e7c --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/alphabet/mdxsty_zh31.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +icu_locale "zh@collation=zhuyin" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/mdxsty00.ist b/Master/texmf-dist/doc/support/upmendex/samples/mdxsty00.ist new file mode 100644 index 00000000000..06c3eea2d0c --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/mdxsty00.ist @@ -0,0 +1,10 @@ +% -*- coding: utf-8 -*- + +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" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/mdxsty01.ist b/Master/texmf-dist/doc/support/upmendex/samples/mdxsty01.ist new file mode 100644 index 00000000000..9d9788275fe --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/mdxsty01.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +character_order "NSKJHGCL" + diff --git a/Master/texmf-dist/doc/support/upmendex/samples/mdxsty02.ist b/Master/texmf-dist/doc/support/upmendex/samples/mdxsty02.ist new file mode 100644 index 00000000000..f90af4f9253 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/mdxsty02.ist @@ -0,0 +1,17 @@ +% -*- coding: utf-8 -*- + +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" + +character_order "JKHGCLSN" + +tumunja "가나다라마바사아카" +%% tumunja "㉠㉡㉢㉣㉤㉥㉦㉧㉨㉩㉪㉫㉬㉭" +%% tumunja "㉮㉯㉰㉱㉲㉳㉴㉵㉶㉷㉸㉹㉺㉻" +%% tumunja "㈀㈁㈂㈃㈄㈅㈆㈇㈈㈉㈊㈋㈌㈍" +%% tumunja "㈎㈏㈐㈑㈒㈓㈔㈕㈖㈗㈘㈙㈚㈛" diff --git a/Master/texmf-dist/doc/support/upmendex/samples/option/Makefile b/Master/texmf-dist/doc/support/upmendex/samples/option/Makefile new file mode 100644 index 00000000000..8e2746d17c1 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/option/Makefile @@ -0,0 +1,22 @@ +UPMENDEX = upmendex + +# +# test for icu_rules +# +rules: + for sty in rule0; do \ + $(UPMENDEX) -f attri1.idx -s mdxsty_$$sty.ist -o attri1_$$sty.ind ; \ + done + +# +# test for Japanese +# +jp_u: + for sty in 00 01 02; do \ + $(UPMENDEX) japanese.idx -s mdxsty_j$$sty.ist -o japanese_$$sty-umdx.ind ; \ + $(UPMENDEX) japanese.idx -l -s mdxsty_j$$sty.ist -o japanese_l_$$sty-umdx.ind ; \ + $(UPMENDEX) japanese.idx -c -s mdxsty_j$$sty.ist -o japanese_c_$$sty-umdx.ind ; \ + $(UPMENDEX) japanese.idx -l -c -s mdxsty_j$$sty.ist -o japanese_lc_$$sty-umdx.ind ; \ + $(UPMENDEX) japanese.idx -r -s mdxsty_j$$sty.ist -o japanese_r_$$sty-umdx.ind ; \ + $(UPMENDEX) japanese.idx -g -s mdxsty_j$$sty.ist -o japanese_g_$$sty-umdx.ind ; \ + done diff --git a/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j00.ist b/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j00.ist new file mode 100644 index 00000000000..93ca3f5c151 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j00.ist @@ -0,0 +1,11 @@ +% -*- coding: utf-8 -*- + +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" + +priority 0 diff --git a/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j01.ist b/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j01.ist new file mode 100644 index 00000000000..b3b09443012 --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j01.ist @@ -0,0 +1,11 @@ +% -*- coding: utf-8 -*- + +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" + +priority 1 diff --git a/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j02.ist b/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j02.ist new file mode 100644 index 00000000000..3b084ba9d8e --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_j02.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +priority 1 +letter_head 2 diff --git a/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_rule0.ist b/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_rule0.ist new file mode 100644 index 00000000000..451656ba59d --- /dev/null +++ b/Master/texmf-dist/doc/support/upmendex/samples/option/mdxsty_rule0.ist @@ -0,0 +1,12 @@ +% -*- coding: utf-8 -*- + +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" + +priority 0 +icu_rules "&a<< のリストで構成されます。 + + -o ind ind ファイルを出力ファイルと見なします。指定がない場合は最初の入力 + ファイルの拡張子を.indとしたもの、入力ファイルが標準入力のみであれば + 標準出力に出力します。 + + -t log log ファイルをログファイルと見なします。指定がない場合は最初の入力 + ファイルの拡張子を.ilgとしたもの、入力ファイルが標準入力のみであれば + 標準エラー出力のみに出力されます。 + + -p no no を索引ページの先頭ページとして指定します。また、TeXの.log ファイル + を参照することにより any (最終ページの次のページから)、odd (最終ペー + ジの次の奇数ページから)、even (最終ページの次の偶数ページから)といっ + た指定も可能です。 + + -- 以降はオプション文字列と解釈しません。 + + +スタイルファイル + + スタイルファイルは makeindex のものと上位互換です。 形式は +<スタイルパラメータ 引数> のリストで構成されます。パラメータの順序は自由です。 + 以下にスタイルパラメータの一覧を示します。 + `%'以降はコメントと見なされます。 + +入力ファイルスタイルパラメータ + keyword <文字列> + "\\indexentry" + 索引エントリを引数として持つコマンド。 + + arg_open <文字> + '{' + 索引エントリ文字列開始を表す文字。 + + arg_close <文字> + '}' + 索引エントリ文字列終了を表す文字。 + + range_open <文字> + '(' + ページ範囲の開始を示す文字。 + + range_close <文字> + ')' + ページ範囲の終了を示す文字。 + + level <文字> + '!' + 従属レベルであることを示す文字。 + + actual <文字> + '@' + このシンボルに続く文字列が実際の索引文字列として出力ファイルに書かれる。 + + encap <文字> + '|' + このシンボルに続く文字列が、ページ番号に付くコマンド名として使われる。 + + page_compositor <文字列> + "-" + 階層化されたページ番号における階層間の区切り文字。 + + page_precedence <文字列> + "rnaRA" + ページ番号の記法の優先順位。'R'および'r'はローマ数字、'n'はアラビア数字、 + 'A'および'a'はアルファベットによる記法を表す。 + + quote <文字> + '"' + upmendex のパラメータ文字に対するエスケープキャラクタ。 + + escape <文字> + '\\' + 一般的な文字に対するエスケープキャラクタ。 + +出力ファイルスタイルパラメータ + + preamble <文字列> + "\\begin{theindex}\n" + 出力ファイルの文字列。 + + postamble <文字列> + "\n\n\\end{theindex}\n" + 出力ファイルの末尾の文字列。 + + setpage_prefix <文字列> + "\n \\setcounter{page}{" + 開始ページを設定するときの、ページ番号の前に付ける文字列。 + + setpage_suffix <文字列> + "}\n" + 開始ページを設定するときの、ページ番号の後に付ける文字列。 + + group_skip <文字列> + "\n\n \\indexsapce\n" + 新項目(頭文字)の前に挿入する縦スペースを表す文字列。 + + lethead_prefix <文字列> + "" + 頭文字の前に付けるコマンド文字列。 + + heading_prefix <文字列> + "" + lethead_prefixと同じ。 + + lethead_suffix <文字列> + "" + 頭文字の後に付けるコマンド文字列。 + + heading_suffix <文字列> + "" + lethead_suffixと同じ。 + + lethead_flag <文字列> + 0 + 頭文字の出力のフラグ。0のとき出力しない。1のときは英字を大文字で、 + -1のときは小文字で、2のときはタイトルケースで出力する。 + + heading_flag <文字列> + 0 + lethead_flagと同じ。 + + tumunja <文字列> + "ㄱㄴㄷㄹㅁㅂㅅㅇㅈㅊㅋㅌㅍㅎ" + ハングル見出し文字。見出し文字を文字列で指定する。(upmendex専用) + + hanzi_head <文字列> + "" + 漢字見出し文字列。見出し文字列を";"で区切って指定することにより + デフォルト設定の文字列を上書きする。(upmendex専用) + + item_0 <文字列> + "\n \\item " + 主エントリ間に挿入するコマンド。 + + item_1 <文字列> + "\n \\subitem " + サブエントリ間に挿入するコマンド。 + + item_2 <文字列> + "\n \\subsubitem " + サブサブエントリ間に挿入するコマンド。 + + item_01 <文字列> + "\n \\subitem " + 主〜サブエントリ間に挿入するコマンド。 + + item_x1 <文字列> + "\n \\subitem " + 主〜サブエントリ間に挿入するコマンド。(主エントリにページ番号がないとき) + + item_12 <文字列> + "\n \\subsubitem " + サブ〜サブサブエントリ間に挿入するコマンド。 + + item_x2 <文字列> + "\n \\subsubitem " + サブ〜サブサブエントリ間に挿入するコマンド。(サブエントリにページ番号が + ないとき) + + delim_0 <文字列> + ", " + 主エントリと最初のページ番号の間の区切り文字列。 + + delim_1 <文字列> + ", " + サブエントリと最初のページ番号の間の区切り文字列。 + + delim_2 <文字列> + ", " + サブサブエントリと最初のページ番号の間の区切り文字列。 + + delim_n <文字列> + ", " + ページ番号間の区切り文字列。どのエントリレベルにも共通。 + + delim_r <文字列> + "--" + ページ範囲を示すときの、ページ番号間の区切り文字列。 + + delim_t <文字列> + "" + ページ番号のリストの終端に出力する文字列。 + + suffix_2p <文字列> + "" + ページ番号が2ページ連続する場合に、delim_n と2ページ目の番号の代わりに + 付加する文字列。 + 文字列が定義されている場合にのみ有効。 + + suffix_3p <文字列> + "" + ページ番号が3ページ連続する場合に、delim_r と3ページ目の番号の代わりに + 付加する文字列。suffix_mp より優先される。 + 文字列が定義されている場合にのみ有効。 + + suffix_mp <文字列> + "" + ページ番号が3ページまたはそれ以上連続する場合に、delim_r と末尾のページ + 番号の代わりに付加する文字列。 + 文字列が定義されている場合にのみ有効。 + + encap_prefix <文字列> + "\\" + ページ番号にコマンドを付けるときの、コマンド名の前に付ける文字列。 + + encap_infix <文字列> + "{" + ページ番号にコマンドを付けるときの、ページ番号の前に付ける文字列。 + + encap_suffix <文字列> + "}" + ページ番号にコマンドを付けるときの、ページ番号の後に付ける文字列。 + + line_max <数値> + 72 + 1行の最大文字数。それを超えると折り返す。 + + indent_space <文字列> + "\t\t" + 折り返した行の頭に挿入するスペース。 + + indent_length <数値> + 16 + 折り返した行の頭に挿入されるスペースの長さ。 + + symhead_positive <文字列> + "Symbols" + lethead_flag または heading_flag が正数の場合に数字・記号の頭文字として + 出力する文字列。 + + symhead_negative <文字列> + "symbols" + lethead_flag または heading_flag が負数の場合に数字・記号の頭文字として + 出力する文字列。 + + symbol <文字列> + "" + symbol_flag が0でない場合に、数字・記号の頭文字として出力する文字列。 + 文字列が定義されていれば、symhead_positive および symhead_negative より + 優先される。((up)mendex専用) + + symbol_flag <数値> + 1 + symbol の出力フラグ。0のとき出力しない。((up)mendex専用) + + letter_head <数値> + 1 + 日本語の頭文字の出力のフラグ。1のときカタカナ、2のときひらがなで出力する。 + ((up)mendex専用) + + priority <数値> + 0 + 日本語以外の文字(ラテン文字など)と日本語との混在した索引語のソート方法についてのフラグ。 + 0でなければ日本語以外の文字と日本語との間に半角スペースを入れた状態でソートする。 + ((up)mendex専用) + + character_order <文字列> + "SNLGCJKH" + 記号、英字、日本語の優先順位。'S'は記号、'N'は数字、'L'はラテン文字、 + 'G'はギリシャ文字、'C'はキリル文字、'J'は日本語(かな)、'K'はハングル、 + 'H'は漢字を表す。(upmendex専用) + + icu_locale <文字列> + "" + ICU collatorにおいて従うlocale。 + 空文字列(デフォルト)のときは、"root sort order"に従う。 + (upmendex専用) + + icu_rules <文字列> + "" + ICU collatorにおいてlocaleによらずに照合順序を指定する場合、 + 照合順序のルールを示す文字列。 + ( Ref. http://userguide.icu-project.org/collation/customization + http://www.unicode.org/reports/tr35/tr35-collation.html#Rules ) + UTF-8のUnicode文字及び、以下のエスケープ文字列が使用可能である: + \uhhhh (16進数[0-9A-Fa-f]を4桁), \Uhhhhhhhh (16進数を8桁), + \xhh (16進数を2桁), \x{h...} (16進数を1〜8桁), \ooo (8進数[0-7]を3桁)。 + 空文字列(デフォルト)のときは、localeによる照合順序のルールに従う。 + (upmendex専用) + + icu_attributes <文字列> + "" + ICU collatorのattribute指定。 + ( Ref. http://userguide.icu-project.org/collation/customization + http://www.unicode.org/reports/tr35/tr35-collation.html#Setting_Options ) + 以下の文字列を解釈する: + "alternate:shifted", "alternate:non-ignorable", + "strength:primary", "strength:secondary", "strength:tertiary", + "strength:quaternary", "strength:identical", + "french-collation:on", "french-collation:off", + "case-first:off", "case-first:upper-first", "case-first:lower-first", + "case-level:on", "case-level:off", + "normalization-mode:on", "normalization-mode:off" + (upmendex専用) + + +日本語の扱いについて + + upmendex は日本語の索引をできるだけ楽に扱えるようになっています。 + makeindex では日本語の索引が正しく辞書順にソートするためにはひらがなまたはカタ +カナに揃え、拗音、撥音、濁点を除いた読みを付けなければなりませんでした(自動的に +揃えるバージョンもある)。 + upmendex ではカナについてはInternational Components for Unicode (ICU)による +ソートを行います。また漢字については辞書ファイルを設定することにより各索引語ごと +に読みを付ける作業をかなり解消できます。 + + 辞書ファイルは <熟語 読み> のリストで構成されます。熟語と読みの区切りはタブま +たはスペースです。 + + 以下に辞書の例を示します。 + + 漢字 かんじ + 読み よみ + 環境 かんきょう + α アルファ + + 辞書に登録する熟語は、読み方が1通りになるよう送り仮名を付けてください。 + 「表」、「性質」のように送り仮名によらず2通りの読み方ができる語についてはどち +らか1つしか登録できません。他の読み方については各索引語へ読みを付けることで対応 +してください。 + また、環境変数 INDEXDEFAULTDICTIONARY に辞書ファイルを登録することにより、 +自動的に辞書を参照します。環境変数に登録した辞書は -d で指定した辞書と併用できま +す。 + + +ソート方法について + + upmendex は通常は入力された索引語をそのままソートします。-l オプションが付けられ +た場合、複数の単語で構成される索引語については、ソートするときに単語と単語の間の +スペースを詰めてソートします。 + ここでは前者を単語順ソート、後者を文字順ソートと呼ぶことにします。 + 文字順ソートの場合、実際に出力される文字列はスペースを含んだ状態のものなので、 +索引語自体が変化することはありません。 + + 以下に例を示します。 + + 単語順ソート 文字順ソート + X Window Xlib + Xlib XView + XView X Window + + また、日本語〜日本語以外の文字(ラテン文字など)間でも似たようなソート方法があります。 +スタイルファイルでpriority に0以外を指定した場合、隣接した日本語と日本語以外の文字 +(ラテン文字など)の間にスペースを入れてソートします。 + + 以下に例を示します。 + + priority=0 priority=1 + index sort indファイル + indファイル index sort + + +環境変数 + + upmendex では以下のような環境変数を使用しています。 + + INDEXSTYLE + 索引スタイルファイルがあるディレクトリ + + INDEXDEFAULTSTYLE + デフォルトで参照する索引スタイルファイル + + INDEXDICTIONARY + 辞書があるディレクトリ + + INDEXDEFAULTDICTIONARY + 常に参照する辞書ファイル + + +詳細について + + その他、仕様の詳細については makeindex と同じです。 + + +問題点等 + + 複数のページ記法を使用する場合、ページ順に.idxファイルを与えないとページ番号を +誤認することがあります。 + + +参考 + +International Components for Unicode (ICU) +http://site.icu-project.org/ -- cgit v1.2.3