annotate admin/charsets/Makefile @ 89751:a6bed93396e8

(TRANS_TABLE): New macro. (JISX0208.map): Convert 0x2015 to 0x2014. (cp51932.el): New target. (eucjp-ms.el): New target. (install): Include ${TRANS_TABLE}.
author Kenichi Handa <handa@m17n.org>
date Tue, 27 Jan 2004 02:02:55 +0000
parents 09b8cb925c81
children 95fd0085db37
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
88123
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
1 # Makefile -- Makefile to generate charset maps in etc/charsets.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
2 # Copyright (C) 2003
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
3 # National Institute of Advanced Industrial Science and Technology (AIST)
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
4 # Registration Number H13PRO009
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
5 #
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
6 # This file is part of GNU Emacs.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
7
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
8 # GNU Emacs is free software; you can redistribute it and/or modify
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9 # it under the terms of the GNU General Public License as published by
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10 # the Free Software Foundation; either version 2, or (at your option)
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11 # any later version.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
13 # GNU Emacs is distributed in the hope that it will be useful,
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
16 # GNU General Public License for more details.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
17
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
18 # You should have received a copy of the GNU General Public License
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19 # along with GNU Emacs; see the file COPYING. If not, write to the
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 # Boston, MA 02111-1307, USA.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
23 # Commentary
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
24
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
25 # At first, set these environment variables:
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
26 # GLIBC_CHARMAPS
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
27 # Directory of glibc-VERSION/localedate/charmaps.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
28 # VERSION must be 2.3 or the later.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
29 # MISC_CHARMAPS
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30 # Direcory containing these charmap files:
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31 # o bulgarian-mik.txt.gz
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
32 # provided at <http://czyborra.com/charsets/>
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
33 # o PTCP154
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
34 # provided at <http://www.iana.org/assignments/charset-reg/>
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
35 # o stdenc.txt and symbol.txt
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
36 # provided at <http://www.unicode.org/Public/MAPPINGS/>
89738
d00dd977bedf (CJK): Include CP932-2BYTE.map
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
37 # o cp932.txt
d00dd977bedf (CJK): Include CP932-2BYTE.map
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
38 # provided at <http://www.unicode.org/Public/MAPPINGS/VENDERS>
88123
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
39 # o Uni2JIS
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
40 # provided at <http://kanji.zinbun.kyoto-u.ac.jp/~yasuoka/CJK.html>
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
41 # o 720.htm and 858.htm
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
42 # provided at <http://www.microsoft.com/globaldev/reference/oem/>
89751
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
43 # o eucJP-13th.txt, eucJP-udc.txt, eucJP-ibmext.txt
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
44 # provided at <http://www.opengroup.or.jp/jvc/cde/>
88123
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
45 # OLDEMACS
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
46 # emacs of version 21.3.50 or later
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
47 #
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
48 # Then, do this:
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
49 # % make install
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
50
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
51 CHARSETS = ${ISO8859} ${IBM} ${CODEPAGE} ${CJK} ${MISC} ${MULE}
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
52
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
53 # Note: We can not prepend "ISO-" to these map files because of file
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
54 # name limits on DOS.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
55 ISO8859 = \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56 8859-2.map 8859-3.map 8859-4.map 8859-5.map 8859-6.map 8859-7.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
57 8859-8.map 8859-9.map 8859-10.map 8859-11.map 8859-13.map 8859-14.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
58 8859-15.map 8859-16.map
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
59
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60 IBM = \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
61 IBM037.map IBM038.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 IBM256.map IBM273.map IBM274.map IBM275.map IBM277.map IBM278.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
63 IBM280.map IBM281.map IBM284.map IBM285.map IBM290.map IBM297.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 IBM420.map IBM423.map IBM424.map IBM437.map IBM500.map IBM850.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65 IBM851.map IBM852.map IBM855.map IBM856.map IBM857.map IBM860.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
66 IBM861.map IBM862.map IBM863.map IBM864.map IBM865.map IBM866.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
67 IBM868.map IBM869.map IBM870.map IBM871.map IBM874.map IBM875.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
68 IBM880.map IBM891.map IBM903.map IBM904.map IBM905.map IBM918.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
69 IBM1004.map IBM1026.map IBM1047.map
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
70
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
71 CODEPAGE = \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
72 CP737.map CP775.map CP1125.map\
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
73 CP1250.map CP1251.map CP1252.map CP1253.map CP1254.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
74 CP1255.map CP1256.map CP1257.map CP1258.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
75 CP10007.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
76 CP720.map CP858.map
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
77
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
78 CJK = GB2312.map GBK.map GB180302.map GB180304.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
79 BIG5.map BIG5-HKSCS.map\
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
80 CNS-1.map CNS-2.map CNS-3.map CNS-4.map CNS-5.map CNS-6.map CNS-7.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
81 CNS-F.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
82 JISX0201.map JISX0208.map JISX0212.map JISX2131.map JISX2132.map \
89738
d00dd977bedf (CJK): Include CP932-2BYTE.map
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
83 JISC6226.map CP932-2BYTE.map\
88123
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
84 KSC5601.map KSC5636.map JOHAB.map
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
85
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
86 MISC = KOI-8.map KOI8-R.map KOI8-U.map KOI8-T.map ALTERNATIVNYJ.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
87 MIK.map PTCP154.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
88 TIS-620.map VISCII.map VSCII.map VSCII-2.map\
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
89 KA-PS.map KA-ACADEMY.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
90 HP-ROMAN8.map NEXTSTEP.map MACINTOSH.map EBCDICUK.map EBCDICUS.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
91 stdenc.map symbol.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
92 CP949-2BYTE.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
93 BIG5-1.map BIG5-2.map
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
94
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
95 # Emacs-mule charsets.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
96 MULE = MULE-ethiopic.map MULE-ipa.map MULE-is13194.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
97 MULE-sisheng.map MULE-tibetan.map \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
98 MULE-lviscii.map MULE-uviscii.map
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
99
89751
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
100 TRANS_TABLE = cp51932.el eucjp-ms.el
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
101
88123
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
102 charsets: ${CHARSETS}
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
103
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
104 AWK = gawk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
105
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
106 # Rules for each charset
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
107
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
108 VSCII.map: ${GLIBC_CHARMAPS}/TCVN5712-1 mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
109 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
110 @mapconv $< '/^<.*[ ]\/x[0-9a-f].[ ]/' GLIBC-1 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
111
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
112 VSCII-2.map: ${GLIBC_CHARMAPS}/TCVN5712-1 mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
113 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
114 @mapconv $< '/^<.*[ ]\/x[2-7a-f].[ ]/' GLIBC-1 compact.awk \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
115 | sed 's/0x20-0x7F.*/0x00-0x7F 0x0000/' > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
116
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
117 ALTERNATIVNYJ.map: IBM866.map
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
118 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
119 @echo "# Modified from ibm866 according to the chart at" > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
120 @echo "# http://www.cyrillic.com/ref/cyrillic/koi-8alt.html," >> $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
121 @echo "# with guesses for the Unicodes of the glyphs." >> $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
122 @sed -e '/0xF2/ s/ .*/ 0x2019/' \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
123 -e '/0xF3/ s/ .*/ 0x2018/' \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
124 -e '/0xF4/ s/ .*/ 0x0301/' \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
125 -e '/0xF5/ s/ .*/ 0x0300/' \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
126 -e '/0xF6/ s/ .*/ 0x203A/' \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
127 -e '/0xF7/ s/ .*/ 0x2039/' \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
128 -e '/0xF8/ s/ .*/ 0x2191/' \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
129 -e '/0xF9/ s/ .*/ 0x2193/' \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
130 -e '/0xFA/ s/ .*/ 0x00B1/' \
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
131 -e '/0xFB/ s/ .*/ 0x00F7/' < $< >> $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
132
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
133 MIK.map: ${MISC_CHARMAPS}/bulgarian-mik.txt.gz mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
134 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
135 @mapconv $< '1,$$' CZYBORRA compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
136
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
137 PTCP154.map: ${MISC_CHARMAPS}/PTCP154 mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
138 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
139 @mapconv $< '/^0x/' IANA compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
140
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
141 stdenc.map: ${MISC_CHARMAPS}/stdenc.txt mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
142 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
143 @mapconv $< '/^[0-9A-Fa-f]/' UNICODE compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
144
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
145 symbol.map: ${MISC_CHARMAPS}/symbol.txt mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
146 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
147 @mapconv $< '/^[0-9A-Fa-f]/' UNICODE compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
148
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
149 CP720.map: ${MISC_CHARMAPS}/720.htm mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
150 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
151 @mapconv $< '/^[0-9A-F]/' MICROSOFT compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
152
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
153 CP858.map: ${MISC_CHARMAPS}/858.htm mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
154 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
155 @mapconv $< '/^[0-9A-F]/' MICROSOFT compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
156
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
157 CP949-2BYTE.map: ${GLIBC_CHARMAPS}/CP949 mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
158 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
159 @mapconv $< '/^<.*[ ]\/x[89a-f]/' GLIBC-2 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
160
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
161 GB2312.map: ${GLIBC_CHARMAPS}/GB2312 mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
162 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
163 @mapconv $< '/^<.*[ ]\/x[a-f]/' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
164
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
165 GBK.map: ${GLIBC_CHARMAPS}/GBK mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
166 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
167 @mapconv $< '/^<.*[ ]\/x[89a-f]/' GLIBC-2 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
168
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
169 GB180302.map: ${GLIBC_CHARMAPS}/GB18030 mapconv gb180302.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
170 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
171 @mapconv $< '/^<.*[ ]\/x..\/x..[ ]/' GLIBC-2 gb180302.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
172
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
173 GB180304.map: GB180302.map gb180304.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
174 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
175 @$(AWK) -f gb180304.awk < $< > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
176
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
177 JISX0201.map: ${GLIBC_CHARMAPS}/JIS_X0201 mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
178 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
179 @mapconv $< '/^<.*[ ]\/x[0-9]/' GLIBC-1 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
180 @echo "# Generated by hand" >> $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
181 @echo "0xA1-0xDF 0xFF61" >> $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
182
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
183 JISX0208.map: ${GLIBC_CHARMAPS}/EUC-JP mapconv
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
184 # Generating $@...
89751
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
185 @mapconv $< '/^<.*[ ]\/x[a-f]/' GLIBC-2-7 \
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
186 | sed 's/0x2015/0x2014/' > $@
88123
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
187
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
188 JISX0212.map: ${GLIBC_CHARMAPS}/EUC-JP mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
189 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
190 @mapconv $< '/^<.*[ ]\/x8f/ s,/x8f,,' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
191
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
192 JISX2131.map: ${GLIBC_CHARMAPS}/EUC-JISX0213 mapconv
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
193 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
194 @mapconv $< '/^<.*[ ]\/x[a-f]/' GLIBC-2-7 > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
195
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
196 JISX2132.map: ${GLIBC_CHARMAPS}/EUC-JISX0213 mapconv
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
197 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
198 @mapconv $< '/^<.*[ ]\/x8f/ s,/x8f,,' GLIBC-2-7 > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
199
89747
09b8cb925c81 (CP932-2BYTE.map): Call mapconv with cp932.awk.
Kenichi Handa <handa@m17n.org>
parents: 89738
diff changeset
200 CP932-2BYTE.map: ${MISC_CHARMAPS}/cp932.txt mapconv cp932.awk
89738
d00dd977bedf (CJK): Include CP932-2BYTE.map
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
201 # Generating $@...
89747
09b8cb925c81 (CP932-2BYTE.map): Call mapconv with cp932.awk.
Kenichi Handa <handa@m17n.org>
parents: 89738
diff changeset
202 @mapconv $< '/^0x[89A-F][0-9A-F][0-9A-F]/' UNICODE2 cp932.awk > $@
89738
d00dd977bedf (CJK): Include CP932-2BYTE.map
Kenichi Handa <handa@m17n.org>
parents: 88123
diff changeset
203
89751
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
204 cp51932.el: CP932-2BYTE.map cp51932.awk
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
205 @$(AWK) -f cp51932.awk < CP932-2BYTE.map > $@
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
206
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
207 eucjp-ms.el: ${MISC_CHARMAPS}/eucJP-13th.txt ${MISC_CHARMAPS}/eucJP-udc.txt \
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
208 ${MISC_CHARMAPS}/eucJP-ibmext.txt eucjp-ms.awk
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
209 @(cd ${MISC_CHARMAPS}; \
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
210 cat eucJP-13th.txt eucJP-udc.txt eucJP-ibmext.txt) \
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
211 | $(AWK) -f eucjp-ms.awk > $@
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
212
88123
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
213 JISC6226.map : ${MISC_CHARMAPS}/Uni2JIS mapconv kuten.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
214 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
215 @mapconv $< '/^[^#].*0-/' YASUOKA kuten.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
216
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
217 KSC5601.map: ${GLIBC_CHARMAPS}/EUC-KR mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
218 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
219 @mapconv $< '/^<.*[ ]\/x[a-f]/' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
220
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
221 BIG5.map: ${GLIBC_CHARMAPS}/BIG5 mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
222 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
223 @mapconv $< '/^<.*[ ]\/x[a-f]/' GLIBC-2 > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
224
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
225 BIG5-1.map: BIG5.map mapconv big5.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
226 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
227 @echo "Generated from $<" > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
228 @sed -n -e '/0xa140/,/0xc8fe/p' < $< | gawk -f big5.awk >> $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
229
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
230 BIG5-2.map: BIG5.map mapconv big5.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
231 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
232 @echo "Generated from $<" > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
233 @sed -n -e '/0xc940/,$$ p' < $< | gawk -f big5.awk >> $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
234
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
235 BIG5-HKSCS.map: ${GLIBC_CHARMAPS}/BIG5-HKSCS mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
236 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
237 @mapconv $< '/^<.*[ ]\/x[89a-f].\//' GLIBC-2 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
238
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
239 JOHAB.map: ${GLIBC_CHARMAPS}/JOHAB mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
240 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
241 @mapconv $< '/^<.*[ ]\/x[89a-f]/' GLIBC-2 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
242
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
243 CNS-1.map: ${GLIBC_CHARMAPS}/EUC-TW mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
244 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
245 @mapconv $< '/^<.*[ ]\/x[a-f]/' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
246
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
247 CNS-2.map: ${GLIBC_CHARMAPS}/EUC-TW mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
248 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
249 @mapconv $< '/^<.*\/x8e\/xa2/s,/x8e/xa2,,' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
250
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
251 CNS-3.map: ${GLIBC_CHARMAPS}/EUC-TW mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
252 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
253 @mapconv $< '/^<.*\/x8e\/xa3/ s,/x8e/xa3,,' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
254
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
255 CNS-4.map: ${GLIBC_CHARMAPS}/EUC-TW mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
256 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
257 @mapconv $< '/^<.*\/x8e\/xa4/ s,/x8e/xa4,,' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
258
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
259 CNS-5.map: ${GLIBC_CHARMAPS}/EUC-TW mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
260 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
261 @mapconv $< '/^<.*\/x8e\/xa5/ s,/x8e/xa5,,' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
262
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
263 CNS-6.map: ${GLIBC_CHARMAPS}/EUC-TW mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
264 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
265 @mapconv $< '/^<.*\/x8e\/xa6/ s,/x8e/xa6,,' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
266
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
267 CNS-7.map: ${GLIBC_CHARMAPS}/EUC-TW mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
268 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
269 @mapconv $< '/^<.*\/x8e\/xa7/ s,/x8e/xa7,,' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
270
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
271 CNS-F.map: ${GLIBC_CHARMAPS}/EUC-TW mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
272 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
273 @mapconv $< '/^<.*\/x8e\/xaf/ s,/x8e/xaf,,' GLIBC-2-7 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
274
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
275 # General target to produce map files for mule charsets.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
276 MULE-%.map: mule-charsets.el
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
277 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
278 @${OLDEMACS} -batch -l ./mule-charsets.el $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
279
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
280 # General target to produce map files for ISO-8859, GEORGIAN, and
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
281 # EBCDIC charsets. We can not use the original file name because of
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
282 # file name limit on DOS. "KA" is ISO 639 language code for Georgian.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
283
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
284 8859-%.map: ${GLIBC_CHARMAPS}/ISO-8859-% mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
285 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
286 @mapconv $< '/^<.*[ ]\/x/' GLIBC-1 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
287
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
288 KA-%.map: ${GLIBC_CHARMAPS}/GEORGIAN-% mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
289 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
290 @mapconv $< '/^<.*[ ]\/x/' GLIBC-1 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
291
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
292 EBCDIC%.map: ${GLIBC_CHARMAPS}/EBCDIC-% mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
293 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
294 @mapconv $< '/^<.*[ ]\/x/' GLIBC-1 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
295
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
296 # General target to produce map files for single-byte charsets.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
297
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
298 %.map: ${GLIBC_CHARMAPS}/% mapconv compact.awk
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
299 # Generating $@...
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
300 @mapconv $< '/^<.*[ ]\/x/' GLIBC-1 compact.awk > $@
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
301
89751
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
302 install: ${CHARSETS} ${TRANS_TABLE}
88123
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
303 cp ${CHARSETS} ../../etc/charsets
89751
a6bed93396e8 (TRANS_TABLE): New macro.
Kenichi Handa <handa@m17n.org>
parents: 89747
diff changeset
304 cp ${TRANS_TABLE} ../../lisp/international
88123
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
305
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
306 # Clear files that are automatically generated.
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
307 clean:
375f2633d815 New directory
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
308 rm -f ${CHARSETS}