File: charmap.5

package info (click to toggle)
manpages-ja 0.5.0.0.20180315%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,516 kB
  • sloc: perl: 161; makefile: 101
file content (102 lines) | stat: -rw-r--r-- 4,802 bytes parent folder | download | duplicates (3)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.\" Copyright (C) 1994  Jochen Hein (Hein@Student.TU-Clausthal.de)
.\"
.\" %%%LICENSE_START(GPLv2+_SW_3_PARA)
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, see
.\" <http://www.gnu.org/licenses/>.
.\" %%%LICENSE_END
.\"
.\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.\"
.\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
.\"         all rights reserved.
.\" Translated Thu Feb  5 21:12:56 JST 1998
.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\" Updated Wed Jan  9 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
.\"
.TH CHARMAP 5 2014\-07\-08 GNU "Linux Programmer's Manual"
.SH 名前
charmap \- 文字集合記述ファイル
.SH 説明
文字集合記述 (charmap) は、ある文字集合において使用できるすべての文字とその符号化を定義する。 \fBlocaledef\fP(1) は、
文字集合記述を使って、 別の文字集合向けのロケールの派生版を作成することができる。
.SS 文法
charmap ファイルは以下のキーワードからなるヘッダーで始まる:
.TP 
\fI<code_set_name>\fP
キャラクターマップの名前を指定する。
.TP 
\fI<comment_char>\fP
ファイルの残りの部分でコメントキャラクターとして使用する文字 を指定する。デフォルトではシャープ (#) である。
.TP 
\fI<escape_char>\fP
ファイルの残りの部分でエスケープキャラクターとして使用する文字を 指定する。これは特殊な意味に解釈される文字をエスケープするのに使用する。
デフォルトはバックスラッシュ (\e) である。
.TP 
\fI<mb_cur_max>\fP
一文字あたりの最大バイト数を指定する。 デフォルトは 1 である。
.TP 
\fI<mb_cur_min>\fP
一文字あたりの最小バイト数を指定する。この値は \fImb_cur_max\fP 以下でなければならない。 指定されなかった場合のデフォルト値は
\fImb_cur_max\fP である。
.PP
文字集合定義のセクションは、 第一カラムにキーワード \fBCHARMAP\fP を置くことで始める。

続く行では以下の 2 つの方法のいずれかを使って文字集合を定義する。
.TP 
\fI<character> <byte\-sequence> <comment>\fP
ある 1 文字とそのバイト列を定義する。 \fI<comment>\fP は省略可能。
.TP 
\fI<character>..<character> <byte\-sequence> <comment>\fP
これは文字の範囲とそのバイト列を定義する。 \fI<comment>\fP は省略可能。
.PP
文字集合定義のセクションは文字列 \fIEND CHARMAP\fP で終了する。
.PP
文字集合定義のセクションの後ろに、文字幅を定義するセクションを続けることができる。
.PP
\fBWIDTH_DEFAULT\fP キーワードを使って、リストに明示的に載っていない全文字で使用されるデフォルトの文字幅を定義できる。
デフォルトの文字幅は 1 である。
.PP
個別の文字の文字幅定義のセクションは、 第一カラムにキーワード \fBWIDTH\fP を置いて開始する。

続く行では以下の 2 つの方法のいずれかを使って文字幅を定義する。
.TP 
\fI<character> <width>\fP
指定した 1 文字の幅を定義する。
.TP 
\fI<character>...<character> <width>\fP
指定した範囲の全文字の幅を定義する。
.PP
文字幅定義のセクションは文字列 \fIEND WIDTH\fP で終了する。
.SH ファイル
.TP 
\fI/usr/share/i18n/charmaps\fP
デフォルトのキャラクターマップの通常のパス。
.SH 準拠
POSIX.2.
.SH 例
ユーロ記号は \fIUTF\-8\fP キャラクターマップでは以下のように定義される。
.PP
.nf
<U20AC>     /xe2/x82/xac
.fi
.SH 関連項目
\fBiconv\fP(1), \fBlocale\fP(1), \fBlocaledef\fP(1), \fBlocale\fP(5), \fBcharsets\fP(7)
.SH この文書について
この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。