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...
NAMEcharmap - character set description file
DESCRIPTIONA character set description (charmap) defines all available characters and their encodings in a character set. localedef(1) can use charmaps to create locale variants for different character sets.
SyntaxThe charmap file starts with a header that may consist of the following keywords:
- is followed by the name of the character map.
- is followed by a character that will be used as the comment character for the rest of the file. It defaults to the number sign (#).
- is followed by a character that should be used as the escape character for the rest of the file to mark characters that should be interpreted in a special way. It defaults to the backslash (\).
- is followed by the maximum number of bytes for a character. The default value is 1.
- is followed by the minimum number of bytes for a character. This value must be less than or equal than mb_cur_max. If not specified, it defaults to mb_cur_max.
The character set definition section starts with the keyword
in the first column.
The following lines may have one of the two following forms to define the character set:
- <character> <byte-sequence> <comment>
- This form defines exactly one character and its byte sequence, <comment> being optional.
- <character>..<character> <byte-sequence> <comment>
- This form defines a character range and its byte sequence, <comment> being optional.
The character set definition section ends with the string END CHARMAP.
The character set definition section may optionally be followed by a section to define widths of characters.
The WIDTH_DEFAULT keyword can be used to define the default width for all characters not explicitly listed. The default character width is 1.
The width section for individual characters starts with the keyword
in the first column.
The following lines may have one of the two following forms to define the widths of the characters:
- <character> <width>
- This form defines the width of exactly one character.
- <character>...<character> <width>
- This form defines the width for all the characters in the range.
The width definition section ends with the string END WIDTH.
- Usual default character map path.
EXAMPLEThe Euro sign is defined as follows in the UTF-8 charmap: