10791b31971a3e09f497165963e208d9e3287909
[bpt/emacs.git] / etc / charsets / README
1 # README file for charset mapping files in this directory.
2
3 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
4 # Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
5 # National Institute of Advanced Industrial Science and Technology (AIST)
6 # Registration Number H13PRO009
7
8 # This file is part of GNU Emacs.
9
10 # GNU Emacs is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
13 # (at your option) any later version.
14
15 # GNU Emacs is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
19
20 # You should have received a copy of the GNU General Public License
21 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22
23 (1) Format of mapping files
24
25 Each line contains a code point and the corresponding Unicode
26 character code separated by a space. Both code points and Unicode
27 character codes are in hexadecimal preceded by "0x". Comments may be
28 used, starting with "#". Code ranges may also be used, with
29 (inclusive) start and end code points separated by "-" followed by the
30 Unicode of the start of the range
31
32 Examples:
33 0xA0 0x00A0 # no-break space
34
35 0x8141-0x8143 0x4E04 # map onto a Unicode range
36
37
38 (2) Source of mapping files
39
40 All mapping files are generated automatically from data files freely
41 available on the Internet (e.g. glibc/localedata/charmaps"). See the
42 file ../../admin/charsets/mapfiles/README for the detail.