UPMENDEX(1) | General Commands Manual | UPMENDEX(1) |
upmendex - Multilingual index processor
upmendex [-ilqrcgf] [-s sty] [-d
dic] [-o ind] [-t log] [-p no]
[--] [ idx0 idx1 idx2 ...]
upmendex --help
The program upmendex is a general purpose multilingual
hierarchical index generator working with upLaTeX, XeLaTeX and LuaLaTeX; it
accepts one or more input files (.idx; often produced by a text
formatter such as LaTeX families), sorts the entries, and produces an output
file which can be formatted. It supports Latin (including non-English),
Greek, Cyrillic, Korean Hangul and Han (Hanzi ideographs) scripts, as well
as Japanese Kana. It is almost compatible with makeindex and
mendex, and additional feature for handling readings of kanji words
is also available.
The formats of the input and output files are specified in a style file. The
readings of kanji words can be specified in a dictionary file.
The index can have up to three levels (0, 1, and 2) of subitem nesting.
The style file informs upmendex about the format of the idx input files and the intended format of the final output file. The format is upper compatible with the one for makeindex and mendex. The style file contains a list of <specifier attribute> pairs. There are two types of specifiers: input and output. Pairs do not have to appear in any particular order. A line begun by ´%´ is a comment.
Input file style parameter
Output file style parameter
upmendex has an additional feature to simplify the
procedure of handling Japanese indexes, compared to makeindex. Users
can save the effort of manually specifying a reading for every kanji word.
Japanese kanji words are usually sorted by the syllables of their readings
(´Yomi´), which can be represented by kana (Hiragana,
Katakana) scripts. upmendex accepts index words specified in kana
expression directly on an input file, and also accepts conversion from index
words to kana scripts by referring to Japanese dictionaries.
Examples of internal simplification of syllables are shown below.
The dictionary file consists of list with
<´index_word´ ´reading´>. The index word
can be written in any scripts (kanji, kana, etc), and the reading must be in
Hiragana or Katakana scripts. The delimiter between the index word and its
reading is one or more tab(s) or space(s).
An example of a Japanese dictionary is shown below.
Here, each index word is allowed to have only one Yomi. Though
some kanji words (ex. 「表」) may have more than one
Yomi´s (ex. 「ひょう」 and
「おもて」), only one of them can be
registered in the dictionary. When some different Yomi´s are needed,
they should be specified explicitly in kana expression (ex.
\index{ひょう@表} or
\index{おもて@表}) on the input file.
Moreover, a dictionary file is automatically referred by setting the file name
at an environment variable INDEXDEFAULTDICTIONARY. The dictionary set
by the environment variable can be used together with file(s) specified by
-d option.
upmendex sorts indexes as is (´sort by word
order´) by default. Setting -l option, spaces between words in
an index are truncated prior to sorting procedure (´sort by character
order´).
Even when sort by character order, the index at output remains the original
sequence without the truncation.
Follows show an example.
In addition, two sorting methods can be applied for indexes which
contains both Japanese kana and other scripts (e.g. Latin script). By
setting priority 0 (default) and 1 at a style file, a space between
Japanese Kana and other scripts is inserted and not inserted respectively,
prior to the sorting procedure.
Follows show an example.
upmendex refers environment variables as follows.
Detailed specification is compatible with makeindex.
When plural page number expression is used, .idx files should be specified along with the order of page numbers. Otherwise, wrong page numbers might be output.
tex(1), latex(1), makeindex(1),
mendex(1).
International Components for Unicode (ICU):
<http://site.icu-project.org/>
This manual page was written by Takuji Tanaka based on the mendex manual page written by Japanese TeX Development Community.