Mercurial > emacs
annotate etc/charsets/Makefile @ 89444:ccdb59cdceed
(ctext-non-standard-encodings-alist):
Renamed from non-standard-icccm-encodings-alist.
(ctext-non-standard-encodings-regexp): New variable
(ctext-post-read-conversion): Full rewrite.
(ctext-non-standard-designations-alist): Renamed from
non-standard-designations-alist.
(ctext-pre-write-conversion): Full rewrite.
(define-coding-system): Doc fix (escape '"' by '\').
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Wed, 28 May 2003 11:41:17 +0000 |
| parents | 57ae6e07f6b0 |
| children |
| 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 \ | |
| 89435 | 50 mac-roman.map \ |
| 51 gb18030-2.map \ | |
| 52 gb18030-4.map | |
| 88417 | 53 |
| 54 all: ${MAPS} | |
| 55 | |
|
89430
28939d6dacea
(MAPS): Change gb18030.map to gb18030-2.map
Kenichi Handa <handa@m17n.org>
parents:
88447
diff
changeset
|
56 GLIBCDIR=../../../m17n-db/glibc-2.3/localedata/charmaps |
|
88447
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
57 ICUDIR=../../../icu/data |
| 88417 | 58 |
| 59 8859-%.map: ${GLIBCDIR}/ISO-8859-% | |
| 60 ${SED} -n \ | |
| 61 -e '/^<U[^x]*x[89A-Fa-f]/s/<U\(....\)[^x]*\(...\).*/0\2 0x\1/p' \ | |
| 62 < $< > $@ | |
| 63 | |
| 64 gb2312-1980.map: ${GLIBCDIR}/GB2312 | |
| 65 ${SED} -n -e \ | |
| 66 '/x[a-f]..x[a-f]/s/<U\(....\)[^x]*\(...\).\(...\).*/0x\2\3 0x\1/p' \ | |
| 67 < $< \ | |
| 68 | ${SED} -e 's/xa/2/g' -e 's/xb/3/g' -e 's/xc/4/g' \ | |
| 69 -e 's/xd/5/g' -e 's/xe/6/g' -e 's/xf/7/g' \ | |
| 70 > $@ | |
| 71 | |
|
88447
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
72 gbk.map: ${GLIBCDIR}/GBK |
|
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
73 ${SED} -n -e \ |
|
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
74 '/^<.*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
|
75 < $< > $@ |
|
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
76 |
| 88417 | 77 ksc5601-1987.map: ${GLIBCDIR}/EUC-KR |
| 78 ${SED} -n -e \ | |
| 79 '/x[a-f]..x[a-f]/s/<U\(....\)[^x]*\(...\).\(...\).*/0x\2\3 0x\1/p' \ | |
| 80 < $< \ | |
| 81 | ${SED} -e 's/xa/2/g' -e 's/xb/3/g' -e 's/xc/4/g' \ | |
| 82 -e 's/xd/5/g' -e 's/xe/6/g' -e 's/xf/7/g' \ | |
| 83 > $@ | |
| 84 | |
| 85 jisx0201.map: ${GLIBCDIR}/JIS_C6220-1969-RO ${GLIBCDIR}/EUC-JP | |
| 86 ${SED} -n -e '/^<U/s/<U\(....\)[^x]*\(...\).*/0\2 0x\1/p' \ | |
| 87 < ${GLIBCDIR}/JIS_C6220-1969-RO > $@ | |
| 88 ${SED} -n -e '/x8e/s/<U\(....\)[^x]*....\(...\).*/0\2 0x\1/p' \ | |
| 89 < ${GLIBCDIR}/EUC-JP >> $@ | |
| 90 | |
| 91 # We map 0x2140 to U+FF3C (FULL WIDTH REVERSE SOLIDUS), not to U+005C | |
| 92 # (REVERSE SOLIDUS). | |
| 93 jisx0208-1990.map: ${GLIBCDIR}/EUC-JP | |
| 94 ${SED} -n -e \ | |
| 95 '/^[^x]*x[a-f]..x[a-f]/s,<U\(....\)[^/]*\(........\).*,0x\2 0x\1,p' \ | |
| 96 < $< \ | |
| 97 | ${SED} -e 's,/xa,2,g' -e 's,/xb,3,g' -e 's,/xc,4,g' \ | |
| 98 -e 's,/xd,5,g' -e 's,/xe,6,g' -e 's,/xf,7,g' \ | |
| 99 > $@ | |
| 100 | |
| 101 jisx0212-1990.map: ${GLIBCDIR}/EUC-JP | |
| 102 ${SED} -n -e \ | |
| 103 '/x8f/s,<U\(....\)[^/]*/x8f\(........\).*,0x\2 0x\1,p' \ | |
| 104 < $< \ | |
| 105 | ${SED} -e 's,/xa,2,g' -e 's,/xb,3,g' -e 's,/xc,4,g' \ | |
| 106 -e 's,/xd,5,g' -e 's,/xe,6,g' -e 's,/xf,7,g' \ | |
| 107 > $@ | |
| 108 | |
| 109 cns11643-1.map: ${GLIBCDIR}/EUC-TW | |
| 110 ${SED} -n -e \ | |
| 111 '/^[^x]*x[a-f]..x[a-f]/s,<U\(....\)[^/]*\(........\).*,0x\2 0x\1,p' \ | |
| 112 < $< \ | |
| 113 | ${SED} -e 's,/xa,2,g' -e 's,/xb,3,g' -e 's,/xc,4,g' \ | |
| 114 -e 's,/xd,5,g' -e 's,/xe,6,g' -e 's,/xf,7,g' \ | |
| 115 > $@ | |
| 116 | |
| 117 cns11643-2.map: ${GLIBCDIR}/EUC-TW | |
| 118 ${SED} -n -e \ | |
| 119 '/x8e.xa2/s,<U\(....\)[^/]*/x8e/xa2\(........\).*,0x\2 0x\1,p' \ | |
| 120 < $< \ | |
| 121 | ${SED} -e 's,/xa,2,g' -e 's,/xb,3,g' -e 's,/xc,4,g' \ | |
| 122 -e 's,/xd,5,g' -e 's,/xe,6,g' -e 's,/xf,7,g' \ | |
| 123 > $@ | |
| 124 | |
| 125 big5.map: ${GLIBCDIR}/BIG5 | |
| 126 ${SED} -n -e \ | |
| 127 '/^%I[^x]*x[a-f]/s,.*<U\(....\)[^x]*\(...\)..\(..\).*,0\2\3 0x\1,p' \ | |
| 128 < $< > $@ | |
| 129 ${SED} -n -e \ | |
| 130 '/^<[^x]*x[a-f]/s,<U\(....\)[^x]*\(...\)..\(..\).*,0\2\3 0x\1,p' \ | |
| 131 < $< >> $@ | |
| 132 | |
| 133 big5-extra.map: ${GLIBCDIR}/BIG5 | |
| 134 | |
| 135 viscii.map: ${GLIBCDIR}/VISCII | |
| 136 ${SED} -n -e \ | |
| 137 '/^<U/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' < $< > $@ | |
| 138 | |
| 139 koi8-r.map: ${GLIBCDIR}/KOI8-R | |
| 140 ${SED} -n -e \ | |
| 141 '/^<U/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' < $< > $@ | |
| 142 | |
| 143 ibm866.map: ${GLIBCDIR}/IBM866 | |
| 144 ${SED} -n -e \ | |
| 145 '/^<U/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' < $< > $@ | |
| 146 | |
| 147 mac-roman.map: ${GLIBCDIR}/MACINTOSH | |
| 148 ${SED} -n -e \ | |
| 149 '/^<U[^x]*x[89A-Fa-f]/s/<U\(....\)[^x]*x\(..\).*/0x\2 0x\1/p' \ | |
| 150 < $< > $@ | |
| 151 | |
|
89430
28939d6dacea
(MAPS): Change gb18030.map to gb18030-2.map
Kenichi Handa <handa@m17n.org>
parents:
88447
diff
changeset
|
152 gb18030-2.map: ${GLIBCDIR}/GB18030 gb18030-2.awk |
|
28939d6dacea
(MAPS): Change gb18030.map to gb18030-2.map
Kenichi Handa <handa@m17n.org>
parents:
88447
diff
changeset
|
153 ${SED} -n '/^<U....>[ ]*\/x..\/x..[ ]/ p' < $< \ |
|
28939d6dacea
(MAPS): Change gb18030.map to gb18030-2.map
Kenichi Handa <handa@m17n.org>
parents:
88447
diff
changeset
|
154 | ${SED} -e 's,<U\([^>]*\)>[ ]*/x\(..\)/x\(..\).*$$,0x\2\3 0x\1,' \ |
|
28939d6dacea
(MAPS): Change gb18030.map to gb18030-2.map
Kenichi Handa <handa@m17n.org>
parents:
88447
diff
changeset
|
155 | sort | gawk -f gb18030-2.awk > $@ |
|
28939d6dacea
(MAPS): Change gb18030.map to gb18030-2.map
Kenichi Handa <handa@m17n.org>
parents:
88447
diff
changeset
|
156 |
| 89432 | 157 gb18030-4.map: gb18030-2.map gb18030-4.awk |
|
89430
28939d6dacea
(MAPS): Change gb18030.map to gb18030-2.map
Kenichi Handa <handa@m17n.org>
parents:
88447
diff
changeset
|
158 gawk -f gb18030-4.awk < $< > $@ |
|
88447
c9c8fd3a8523
(MAPS): Add gbk.map and gb18030-bmp.map.
Kenichi Handa <handa@m17n.org>
parents:
88417
diff
changeset
|
159 |
| 88417 | 160 maintainer-clean: |
| 161 rm -rf ${MAPS} |
