OSDN Git Service

af10864576ce4ddc985a20b7caa79046edad3cf9
[linuxjm/LDP_man-pages.git] / draft / man5 / charmap.5
1 .\" Hey emacs, this is -*- nroff -*-
2 .\"
3 .\" This file is part of locale(1) which displays the settings of the
4 .\" current locale.
5 .\" Copyright (C) 1994  Jochen Hein (Hein@Student.TU-Clausthal.de)
6 .\"
7 .\" This program is free software; you can redistribute it and/or modify
8 .\" it under the terms of the GNU General Public License as published by
9 .\" the Free Software Foundation; either version 2 of the License, or
10 .\" (at your option) any later version.
11 .\"
12 .\" This program is distributed in the hope that it will be useful,
13 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
14 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 .\" GNU General Public License for more details.
16 .\"
17 .\" You should have received a copy of the GNU General Public License
18 .\" along with this program; if not, write to the Free Software
19 .\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
20 .\"
21 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
22 .\"         all rights reserved.
23 .\" Translated Thu Feb  5 21:12:56 JST 1998
24 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
25 .\" Updated Wed Jan  9 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
26 .\"
27 .TH CHARMAP 5 1994-11-28 "" "Linux User Manual"
28 .\"O .SH NAME
29 .SH 名前
30 .\"O charmap \- character symbols to define character encodings
31 charmap \- 文字符号化を定義するための文字シンボル
32 .\"O .SH DESCRIPTION
33 .SH 書式
34 .\"O A character set description (charmap) defines a character set of
35 .\"O available characters and their encodings.
36 .\"O All supported character
37 .\"O sets should have the
38 .\"O .B portable character set
39 .\"O as a proper subset.
40 .\"O .\" Not true anymore:
41 .\"O .\" The portable character set is defined in the file
42 .\"O .\" .I /usr/lib/nls/charmap/POSIX
43 .\"O .\" .I /usr/share/i18n/charmap/POSIX
44 .\"O .\" for reference purposes.
45 文字集合記述 (charmap) は使用できる文字集合とその符号化を定義する。
46 サポートされる全ての文字集合は妥当なサブセットとして
47 .B "共通文字集合 (portable character set)"
48 を持たなければならない。
49 .\" 以下はもはや正しくない:
50 .\" 共通文字集合は参照用に
51 .\" .I /usr/lib/nls/charmap/POSIX
52 .\" .I /usr/share/i18n/charmap/POSIX
53 .\" ファイルに定義されている。
54 .\"O .SS Syntax
55 .SS 文法
56 .\"O The charmap file starts with a header, that may consist of the
57 .\"O following keywords:
58 charmap ファイルは以下のキーワードからなるヘッダーで始まる:
59 .TP
60 .\"O .I <codeset>
61 .\"O is followed by the name of the codeset.
62 .I <codeset>
63 はコードセットの名前を指定する。
64 .TP
65 .\"O .I <mb_cur_max>
66 .\"O is followed by the max number of bytes for a multibyte-character.
67 .\"O Multibyte characters are currently not supported.
68 .\"O The default value
69 .\"O is 1.
70 .I <mb_cur_max>
71 は複数バイト文字の一文字あたりの最大バイト数を指定する。
72 複数バイト文字は現在のところサポートされていない。デフォルトは 1 である。
73 .TP
74 .\"O .I <mb_cur_min>
75 .\"O is followed by the min number of bytes for a character.
76 .\"O This
77 .\"O value must be less or equal than
78 .\"O .BR mb_cur_max .
79 .\"O If not specified, it defaults to
80 .\"O .BR mb_cur_max .
81 .I <mb_cur_min>
82 は一文字あたりの最低バイト数を指定する。この値は
83 .B mb_cur_max
84 以下でなければならない。
85 もし指定されなければデフォルトは
86 .B mb_cur_max
87 と同じである。
88 .TP
89 .\"O .I <escape_char>
90 .\"O is followed by a character that should be used as the
91 .\"O escape-character for the rest of the file to mark characters that
92 .\"O should be interpreted in a special way.
93 .\"O It defaults to
94 .\"O the backslash (
95 .\"O .B \\\\
96 .\"O ).
97 .I <escape_char>
98 ファイルの残りの部分でエスケープ・キャラクターとして使用する文字
99 を指定する。これで特殊な意味に解釈される文字をエスケープする。
100 デフォルトはバックスラッシュ
101 .RB ( \e )
102 である。
103 .TP
104 .I <comment_char>
105 はファイルの残りの部分でコメント・キャラクターとして使用する文字
106 を指定する。デフォルトではシャープ
107 .RB ( # )
108 である。
109 .PP
110 .\"O The charmap-definition itself starts with the keyword
111 .\"O .B CHARMAP
112 .\"O in column 1.
113 charmap の定義そのものは第一カラムにキーワード
114 .B CHARMAP
115 を置くことで始める。
116
117 .\"O The following lines may have one of the two following forms to
118 .\"O define the character-encodings:
119 以下の行は文字の符号化を定義するための二つの方法である:
120 .TP
121 .I <symbolic-name> <encoding> <comments>
122 .\"O This form defines exactly one character and its encoding.
123 これは一つの文字とその符号化を定義する。
124 .TP
125 .I <symbolic-name>...<symbolic-name> <encoding> <comments>
126 .\"O This form defines a couple of characters.
127 .\"O This is only useful for
128 .\"O multibyte-characters, which are currently not implemented.
129 この形式は複数の文字を定義する。これは複数バイト文字 (現在は実装されていない)
130 のみで有用である。
131 .PP
132 .\"O The last line in a charmap-definition file must contain
133 .\"O .B END CHARMAP.
134 charmap の定義の最後の行は
135 .B END CHARMAP
136 を置く。
137 .\"O .SS "Symbolic Names"
138 .SS シンボル名
139 .\"O A
140 .\"O .B symbolic name
141 .\"O for a character contains only characters of the
142 .\"O .B portable character set.
143 .\"O The name itself is enclosed between angle brackets.
144 文字の
145 .B シンボル名 (symbolic name)
146
147 .B 共通文字集合(portable character set)
148 の文字のみを含んでいる。
149 この名前はかぎかっこ < > で挟む。
150 .\"O Characters following an
151 .\"O .B <escape_char>
152 .\"O are interpreted as itself; for example, the sequence
153 .\"O .B "<\\\\\\\\\\\\>>"
154 .\"O represents the symbolic name
155 .\"O .B "\\\\>"
156 .\"O enclosed in angle brackets.
157 .B <escape_char>
158 に続く文字はそれ自身として解釈される。例えば
159 .B "<\e\e\e>>"
160 のような文字列は
161 .B "\e>"
162 というシンボル名をかぎかっこで狭んで表現している。
163 .\"O .SS "Character Encoding"
164 .SS 文字符号化
165 .\"O The
166 .\"O encoding may be in each of the following three forms:
167 符号化は以下の三つの形式のどれかで表す:
168 .TP
169 .\"O .I <escape_char>d<number>
170 .\"O with a decimal number
171 .I <escape_char>d<数字>
172 は 10 進の数値を表す。
173 .TP
174 .\"O .I <escape_char>x<number>
175 .\"O with a hexadecimal number
176 .I <escape_char>x<数字>
177 は 16 進の数値を表す。
178 .TP
179 .\"O .I <escape_char><number>
180 .\"O with an octal number.
181 .I <escape_char><数字>
182 は 8 進の数値を表す。
183 .\" FIXME comments
184 .\" FIXME char ... char
185 .\"O .SH FILES
186 .SH ファイル
187 .I /usr/share/i18n/charmaps/*
188 .\"O .\" .SH AUTHOR
189 .\" .SH 著者
190 .\" Jochen Hein (jochen.hein@delphi.central.de)
191 .\"O .SH "CONFORMING TO"
192 .SH 準拠
193 POSIX.2.
194 .\"O .SH "SEE ALSO"
195 .SH 関連項目
196 .BR locale (1),
197 .BR localedef (1),
198 .BR localeconv (3),
199 .BR setlocale (3),
200 .BR locale (5)