1CHARMAP(5) Linux User Manual CHARMAP(5)
2
3
4
6 charmap - character symbols to define character encodings
7
9 A character set description (charmap) defines a character set of avail‐
10 able characters and their encodings. All supported character sets
11 should have the portable character set as a proper subset.
12
14 The charmap file starts with a header, that may consist of the follow‐
15 ing keywords:
16
17 <codeset>
18 is followed by the name of the codeset.
19
20 <mb_cur_max>
21 is followed by the max number of bytes for a multibyte-charac‐
22 ter. Multibyte characters are currently not supported. The
23 default value is 1.
24
25 <mb_cur_min>
26 is followed by the min number of bytes for a character. This
27 value must be less or equal than mb_cur_max. If not specified,
28 it defaults to mb_cur_max.
29
30 <escape_char>
31 is followed by a character that should be used as the escape-
32 character for the rest of the file to mark characters that
33 should be interpreted in a special way. It defaults to the back‐
34 slash ( \ ).
35
36 <comment_char>
37 is followed by a character that will be used as the comment-
38 character for the rest of the file. It defaults to the number
39 sign ( # ).
40
41
42 The charmap-definition itself starts with the keyword CHARMAP in column
43 1.
44
45 The following lines may have one of the two following forms to define
46 the character-encodings:
47
48 <symbolic-name> <encoding> <comments>
49 This form defines exactly one character and its encoding.
50
51
52 <symbolic-name>...<symbolic-name> <encoding> <comments>
53 This form defines a couple of characters. This is only useful
54 for mutlibyte-characters, which are currently not implemented.
55
56
57 The last line in a charmap-definition file must contain END CHARMAP.
58
60 A symbolic name for a character contains only characters of the porta‐
61 ble character set. The name itself is enclosed between angle brackets.
62 Characters following an <escape_char> are interpreted as itself; for
63 example, the sequence '<\\\>>' represents the symbolic name '\>'
64 enclosed in angle brackets.
65
67 The encoding may be in each of the following three forms:
68
69 <escape_char>d<number>
70 with a decimal number
71
72 <escape_char>x<number>
73 with a hexadecimal number
74
75 <escape_char><number>
76 with an octal number.
77
79 /usr/share/i18n/charmaps/*
80
82 Jochen Hein (jochen.hein@delphi.central.de)
83
85 POSIX.2
86
88 locale(1), localedef(1), localeconv(3), setlocale(3), locale(5)
89
90
91
92National Language Support 1994-11-28 CHARMAP(5)