|
NAMEmendex - Japanese index processorSYNOPSISmendex [-ilqrcgfEJSU] [-s sty] [-d dic] [-o ind] [-t log] [-p no] [-I enc] [--help] [--] [ idx0 idx1 idx2 ...]DESCRIPTIONThe program mendex is a general purpose hierarchical index generator; it accepts one or more input files (.idx; often produced by a text formatter such as LaTeX), sorts the entries, and produces an output file which can be formatted. It is almost compatible with makeindex, 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. OPTIONS
STYLE FILEThe style file informs mendex 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. 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
Command with an argument of index entry.
Opening delimiter which shows the beginning of index
entry.
Closing delimiter which shows the end of index
entry.
Opening delimiter which shows the beginning of page
range.
Closing delimiter which shows the end of page
range.
Delimiter which shows lower level.
Symbol which shows the next sequence is to appear as
index strings in the output file.
Symbol which shows the next sequence is to be used as
command name attached to the page number.
Separator between page levels for a style with
multi-levels of page numbers.
Priority of expression for page number. ´R´
and ´r´ correspond to Roman. ´n´ corresponds to
arabic numeral. ´A´ and ´a´ correspond to Latin
alphabet.
Escape character for mendex parameters.
Escape character for general scripts.
Output file style parameter
Preamble of output file.
Postamble of output file.
Prefix of page number if start page is designated.
Suffix of page number if start page is designated.
Strings to insert vertical space before new section of
index.
Prefix of heading for newly appeared heading
letter.
Same as lethead_prefix.
Suffix of heading for newly appeared heading
letter.
Same as lethead_suffix.
Flag to control output of heading letters.
´0´, ´1´ and ´-1´ respectively
denotes no output, uppercase and lowercase.
Same as lethead_flag.
Command sequence inserted between primary level
entries.
Command sequence inserted between sub level
entries.
Command sequence inserted between subsub level
entries.
Command sequence inserted between primaly and sub level
entries.
Command sequence inserted between primary and sub level
entries when main entry does not have page number.
Command sequence inserted between sub and subsub level
entries.
Command sequence inserted between sub and subsub level
entries when sub level entry does not have page number.
Delimiter string between primary level entry and first
page number.
Delimiter string between sub level entry and first page
number.
Delimiter string between subsub level entry and first
page number.
Delimiter string between page numbers commonly used for
any entry level.
Delimiter string between pages to show page range.
Delimiter string output at the end of page number
list.
String to be inserted in place of delim_n and the
next page number when the two pages are contiguous.
It works only when the parameter is defined.
String to be inserted in place of delim_r and the
third page number when the three pages are contiguous. The parameter is prior
to suffix_mp.
It works only when the parameter is defined.
String to be inserted in place of delim_r and the
last page number when the three or more pages are contiguous.
It works only when the parameter is defined.
Prefix for an encapsulating command when the
encapsulating command is added to the page number.
Prefix just before the page number when the encapsulating
command is added to the page number.
Suffix after the page number when the encapsulating
command is added to the page number.
Maximum number of one line. If exceed the number, lines
are folded.
Space for indent which inserted to top of folded
line.
Length of space for indent which inserted to top of
folded line.
Strings to output as heading letter for numbers and
symbols when lethead_flag or heading_flag is positive number.
Strings to output as heading letter for numbers and
symbols when lethead_flag or heading_flag is negative number.
Strings to output as heading letter for numbers and
symbols when symbol_flag is non zero.
If specified, the option is prior to symhead_positive and symhead_negative.
(Extended by mendex)
Flag to output of symbol. If ´0´, do not
output. (Extended by mendex)
Flag of heading letter for Japanese Kana. If
´1´ and ´2´, Katakana and Hiragana is used,
respectively. (Extended by mendex)
Flag of sorting method for index words composed of
Japanese and non-Japanese (ex. Latin scripts). If non zero, one space (U+20)
is inserted between Japanese sequence and non-Japanese sequence in sorting
procedure. (Extended by mendex)
Order of scripts and symbols. ´S´,
´E´ and ´J´ respectively denotes symbol, English
and Japanese. (Extended by mendex)
ABOUT JAPANESE PROCESSINGmendex 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. mendex 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).
漢字 かんじ 読み よみ 環境 かんきょう α アルファ 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.
ABOUT SORTING PROCEDUREmendex 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. sort by word order sort by character order
X Window Xlib Xlib XView XView X Window 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.
priority=0 priority=1
index sort indファイル indファイル index sort ENVIRONMENT VARIABLESmendex refers environment variables as follows.
DETAILDetailed specification is compatible with makeindex.KNOWN ISSUESWhen 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.SEE ALSOtex(1), latex(1), makeindex(1)AUTHORThis manual page was written by Japanese TeX Development Community. Visit the GSP FreeBSD Man Page Interface. |