1CHARMAP(5)                 Linux Programmer's Manual                CHARMAP(5)
2
3
4

NAME

6       charmap - character set description file
7

DESCRIPTION

9       A  character set description (charmap) defines all available characters
10       and their encodings in a character set.  localedef(1) can use  charmaps
11       to create locale variants for different character sets.
12
13   Syntax
14       The charmap file starts with a header that may consist of the following
15       keywords:
16
17       <code_set_name>
18              is followed by the name of the character map.
19
20       <comment_char>
21              is followed by a character that will  be  used  as  the  comment
22              character  for  the rest of the file.  It defaults to the number
23              sign (#).
24
25       <escape_char>
26              is followed by a character that should be  used  as  the  escape
27              character  for  the  rest  of  the  file to mark characters that
28              should be interpreted in a special  way.   It  defaults  to  the
29              backslash (\).
30
31       <mb_cur_max>
32              is followed by the maximum number of bytes for a character.  The
33              default value is 1.
34
35       <mb_cur_min>
36              is followed by the minimum number  of  bytes  for  a  character.
37              This value must be less than or equal than <mb_cur_max>.  If not
38              specified, it defaults to <mb_cur_max>.
39
40       The character set definition section starts with the keyword CHARMAP in
41       the first column.
42
43       The  following  lines may have one of the two following forms to define
44       the character set:
45
46       <character> byte-sequence comment
47              This form defines exactly one character and its  byte  sequence,
48              comment being optional.
49
50       <character>..<character> byte-sequence comment
51              This  form defines a character range and its byte sequence, com‐
52              ment being optional.
53
54       The character set definition section ends with the string END CHARMAP.
55
56       The character set definition section may optionally be  followed  by  a
57       section to define widths of characters.
58
59       The  WIDTH_DEFAULT  keyword can be used to define the default width for
60       all characters not explicitly listed.  The default character  width  is
61       1.
62
63       The  width  section  for  individual characters starts with the keyword
64       WIDTH in the first column.
65
66       The following lines may have one of the two following forms  to  define
67       the widths of the characters:
68
69       <character> width
70              This form defines the width of exactly one character.
71
72       <character>...<character> width
73              This form defines the width for all the characters in the range.
74
75       The width definition section ends with the string END WIDTH.
76

FILES

78       /usr/share/i18n/charmaps
79              Usual default character map path.
80

CONFORMING TO

82       POSIX.2.
83

EXAMPLE

85       The Euro sign is defined as follows in the UTF-8 charmap:
86
87       <U20AC>     /xe2/x82/xac EURO SIGN
88

SEE ALSO

90       iconv(1), locale(1), localedef(1), locale(5), charsets(7)
91

COLOPHON

93       This  page  is  part of release 4.15 of the Linux man-pages project.  A
94       description of the project, information about reporting bugs,  and  the
95       latest     version     of     this    page,    can    be    found    at
96       https://www.kernel.org/doc/man-pages/.
97
98
99
100GNU                               2016-07-17                        CHARMAP(5)
Impressum