Mercurial > emacs
annotate etc/charsets/Makefile @ 89087:bab63e51dbaa
(set-case-syntax-pair): Remove check on byte
lengths.
author | Dave Love <fx@gnu.org> |
---|---|
date | Sat, 07 Sep 2002 23:54:43 +0000 |
parents | c9c8fd3a8523 |
children | 28939d6dacea |
rev | line source |
---|---|
88417 | 1 # Makefile for charset maps (for maintainers only) |
2 # Copyright (C) 2001, 2002 | |
3 # National Institute of Advanced Industrial Science and Technology (AIST) | |
4 # Registration Number H13PRO009 | |
5 | |
6 # This file is part of GNU Emacs. | |
7 | |
8 # GNU Emacs is free software; you can redistribute it and/or modify | |
9 # it under the terms of the GNU General Public License as published by | |
10 # the Free Software Foundation; either version 2, or (at your option) | |
11 # any later version. | |
12 | |
13 # GNU Emacs is distributed in the hope that it will be useful, | |
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 # GNU General Public License for more details. | |
17 | |
18 # You should have received a copy of the GNU General Public License | |
19 # along with GNU Emacs; see the file COPYING. If not, write to | |
20 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
21 # Boston, MA 02111-1307, USA. | |
22 | |
23 SED = sed | |
24 | |
25 MAPS = 8859-2.map \ | |
26 8859-3.map \ | |
27 8859-4.map \ | |
28 8859-5.map \ | |
29 8859-6.map \ | |
30 8859-7.map \ | |
31 8859-8.map \ | |
32 8859-9.map \ | |
33 8859-10.map \ | |
34 8859-13.map \ | |
35 8859-14.map \ | |
36 8859-15.map \ | |
37 8859-16.map \ | |
38 gb2312-1980.map \ | |
88447
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
39 gbk.map \ |
88417 | 40 ksc5601-1987.map \ |
41 jisx0201.map \ | |
42 jisx0208-1990.map \ | |
43 jisx0212-1990.map \ | |
44 cns11643-1.map \ | |
45 cns11643-2.map \ | |
46 big5.map \ | |
47 viscii.map \ | |
48 koi8-r.map \ | |
49 ibm866.map \ | |
50 mac-roman.map \ | |
88447
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
51 gb18030-bmp.map |
88417 | 52 |
53 all: ${MAPS} | |
54 | |
55 GLIBCDIR=../../../src/glibc-2.2.4/localedata/charmaps | |
88447
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
56 ICUDIR=../../../icu/data |
88417 | 57 |
58 8859-%.map: ${GLIBCDIR}/ISO-8859-% | |
59 ${SED} -n \ | |
60 -e '/^<U[^x]*x[89A-Fa-f]/s/<U\(....\)[^x]*\(...\).*/0\2 0x\1/p' \ | |
61 < $< > $@ | |
62 | |
63 gb2312-1980.map: ${GLIBCDIR}/GB2312 | |
64 ${SED} -n -e \ | |
65 '/x[a-f]..x[a-f]/s/<U\(....\)[^x]*\(...\).\(...\).*/0x\2\3 0x\1/p' \ | |
66 < $< \ | |
67 | ${SED} -e 's/xa/2/g' -e 's/xb/3/g' -e 's/xc/4/g' \ | |
68 -e 's/xd/5/g' -e 's/xe/6/g' -e 's/xf/7/g' \ | |
69 > $@ | |
70 | |
88447
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
71 gbk.map: ${GLIBCDIR}/GBK |
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
72 ${SED} -n -e \ |
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
73 '/^<.*x[0-9a-f]..x[0-9a-f]/s/<U\(....\)[^x]*x\(..\)..\(..\).*/0x\2\3 0x\1/p' \ |
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
74 < $< > $@ |
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
75 |
88417 | 76 ksc5601-1987.map: ${GLIBCDIR}/EUC-KR |
77 ${SED} -n -e \ | |
78 '/x[a-f]..x[a-f]/s/<U\(....\)[^x]*\(...\).\(...\).*/0x\2\3 0x\1/p' \ | |
79 < $< \ | |
80 | ${SED} -e 's/xa/2/g' -e 's/xb/3/g' -e 's/xc/4/g' \ | |
81 -e 's/xd/5/g' -e 's/xe/6/g' -e 's/xf/7/g' \ | |
82 > $@ | |
83 | |
84 jisx0201.map: ${GLIBCDIR}/JIS_C6220-1969-RO ${GLIBCDIR}/EUC-JP | |
85 ${SED} -n -e '/^<U/s/<U\(....\)[^x]*\(...\).*/0\2 0x\1/p' \ | |
86 < ${GLIBCDIR}/JIS_C6220-1969-RO > $@ | |
87 ${SED} -n -e '/x8e/s/<U\(....\)[^x]*....\(...\).*/0\2 0x\1/p' \ | |
88 < ${GLIBCDIR}/EUC-JP >> $@ | |
89 | |
90 # We map 0x2140 to U+FF3C (FULL WIDTH REVERSE SOLIDUS), not to U+005C | |
91 # (REVERSE SOLIDUS). | |
92 jisx0208-1990.map: ${GLIBCDIR}/EUC-JP | |
93 ${SED} -n -e \ | |
94 '/^[^x]*x[a-f]..x[a-f]/s,<U\(....\)[^/]*\(........\).*,0x\2 0x\1,p' \ | |
95 < $< \ | |
96 | ${SED} -e 's,/xa,2,g' -e 's,/xb,3,g' -e 's,/xc,4,g' \ | |
97 -e 's,/xd,5,g' -e 's,/xe,6,g' -e 's,/xf,7,g' \ | |
98 > $@ | |
99 | |
100 jisx0212-1990.map: ${GLIBCDIR}/EUC-JP | |
101 ${SED} -n -e \ | |
102 '/x8f/s,<U\(....\)[^/]*/x8f\(........\).*,0x\2 0x\1,p' \ | |
103 < $< \ | |
104 | ${SED} -e 's,/xa,2,g' -e 's,/xb,3,g' -e 's,/xc,4,g' \ | |
105 -e 's,/xd,5,g' -e 's,/xe,6,g' -e 's,/xf,7,g' \ | |
106 > $@ | |
107 | |
108 cns11643-1.map: ${GLIBCDIR}/EUC-TW | |
109 ${SED} -n -e \ | |
110 '/^[^x]*x[a-f]..x[a-f]/s,<U\(....\)[^/]*\(........\).*,0x\2 0x\1,p' \ | |
111 < $< \ | |
112 | ${SED} -e 's,/xa,2,g' -e 's,/xb,3,g' -e 's,/xc,4,g' \ | |
113 -e 's,/xd,5,g' -e 's,/xe,6,g' -e 's,/xf,7,g' \ | |
114 > $@ | |
115 | |
116 cns11643-2.map: ${GLIBCDIR}/EUC-TW | |
117 ${SED} -n -e \ | |
118 '/x8e.xa2/s,<U\(....\)[^/]*/x8e/xa2\(........\).*,0x\2 0x\1,p' \ | |
119 < $< \ | |
120 | ${SED} -e 's,/xa,2,g' -e 's,/xb,3,g' -e 's,/xc,4,g' \ | |
121 -e 's,/xd,5,g' -e 's,/xe,6,g' -e 's,/xf,7,g' \ | |
122 > $@ | |
123 | |
124 big5.map: ${GLIBCDIR}/BIG5 | |
125 ${SED} -n -e \ | |
126 '/^%I[^x]*x[a-f]/s,.*<U\(....\)[^x]*\(...\)..\(..\).*,0\2\3 0x\1,p' \ | |
127 < $< > $@ | |
128 ${SED} -n -e \ | |
129 '/^<[^x]*x[a-f]/s,<U\(....\)[^x]*\(...\)..\(..\).*,0\2\3 0x\1,p' \ | |
130 < $< >> $@ | |
131 | |
132 big5-extra.map: ${GLIBCDIR}/BIG5 | |
133 | |
134 viscii.map: ${GLIBCDIR}/VISCII | |
135 ${SED} -n -e \ | |
136 '/^<U/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' < $< > $@ | |
137 | |
138 koi8-r.map: ${GLIBCDIR}/KOI8-R | |
139 ${SED} -n -e \ | |
140 '/^<U/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' < $< > $@ | |
141 | |
142 ibm866.map: ${GLIBCDIR}/IBM866 | |
143 ${SED} -n -e \ | |
144 '/^<U/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' < $< > $@ | |
145 | |
146 mac-roman.map: ${GLIBCDIR}/MACINTOSH | |
147 ${SED} -n -e \ | |
148 '/^<U[^x]*x[89A-Fa-f]/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' \ | |
149 < $< > $@ | |
150 | |
88447
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
151 gb18030-bmp.map: ${ICUDIR}/gb18030.ucm gb18030.awk |
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
152 ${SED} -n -e '/CHARMAP/,/END CHARMAP/p' < $< | gawk -f gb18030.awk > $@ |
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
153 |
88417 | 154 maintainer-clean: |
155 rm -rf ${MAPS} |