Mercurial > emacs
annotate lisp/international/mule-conf.el @ 93582:d0caff25b712
Add defvar -> defcustom.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 03 Apr 2008 04:12:51 +0000 |
parents | c47c2a6cbc09 |
children | 889bc336b89b |
rev | line source |
---|---|
17070 | 1 ;;; mule-conf.el --- configure multilingual environment |
2 | |
74544 | 3 ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, |
79709 | 4 ;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
5 ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 | |
62274 | 6 ;; National Institute of Advanced Industrial Science and Technology (AIST) |
7 ;; Registration Number H14PRO021 | |
89483 | 8 ;; Copyright (C) 2003 |
88411 | 9 ;; National Institute of Advanced Industrial Science and Technology (AIST) |
10 ;; Registration Number H13PRO009 | |
17070 | 11 |
88486 | 12 ;; Keywords: i18n, mule, multilingual, character set, coding system |
17070 | 13 |
14 ;; This file is part of GNU Emacs. | |
15 | |
16 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
17 ;; it under the terms of the GNU General Public License as published by | |
78310
2daf9c28b3a4
Restore comma mistakenly removed in last change.
Glenn Morris <rgm@gnu.org>
parents:
78301
diff
changeset
|
18 ;; the Free Software Foundation; either version 3, or (at your option) |
17070 | 19 ;; any later version. |
20 | |
21 ;; GNU Emacs is distributed in the hope that it will be useful, | |
22 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
23 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
24 ;; GNU General Public License for more details. | |
25 | |
26 ;; You should have received a copy of the GNU General Public License | |
27 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
64085 | 28 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
29 ;; Boston, MA 02110-1301, USA. | |
17070 | 30 |
31 ;;; Commentary: | |
32 | |
88575 | 33 ;; This file defines the Emacs charsets and some basic coding systems. |
34 ;; Other coding systems are defined in the files in directory | |
35 ;; lisp/language. | |
17070 | 36 |
37 ;;; Code: | |
38 | |
88666 | 39 ;;; Remarks |
40 | |
88575 | 41 ;; The ISO-IR registry is at http://www.itscj.ipsj.or.jp/ISO-IR/. |
42 ;; Standards docs equivalent to iso-2022 and iso-8859 are at | |
43 ;; http://www.ecma.ch/. | |
44 | |
88717 | 45 ;; FWIW, http://www.microsoft.com/globaldev/ lists the following for |
46 ;; MS Windows, which are presumably the only charsets we really need | |
47 ;; to worry about on such systems: | |
88666 | 48 ;; `OEM codepages': 437, 720, 737, 775, 850, 852, 855, 857, 858, 862, 866 |
49 ;; `Windows codepages': 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, | |
50 ;; 1258, 874, 932, 936, 949, 950 | |
51 | |
17070 | 52 ;;; Definitions of character sets. |
53 | |
89089 | 54 ;; The charsets `ascii', `unicode' and `eight-bit' are already defined |
55 ;; in charset.c as below: | |
88411 | 56 ;; |
57 ;; (define-charset 'ascii | |
58 ;; "" | |
59 ;; :dimension 1 | |
60 ;; :code-space [0 127] | |
89089 | 61 ;; :iso-final-char ?B |
88411 | 62 ;; :ascii-compatible-p t |
63 ;; :emacs-mule-id 0 | |
64 ;; :code-offset 0) | |
65 ;; | |
66 ;; (define-charset 'unicode | |
67 ;; "" | |
68 ;; :dimension 3 | |
69 ;; :code-space [0 255 0 255 0 16] | |
70 ;; :ascii-compatible-p t | |
71 ;; :code-offset 0) | |
72 ;; | |
89089 | 73 ;; (define-charset 'eight-bit |
74 ;; "" | |
75 ;; :dimension 1 | |
76 ;; :code-space [128 255] | |
77 ;; :code-offset #x3FFF80) | |
78 ;; | |
88411 | 79 ;; We now set :docstring, :short-name, and :long-name properties. |
80 | |
81 (put-charset-property | |
82 'ascii :docstring "ASCII (ISO646 IRV)") | |
83 (put-charset-property | |
84 'ascii :short-name "ASCII") | |
85 (put-charset-property | |
86 'ascii :long-name "ASCII (ISO646 IRV)") | |
87 (put-charset-property | |
89050
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
88 'iso-8859-1 :docstring "Latin-1 (ISO/IEC 8859-1)") |
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
89 (put-charset-property |
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
90 'iso-8859-1 :short-name "Latin-1") |
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
91 (put-charset-property |
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
92 'iso-8859-1 :long-name "Latin-1") |
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
93 (put-charset-property |
88411 | 94 'unicode :docstring "Unicode (ISO10646)") |
95 (put-charset-property | |
96 'unicode :short-name "Unicode") | |
97 (put-charset-property | |
98 'unicode :long-name "Unicode (ISO10646)") | |
89089 | 99 (put-charset-property 'eight-bit :docstring "Raw bytes 0-255") |
100 (put-charset-property 'eight-bit :short-name "Raw bytes") | |
17070 | 101 |
88411 | 102 (define-charset-alias 'ucs 'unicode) |
103 | |
104 (define-charset 'emacs | |
88647 | 105 "Full Emacs characters" |
88411 | 106 :ascii-compatible-p t |
107 :code-space [ 0 255 0 255 0 63 ] | |
108 :code-offset 0 | |
109 :supplementary-p t) | |
110 | |
111 (define-charset 'latin-iso8859-1 | |
112 "Right-Hand Part of ISO/IEC 8859/1 (Latin-1): ISO-IR-100" | |
113 :short-name "RHP of Latin-1" | |
114 :long-name "RHP of ISO/IEC 8859/1 (Latin-1): ISO-IR-100" | |
115 :iso-final-char ?A | |
116 :emacs-mule-id 129 | |
117 :code-space [32 127] | |
118 :code-offset 160) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
119 |
88735 | 120 ;; Name perhaps not ideal, but is XEmacs-compatible. |
121 (define-charset 'control-1 | |
88411 | 122 "8-bit control code (0x80..0x9F)" |
123 :short-name "8-bit control code" | |
124 :code-space [128 159] | |
125 :code-offset 128) | |
126 | |
88735 | 127 (define-charset 'eight-bit-control |
128 "Raw bytes in the range 0x80..0x9F (usually produced from invalid encodings)" | |
129 :short-name "Raw bytes 0x80..0x9F" | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
130 :supplementary-p t |
88735 | 131 :code-space [128 159] |
132 :code-offset #x3FFF80) ; see character.h | |
133 | |
88411 | 134 (define-charset 'eight-bit-graphic |
88735 | 135 "Raw bytes in the range 0xA0..0xFF (usually produced from invalid encodings)" |
136 :short-name "Raw bytes 0xA0..0xFF" | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
137 :supplementary-p t |
88411 | 138 :code-space [160 255] |
88735 | 139 :code-offset #x3FFFA0) ; see character.h |
17070 | 140 |
88411 | 141 (defmacro define-iso-single-byte-charset (symbol iso-symbol name nickname |
142 iso-ir iso-final | |
143 emacs-mule-id map) | |
144 `(progn | |
145 (define-charset ,symbol | |
146 ,name | |
147 :short-name ,nickname | |
148 :long-name ,name | |
149 :ascii-compatible-p t | |
150 :code-space [0 255] | |
151 :map ,map) | |
152 (if ,iso-symbol | |
153 (define-charset ,iso-symbol | |
154 (if ,iso-ir | |
155 (format "Right-Hand Part of %s (%s): ISO-IR-%d" | |
156 ,name ,nickname ,iso-ir) | |
157 (format "Right-Hand Part of %s (%s)" ,name ,nickname)) | |
158 :short-name (format "RHP of %s" ,name) | |
159 :long-name (format "RHP of %s (%s)" ,name ,nickname) | |
160 :iso-final-char ,iso-final | |
88486 | 161 :emacs-mule-id ,emacs-mule-id |
88411 | 162 :code-space [32 127] |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
163 :subset (list ,symbol 160 255 -128))))) |
88411 | 164 |
165 (define-iso-single-byte-charset 'iso-8859-2 'latin-iso8859-2 | |
166 "ISO/IEC 8859/2" "Latin-2" 101 ?B 130 "8859-2") | |
167 | |
168 (define-iso-single-byte-charset 'iso-8859-3 'latin-iso8859-3 | |
169 "ISO/IEC 8859/3" "Latin-3" 109 ?C 131 "8859-3") | |
170 | |
171 (define-iso-single-byte-charset 'iso-8859-4 'latin-iso8859-4 | |
172 "ISO/IEC 8859/4" "Latin-4" 110 ?D 132 "8859-4") | |
173 | |
174 (define-iso-single-byte-charset 'iso-8859-5 'cyrillic-iso8859-5 | |
175 "ISO/IEC 8859/5" "Latin/Cyrillic" 144 ?L 140 "8859-5") | |
176 | |
177 (define-iso-single-byte-charset 'iso-8859-6 'arabic-iso8859-6 | |
178 "ISO/IEC 8859/6" "Latin/Arabic" 127 ?G 135 "8859-6") | |
179 | |
180 (define-iso-single-byte-charset 'iso-8859-7 'greek-iso8859-7 | |
181 "ISO/IEC 8859/7" "Latin/Greek" 126 ?F 134 "8859-7") | |
182 | |
183 (define-iso-single-byte-charset 'iso-8859-8 'hebrew-iso8859-8 | |
184 "ISO/IEC 8859/8" "Latin/Hebrew" 138 ?H 136 "8859-8") | |
185 | |
186 (define-iso-single-byte-charset 'iso-8859-9 'latin-iso8859-9 | |
187 "ISO/IEC 8859/9" "Latin-5" 148 ?M 141 "8859-9") | |
17070 | 188 |
88575 | 189 (define-iso-single-byte-charset 'iso-8859-10 'latin-iso8859-10 |
88671 | 190 "ISO/IEC 8859/10" "Latin-6" 157 ?V nil "8859-10") |
88575 | 191 |
88671 | 192 ;; http://www.nectec.or.th/it-standards/iso8859-11/ |
193 ;; http://www.cwi.nl/~dik/english/codes/8859.html says this is tis-620 | |
194 ;; plus nbsp | |
195 (define-iso-single-byte-charset 'iso-8859-11 'thai-iso8859-11 | |
196 "ISO/IEC 8859/11" "Latin/Thai" 166 ?T nil "8859-11") | |
197 | |
198 ;; 8859-12 doesn't (yet?) exist. | |
88575 | 199 |
88411 | 200 (define-iso-single-byte-charset 'iso-8859-13 'latin-iso8859-13 |
88575 | 201 "ISO/IEC 8859/13" "Latin-7" 179 ?Y nil "8859-13") |
88411 | 202 |
203 (define-iso-single-byte-charset 'iso-8859-14 'latin-iso8859-14 | |
204 "ISO/IEC 8859/14" "Latin-8" 199 ?_ 143 "8859-14") | |
205 | |
206 (define-iso-single-byte-charset 'iso-8859-15 'latin-iso8859-15 | |
207 "ISO/IEC 8859/15" "Latin-9" 203 ?b 142 "8859-15") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
208 |
88565 | 209 (define-iso-single-byte-charset 'iso-8859-16 'latin-iso8859-16 |
88638 | 210 "ISO/IEC 8859/16" "Latin-10" 226 ?f nil "8859-16") |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
211 |
88647 | 212 ;; No point in keeping it around. |
213 (fmakunbound 'define-iso-single-byte-charset) | |
214 | |
88671 | 215 ;; Can this be shared with 8859-11? |
89089 | 216 ;; N.b. not all of these are defined unicodes. |
88411 | 217 (define-charset 'thai-tis620 |
218 "TIS620.2533" | |
219 :short-name "TIS620.2533" | |
220 :iso-final-char ?T | |
221 :emacs-mule-id 133 | |
222 :code-space [32 127] | |
223 :code-offset #x0E00) | |
224 | |
88671 | 225 ;; Fixme: doc for this, c.f. above |
88411 | 226 (define-charset 'tis620-2533 |
227 "TIS620.2533" | |
228 :short-name "TIS620.2533" | |
229 :ascii-compatible-p t | |
230 :code-space [0 255] | |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
231 :superset '(ascii eight-bit-control (thai-tis620 . 128))) |
88411 | 232 |
233 (define-charset 'jisx0201 | |
234 "JISX0201" | |
235 :short-name "JISX0201" | |
89483 | 236 :code-space [0 #xDF] |
237 :map "JISX0201") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
238 |
88411 | 239 (define-charset 'latin-jisx0201 |
240 "Roman Part of JISX0201.1976" | |
241 :short-name "JISX0201 Roman" | |
242 :long-name "Japanese Roman (JISX0201.1976)" | |
243 :iso-final-char ?J | |
244 :emacs-mule-id 138 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
245 :supplementary-p t |
88411 | 246 :code-space [33 126] |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
247 :subset '(jisx0201 33 126 0)) |
88411 | 248 |
249 (define-charset 'katakana-jisx0201 | |
250 "Katakana Part of JISX0201.1976" | |
251 :short-name "JISX0201 Katakana" | |
252 :long-name "Japanese Katakana (JISX0201.1976)" | |
253 :iso-final-char ?I | |
254 :emacs-mule-id 137 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
255 :supplementary-p t |
88411 | 256 :code-space [33 126] |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
257 :subset '(jisx0201 161 254 -128)) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
258 |
88411 | 259 (define-charset 'chinese-gb2312 |
260 "GB2312 Chinese simplified: ISO-IR-58" | |
261 :short-name "GB2312" | |
262 :long-name "GB2312: ISO-IR-58" | |
263 :iso-final-char ?A | |
264 :emacs-mule-id 145 | |
265 :code-space [33 126 33 126] | |
266 :code-offset #x110000 | |
89483 | 267 :unify-map "GB2312") |
88411 | 268 |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
269 (define-charset 'chinese-gbk |
88486 | 270 "GBK Chinese simplified." |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
271 :short-name "GBK" |
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
272 :code-space [#x40 #xFE #x81 #xFE] |
88675
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
273 :code-offset #x160000 |
89483 | 274 :unify-map "GBK") |
88666 | 275 (define-charset-alias 'cp936 'chinese-gbk) |
88717 | 276 (define-charset-alias 'windows-936 'chinese-gbk) |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
277 |
88411 | 278 (define-charset 'chinese-cns11643-1 |
279 "CNS11643 Plane 1 Chinese traditional: ISO-IR-171" | |
280 :short-name "CNS11643-1" | |
281 :long-name "CNS11643-1 (Chinese traditional): ISO-IR-171" | |
282 :iso-final-char ?G | |
283 :emacs-mule-id 149 | |
284 :code-space [33 126 33 126] | |
285 :code-offset #x114000 | |
89483 | 286 :unify-map "CNS-1") |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
287 |
88411 | 288 (define-charset 'chinese-cns11643-2 |
289 "CNS11643 Plane 2 Chinese traditional: ISO-IR-172" | |
290 :short-name "CNS11643-2" | |
291 :long-name "CNS11643-2 (Chinese traditional): ISO-IR-172" | |
292 :iso-final-char ?H | |
293 :emacs-mule-id 150 | |
294 :code-space [33 126 33 126] | |
295 :code-offset #x118000 | |
89483 | 296 :unify-map "CNS-2") |
88411 | 297 |
298 (define-charset 'chinese-cns11643-3 | |
299 "CNS11643 Plane 3 Chinese Traditional: ISO-IR-183" | |
300 :short-name "CNS11643-3" | |
301 :long-name "CNS11643-3 (Chinese traditional): ISO-IR-183" | |
302 :iso-final-char ?I | |
303 :code-space [33 126 33 126] | |
304 :emacs-mule-id 246 | |
89483 | 305 :code-offset #x11C000 |
306 :unify-map "CNS-3") | |
88411 | 307 |
308 (define-charset 'chinese-cns11643-4 | |
309 "CNS11643 Plane 4 Chinese Traditional: ISO-IR-184" | |
310 :short-name "CNS11643-4" | |
311 :long-name "CNS11643-4 (Chinese traditional): ISO-IR-184" | |
312 :iso-final-char ?J | |
313 :emacs-mule-id 247 | |
314 :code-space [33 126 33 126] | |
89483 | 315 :code-offset #x120000 |
316 :unify-map "CNS-4") | |
88411 | 317 |
318 (define-charset 'chinese-cns11643-5 | |
319 "CNS11643 Plane 5 Chinese Traditional: ISO-IR-185" | |
320 :short-name "CNS11643-5" | |
321 :long-name "CNS11643-5 (Chinese traditional): ISO-IR-185" | |
322 :iso-final-char ?K | |
323 :emacs-mule-id 248 | |
324 :code-space [33 126 33 126] | |
89483 | 325 :code-offset #x124000 |
326 :unify-map "CNS-5") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
327 |
88411 | 328 (define-charset 'chinese-cns11643-6 |
329 "CNS11643 Plane 6 Chinese Traditional: ISO-IR-186" | |
330 :short-name "CNS11643-6" | |
331 :long-name "CNS11643-6 (Chinese traditional): ISO-IR-186" | |
332 :iso-final-char ?L | |
333 :emacs-mule-id 249 | |
334 :code-space [33 126 33 126] | |
89483 | 335 :code-offset #x128000 |
336 :unify-map "CNS-6") | |
88411 | 337 |
338 (define-charset 'chinese-cns11643-7 | |
339 "CNS11643 Plane 7 Chinese Traditional: ISO-IR-187" | |
340 :short-name "CNS11643-7" | |
341 :long-name "CNS11643-7 (Chinese traditional): ISO-IR-187" | |
342 :iso-final-char ?M | |
343 :emacs-mule-id 250 | |
344 :code-space [33 126 33 126] | |
89483 | 345 :code-offset #x12C000 |
346 :unify-map "CNS-7") | |
88411 | 347 |
348 (define-charset 'big5 | |
349 "Big5 (Chinese traditional)" | |
350 :short-name "Big5" | |
351 :code-space [#x40 #xFE #xA1 #xFE] | |
352 :code-offset #x130000 | |
89483 | 353 :unify-map "BIG5") |
88666 | 354 ;; Fixme: AKA cp950 according to |
355 ;; <URL:http://www.microsoft.com/globaldev/reference/WinCP.asp>. Is | |
356 ;; that correct? | |
88411 | 357 |
358 (define-charset 'chinese-big5-1 | |
88486 | 359 "Frequently used part (A141-C67E) of Big5 (Chinese traditional)" |
88411 | 360 :short-name "Big5 (Level-1)" |
361 :long-name "Big5 (Level-1) A141-C67F" | |
362 :iso-final-char ?0 | |
363 :emacs-mule-id 152 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
364 :supplementary-p t |
88411 | 365 :code-space [#x21 #x7E #x21 #x7E] |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
366 :code-offset #x135000 |
89483 | 367 :unify-map "BIG5-1") |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
368 |
88411 | 369 (define-charset 'chinese-big5-2 |
88486 | 370 "Less frequently used part (C940-FEFE) of Big5 (Chinese traditional)" |
88411 | 371 :short-name "Big5 (Level-2)" |
372 :long-name "Big5 (Level-2) C940-FEFE" | |
373 :iso-final-char ?1 | |
374 :emacs-mule-id 153 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
375 :supplementary-p t |
88411 | 376 :code-space [#x21 #x7E #x21 #x7E] |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
377 :code-offset #x137800 |
89483 | 378 :unify-map "BIG5-2") |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
379 |
88411 | 380 (define-charset 'japanese-jisx0208 |
381 "JISX0208.1983/1990 Japanese Kanji: ISO-IR-87" | |
382 :short-name "JISX0208" | |
383 :long-name "JISX0208.1983/1990 (Japanese): ISO-IR-87" | |
384 :iso-final-char ?B | |
385 :emacs-mule-id 146 | |
386 :code-space [33 126 33 126] | |
387 :code-offset #x140000 | |
89483 | 388 :unify-map "JISX0208") |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
389 |
88411 | 390 (define-charset 'japanese-jisx0208-1978 |
391 "JISX0208.1978 Japanese Kanji (so called \"old JIS\"): ISO-IR-42" | |
392 :short-name "JISX0208.1978" | |
89483 | 393 :long-name "JISX0208.1978 (JISC6226.1978): ISO-IR-42" |
88411 | 394 :iso-final-char ?@ |
395 :emacs-mule-id 144 | |
396 :code-space [33 126 33 126] | |
397 :code-offset #x144000 | |
89483 | 398 :unify-map "JISC6226") |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
399 |
88411 | 400 (define-charset 'japanese-jisx0212 |
401 "JISX0212 Japanese supplement: ISO-IR-159" | |
402 :short-name "JISX0212" | |
403 :long-name "JISX0212 (Japanese): ISO-IR-159" | |
404 :iso-final-char ?D | |
405 :emacs-mule-id 148 | |
406 :code-space [33 126 33 126] | |
407 :code-offset #x148000 | |
89483 | 408 :unify-map "JISX0212") |
88411 | 409 |
89426 | 410 ;; Note that jisx0213 contains characters not in Unicode (3.2?). It's |
411 ;; arguable whether it should have a unify-map. | |
88411 | 412 (define-charset 'japanese-jisx0213-1 |
89766
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
413 "JISX0213.2000 Plane 1 (Japanese)" |
88411 | 414 :short-name "JISX0213-1" |
415 :iso-final-char ?O | |
416 :emacs-mule-id 151 | |
89483 | 417 :unify-map "JISX2131" |
88411 | 418 :code-space [33 126 33 126] |
419 :code-offset #x14C000) | |
17070 | 420 |
88411 | 421 (define-charset 'japanese-jisx0213-2 |
89766
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
422 "JISX0213.2000 Plane 2 (Japanese)" |
88411 | 423 :short-name "JISX0213-2" |
424 :iso-final-char ?P | |
425 :emacs-mule-id 254 | |
89483 | 426 :unify-map "JISX2132" |
88411 | 427 :code-space [33 126 33 126] |
428 :code-offset #x150000) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
429 |
89766
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
430 (define-charset 'japanese-jisx0213-a |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
431 "JISX0213.2004 adds these characters to JISX0213.2000." |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
432 :short-name "JISX0213A" |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
433 :dimension 2 |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
434 :code-space [33 126 33 126] |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
435 :supplementary-p t |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
436 :map "JISX213A") |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
437 |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
438 (define-charset 'japanese-jisx0213.2004-1 |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
439 "JISX0213.2004 Plane1 (Japanese)" |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
440 :short-name "JISX0213.2004-1" |
89793
cdb516af172d
(japanese-jisx0213.2004-1): Specify :dimension 2.
Kenichi Handa <handa@m17n.org>
parents:
89766
diff
changeset
|
441 :dimension 2 |
89797
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
442 :code-space [33 126 33 126] |
89766
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
443 :iso-final-char ?Q |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
444 :superset '(japanese-jisx0213-a japanese-jisx0213-1)) |
c7813ec27ad7
(japanese-jisx0213-a): New supplementary charset.
Kenichi Handa <handa@m17n.org>
parents:
89753
diff
changeset
|
445 |
89734
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
446 (define-charset 'katakana-sjis |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
447 "Katakana part of Shift-JIS" |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
448 :dimension 1 |
89753
d91d2d88af05
(katakana-sjis): Fix :superset to :subset.
Kenichi Handa <handa@m17n.org>
parents:
89741
diff
changeset
|
449 :code-space [#xA1 #xDF] |
d91d2d88af05
(katakana-sjis): Fix :superset to :subset.
Kenichi Handa <handa@m17n.org>
parents:
89741
diff
changeset
|
450 :subset '(jisx0201 #xA1 #xDF 0) |
89734
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
451 :supplementary-p t) |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
452 |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
453 (define-charset 'cp932-2-byte |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
454 "2-byte part of CP932" |
89741
fb91cfc5ed37
(cp932-2-byte): Specify :dimension.
Kenichi Handa <handa@m17n.org>
parents:
89734
diff
changeset
|
455 :dimension 2 |
89734
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
456 :map "CP932-2BYTE" |
89926
c452bfea1458
(cp932-2-byte): Fix :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89909
diff
changeset
|
457 :code-space [#x40 #xFC #x81 #xFC] |
89734
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
458 :supplementary-p t) |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
459 |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
460 (define-charset 'cp932 |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
461 "CP932 (Microsoft shift-jis)" |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
462 :code-space [#x00 #xFF #x00 #xFE] |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
463 :short-name "CP932" |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
464 :superset '(ascii katakana-sjis cp932-2-byte)) |
bb0fde79c866
(katakana-sjis, cp932-2-byte, cp932): New charsets.
Kenichi Handa <handa@m17n.org>
parents:
89647
diff
changeset
|
465 |
88411 | 466 (define-charset 'korean-ksc5601 |
467 "KSC5601 Korean Hangul and Hanja: ISO-IR-149" | |
468 :short-name "KSC5601" | |
469 :long-name "KSC5601 (Korean): ISO-IR-149" | |
470 :iso-final-char ?C | |
471 :emacs-mule-id 147 | |
472 :code-space [33 126 33 126] | |
89389
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
473 :code-offset #x279f94 ; ... #x27c217 |
89483 | 474 :unify-map "KSC5601") |
17070 | 475 |
89389
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
476 (define-charset 'big5-hkscs |
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
477 "Big5-HKSCS (Chinese traditional, Hong Kong supplement)" |
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
478 :short-name "Big5" |
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
479 :code-space [#x40 #xFE #xA1 #xFE] |
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
480 :code-offset #x27c218 ; ... #x280839 |
89483 | 481 :unify-map "BIG5-HKSCS") |
89389
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
482 |
88666 | 483 ;; Fixme: Korean cp949/UHC |
484 | |
88411 | 485 (define-charset 'chinese-sisheng |
486 "SiSheng characters for PinYin/ZhuYin" | |
487 :short-name "SiSheng" | |
488 :long-name "SiSheng (PinYin/ZhuYin)" | |
489 :iso-final-char ?0 | |
490 :emacs-mule-id 160 | |
491 :code-space [33 126] | |
89483 | 492 :unify-map "MULE-sisheng" |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
493 :supplementary-p t |
88411 | 494 :code-offset #x200000) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
495 |
88735 | 496 ;; A subset of the 1989 version of IPA. It consists of the consonant |
497 ;; signs used in English, French, German and Italian, and all vowels | |
498 ;; signs in the table. [says old MULE doc] | |
88411 | 499 (define-charset 'ipa |
500 "IPA (International Phonetic Association)" | |
501 :short-name "IPA" | |
502 :iso-final-char ?0 | |
503 :emacs-mule-id 161 | |
89483 | 504 :unify-map "MULE-ipa" |
88411 | 505 :code-space [32 127] |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
506 :supplementary-p t |
88411 | 507 :code-offset #x200080) |
17070 | 508 |
88411 | 509 (define-charset 'viscii |
510 "VISCII1.1" | |
511 :short-name "VISCII" | |
512 :long-name "VISCII 1.1" | |
513 :code-space [0 255] | |
89483 | 514 :map "VISCII") |
88411 | 515 |
516 (define-charset 'vietnamese-viscii-lower | |
517 "VISCII1.1 lower-case" | |
518 :short-name "VISCII lower" | |
519 :long-name "VISCII lower-case" | |
520 :iso-final-char ?1 | |
521 :emacs-mule-id 162 | |
522 :code-space [32 127] | |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
523 :code-offset #x200200 |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
524 :supplementary-p t |
89483 | 525 :unify-map "MULE-lviscii") |
17070 | 526 |
88411 | 527 (define-charset 'vietnamese-viscii-upper |
528 "VISCII1.1 upper-case" | |
529 :short-name "VISCII upper" | |
530 :long-name "VISCII upper-case" | |
531 :iso-final-char ?2 | |
532 :emacs-mule-id 163 | |
533 :code-space [32 127] | |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
534 :code-offset #x200280 |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
535 :supplementary-p t |
89483 | 536 :unify-map "MULE-uviscii") |
88411 | 537 |
538 (define-charset 'vscii | |
89483 | 539 "VSCII1.1 (TCVN-5712 VN1)" |
88411 | 540 :short-name "VSCII" |
541 :code-space [0 255] | |
89483 | 542 :map "VSCII") |
543 | |
544 (define-charset-alias 'tcvn-5712 'vscii) | |
88411 | 545 |
88727 | 546 ;; Fixme: see note in tcvn.map about combining characters |
89483 | 547 (define-charset 'vscii-2 |
548 "VSCII-2 (TCVN-5712 VN2)" | |
88727 | 549 :code-space [0 255] |
89483 | 550 :map "VSCII-2") |
88727 | 551 |
88411 | 552 (define-charset 'koi8-r |
553 "KOI8-R" | |
554 :short-name "KOI8-R" | |
555 :ascii-compatible-p t | |
556 :code-space [0 255] | |
89483 | 557 :map "KOI8-R") |
88411 | 558 |
559 (define-charset-alias 'koi8 'koi8-r) | |
560 | |
561 (define-charset 'alternativnyj | |
562 "ALTERNATIVNYJ" | |
563 :short-name "alternativnyj" | |
564 :ascii-compatible-p t | |
565 :code-space [0 255] | |
89483 | 566 :map "ALTERNATIVNYJ") |
89200 | 567 |
568 (define-charset 'cp866 | |
569 "CP866" | |
570 :short-name "cp866" | |
571 :ascii-compatible-p t | |
572 :code-space [0 255] | |
89483 | 573 :map "IBM866") |
89200 | 574 (define-charset-alias 'ibm866 'cp866) |
17070 | 575 |
88533 | 576 (define-charset 'koi8-u |
577 "KOI8-U" | |
578 :short-name "KOI8-U" | |
579 :ascii-compatible-p t | |
580 :code-space [0 255] | |
89483 | 581 :map "KOI8-U") |
88533 | 582 |
583 (define-charset 'koi8-t | |
584 "KOI8-T" | |
585 :short-name "KOI8-T" | |
586 :ascii-compatible-p t | |
587 :code-space [0 255] | |
89483 | 588 :map "KOI8-T") |
88533 | 589 |
590 (define-charset 'georgian-ps | |
591 "GEORGIAN-PS" | |
592 :short-name "GEORGIAN-PS" | |
593 :ascii-compatible-p t | |
594 :code-space [0 255] | |
89483 | 595 :map "KA-PS") |
88533 | 596 |
89389
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
597 (define-charset 'georgian-academy |
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
598 "GEORGIAN-ACADEMY" |
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
599 :short-name "GEORGIAN-ACADEMY" |
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
600 :ascii-compatible-p t |
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
601 :code-space [0 255] |
89483 | 602 :map "KA-ACADEMY") |
89389
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
603 |
88533 | 604 (define-charset 'windows-1250 |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
605 "WINDOWS-1250 (Central Europe)" |
88533 | 606 :short-name "WINDOWS-1250" |
607 :ascii-compatible-p t | |
608 :code-space [0 255] | |
89483 | 609 :map "CP1250") |
88533 | 610 (define-charset-alias 'cp1250 'windows-1250) |
611 | |
612 (define-charset 'windows-1251 | |
88666 | 613 "WINDOWS-1251 (Cyrillic)" |
88533 | 614 :short-name "WINDOWS-1251" |
615 :ascii-compatible-p t | |
616 :code-space [0 255] | |
89483 | 617 :map "CP1251") |
88533 | 618 (define-charset-alias 'cp1251 'windows-1251) |
17070 | 619 |
88533 | 620 (define-charset 'windows-1252 |
88666 | 621 "WINDOWS-1252 (Latin I)" |
88533 | 622 :short-name "WINDOWS-1252" |
623 :ascii-compatible-p t | |
624 :code-space [0 255] | |
89483 | 625 :map "CP1252") |
88533 | 626 (define-charset-alias 'cp1252 'windows-1252) |
627 | |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
628 (define-charset 'windows-1253 |
88666 | 629 "WINDOWS-1253 (Greek)" |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
630 :short-name "WINDOWS-1253" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
631 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
632 :code-space [0 255] |
89483 | 633 :map "CP1253") |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
634 (define-charset-alias 'cp1253 'windows-1253) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
635 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
636 (define-charset 'windows-1254 |
88666 | 637 "WINDOWS-1254 (Turkish)" |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
638 :short-name "WINDOWS-1254" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
639 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
640 :code-space [0 255] |
89483 | 641 :map "CP1254") |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
642 (define-charset-alias 'cp1254 'windows-1254) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
643 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
644 (define-charset 'windows-1255 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
645 "WINDOWS-1255 (Hebrew)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
646 :short-name "WINDOWS-1255" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
647 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
648 :code-space [0 255] |
89483 | 649 :map "CP1255") |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
650 (define-charset-alias 'cp1255 'windows-1255) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
651 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
652 (define-charset 'windows-1256 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
653 "WINDOWS-1256 (Arabic)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
654 :short-name "WINDOWS-1256" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
655 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
656 :code-space [0 255] |
89483 | 657 :map "CP1256") |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
658 (define-charset-alias 'cp1256 'windows-1256) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
659 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
660 (define-charset 'windows-1257 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
661 "WINDOWS-1257 (Baltic)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
662 :short-name "WINDOWS-1257" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
663 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
664 :code-space [0 255] |
89483 | 665 :map "CP1257") |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
666 (define-charset-alias 'cp1257 'windows-1257) |
17070 | 667 |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
668 (define-charset 'windows-1258 |
88666 | 669 "WINDOWS-1258 (Viet Nam)" |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
670 :short-name "WINDOWS-1258" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
671 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
672 :code-space [0 255] |
89483 | 673 :map "CP1258") |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
674 (define-charset-alias 'cp1258 'windows-1258) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
675 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
676 (define-charset 'next |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
677 "NEXT" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
678 :short-name "NEXT" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
679 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
680 :code-space [0 255] |
89483 | 681 :map "NEXTSTEP") |
17070 | 682 |
88533 | 683 (define-charset 'cp1125 |
684 "CP1125" | |
685 :short-name "CP1125" | |
686 :code-space [0 255] | |
90217
4e5457cf7dc7
(cp1125): Set :ascii-compatible-p property to t.
Kenichi Handa <handa@m17n.org>
parents:
90200
diff
changeset
|
687 :ascii-compatible-p t |
89483 | 688 :map "CP1125") |
88533 | 689 (define-charset-alias 'ruscii 'cp1125) |
690 ;; Original name for cp1125, says Serhii Hlodin <hlodin@lutsk.bank.gov.ua> | |
691 (define-charset-alias 'cp866u 'cp1125) | |
17070 | 692 |
88671 | 693 ;; Fixme: C.f. iconv, http://czyborra.com/charsets/codepages.html |
694 ;; shows this as not ASCII comptaible, with various graphics in | |
695 ;; 0x01-0x1F. | |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
696 (define-charset 'cp437 |
88671 | 697 "CP437 (MS-DOS United States, Australia, New Zealand, South Africa)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
698 :short-name "CP437" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
699 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
700 :ascii-compatible-p t |
89483 | 701 :map "IBM437") |
17070 | 702 |
88666 | 703 (define-charset 'cp720 |
704 "CP720 (Arabic)" | |
705 :short-name "CP720" | |
706 :code-space [0 255] | |
707 :ascii-compatible-p t | |
89483 | 708 :map "CP720") |
88666 | 709 |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
710 (define-charset 'cp737 |
88671 | 711 "CP737 (PC Greek)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
712 :short-name "CP737" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
713 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
714 :ascii-compatible-p t |
89483 | 715 :map "CP737") |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
716 |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
717 (define-charset 'cp775 |
88671 | 718 "CP775 (PC Baltic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
719 :short-name "CP775" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
720 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
721 :ascii-compatible-p t |
89483 | 722 :map "CP775") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
723 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
724 (define-charset 'cp851 |
89089 | 725 "CP851 (Greek)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
726 :short-name "CP851" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
727 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
728 :ascii-compatible-p t |
89483 | 729 :map "IBM851") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
730 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
731 (define-charset 'cp852 |
88671 | 732 "CP852 (MS-DOS Latin-2)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
733 :short-name "CP852" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
734 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
735 :ascii-compatible-p t |
89483 | 736 :map "IBM852") |
17070 | 737 |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
738 (define-charset 'cp855 |
88671 | 739 "CP855 (IBM Cyrillic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
740 :short-name "CP855" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
741 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
742 :ascii-compatible-p t |
89483 | 743 :map "IBM855") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
744 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
745 (define-charset 'cp857 |
88671 | 746 "CP857 (IBM Turkish)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
747 :short-name "CP857" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
748 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
749 :ascii-compatible-p t |
89483 | 750 :map "IBM857") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
751 |
88666 | 752 (define-charset 'cp858 |
753 "CP858 (Multilingual Latin I + Euro)" | |
754 :short-name "CP858" | |
755 :code-space [0 255] | |
756 :ascii-compatible-p t | |
89483 | 757 :map "CP858") |
88671 | 758 (define-charset-alias 'cp00858 'cp858) ; IANA has IBM00858/CP00858 |
17070 | 759 |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
760 (define-charset 'cp860 |
88671 | 761 "CP860 (MS-DOS Portuguese)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
762 :short-name "CP860" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
763 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
764 :ascii-compatible-p t |
89483 | 765 :map "IBM860") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
766 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
767 (define-charset 'cp861 |
88671 | 768 "CP861 (MS-DOS Icelandic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
769 :short-name "CP861" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
770 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
771 :ascii-compatible-p t |
89483 | 772 :map "IBM861") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
773 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
774 (define-charset 'cp862 |
88671 | 775 "CP862 (PC Hebrew)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
776 :short-name "CP862" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
777 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
778 :ascii-compatible-p t |
89483 | 779 :map "IBM862") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
780 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
781 (define-charset 'cp863 |
88671 | 782 "CP863 (MS-DOS Canadian French)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
783 :short-name "CP863" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
784 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
785 :ascii-compatible-p t |
89483 | 786 :map "IBM863") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
787 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
788 (define-charset 'cp864 |
88671 | 789 "CP864 (PC Arabic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
790 :short-name "CP864" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
791 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
792 :ascii-compatible-p t |
89483 | 793 :map "IBM864") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
794 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
795 (define-charset 'cp865 |
88671 | 796 "CP865 (MS-DOS Nordic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
797 :short-name "CP865" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
798 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
799 :ascii-compatible-p t |
89483 | 800 :map "IBM865") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
801 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
802 (define-charset 'cp869 |
88671 | 803 "CP869 (IBM Modern Greek)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
804 :short-name "CP869" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
805 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
806 :ascii-compatible-p t |
89483 | 807 :map "IBM869") |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
808 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
809 (define-charset 'cp874 |
88671 | 810 "CP874 (IBM Thai)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
811 :short-name "CP874" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
812 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
813 :ascii-compatible-p t |
89483 | 814 :map "IBM874") |
17070 | 815 |
816 ;; For Arabic, we need three different types of character sets. | |
817 ;; Digits are of direction left-to-right and of width 1-column. | |
818 ;; Others are of direction right-to-left and of width 1-column or | |
819 ;; 2-column. | |
88411 | 820 (define-charset 'arabic-digit |
821 "Arabic digit" | |
822 :short-name "Arabic digit" | |
823 :iso-final-char ?2 | |
824 :emacs-mule-id 164 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
825 :supplementary-p t |
88411 | 826 :code-space [34 42] |
827 :code-offset #x0600) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
828 |
88411 | 829 (define-charset 'arabic-1-column |
830 "Arabic 1-column" | |
831 :short-name "Arabic 1-col" | |
832 :long-name "Arabic 1-column" | |
833 :iso-final-char ?3 | |
834 :emacs-mule-id 165 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
835 :supplementary-p t |
88411 | 836 :code-space [33 126] |
837 :code-offset #x200100) | |
838 | |
839 (define-charset 'arabic-2-column | |
840 "Arabic 2-column" | |
841 :short-name "Arabic 2-col" | |
842 :long-name "Arabic 2-column" | |
843 :iso-final-char ?4 | |
844 :emacs-mule-id 224 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
845 :supplementary-p t |
88411 | 846 :code-space [33 126] |
847 :code-offset #x200180) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
848 |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
849 ;; Lao script. |
88411 | 850 ;; Codes 0x21..0x7E are mapped to Unicode U+0E81..U+0EDF. |
89089 | 851 ;; Not all of them are defined unicodes. |
88411 | 852 (define-charset 'lao |
853 "Lao characters (ISO10646 0E81..0EDF)" | |
854 :short-name "Lao" | |
855 :iso-final-char ?1 | |
856 :emacs-mule-id 167 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
857 :supplementary-p t |
88411 | 858 :code-space [33 126] |
859 :code-offset #x0E81) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
860 |
88411 | 861 (define-charset 'mule-lao |
862 "Lao characters (ISO10646 0E81..0EDF)" | |
863 :short-name "Lao" | |
864 :code-space [0 255] | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
865 :supplementary-p t |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
866 :superset '(ascii eight-bit-control (lao . 128))) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
867 |
17070 | 868 |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
869 ;; Indian scripts. Symbolic charset for data exchange. Glyphs are |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
870 ;; not assigned. They are automatically converted to each Indian |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
871 ;; script which IS-13194 supports. |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
872 |
88411 | 873 (define-charset 'indian-is13194 |
874 "Generic Indian charset for data exchange with IS 13194" | |
875 :short-name "IS 13194" | |
876 :long-name "Indian IS 13194" | |
877 :iso-final-char ?5 | |
878 :emacs-mule-id 225 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
879 :supplementary-p t |
88411 | 880 :code-space [33 126] |
881 :code-offset #x180000) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
882 |
89483 | 883 (let ((code-offset #x180100)) |
884 (dolist (script '(devanagari sanskrit bengali tamil telugu assamese | |
885 oriya kannada malayalam gujarati punjabi)) | |
886 (define-charset (intern (format "%s-cdac" script)) | |
887 (format "Glyphs of %s script for CDAC font. Subset of `indian-glyph'." | |
888 (capitalize (symbol-name script))) | |
889 :short-name (format "CDAC %s glyphs" (capitalize (symbol-name script))) | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
890 :supplementary-p t |
89483 | 891 :code-space [0 255] |
892 :code-offset code-offset) | |
893 (setq code-offset (+ code-offset #x100))) | |
41468
d566b1e9a5bb
Change indian-1-column charset to indian-glyph charset.
Richard M. Stallman <rms@gnu.org>
parents:
36686
diff
changeset
|
894 |
89483 | 895 (dolist (script '(devanagari bengali punjabi gujarati |
896 oriya tamil telugu kannada malayalam)) | |
897 (define-charset (intern (format "%s-akruti" script)) | |
898 (format "Glyphs of %s script for AKRUTI font. Subset of `indian-glyph'." | |
899 (capitalize (symbol-name script))) | |
900 :short-name (format "AKRUTI %s glyphs" (capitalize (symbol-name script))) | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
901 :supplementary-p t |
89483 | 902 :code-space [0 255] |
903 :code-offset code-offset) | |
904 (setq code-offset (+ code-offset #x100)))) | |
89091 | 905 |
88894
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
906 (define-charset 'indian-glyph |
88411 | 907 "Glyphs for Indian characters." |
908 :short-name "Indian glyph" | |
909 :iso-final-char ?4 | |
910 :emacs-mule-id 240 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
911 :supplementary-p t |
88411 | 912 :code-space [32 127 32 127] |
913 :code-offset #x180100) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
914 |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
915 ;; Actual Glyph for 1-column width. |
88411 | 916 (define-charset 'indian-1-column |
89267
a9df91935aa0
(indian-is13194): Delete :unify-map
Kenichi Handa <handa@m17n.org>
parents:
89257
diff
changeset
|
917 "Indian charset for 1-column width glyphs." |
88411 | 918 :short-name "Indian 1-col" |
919 :long-name "Indian 1 Column" | |
920 :iso-final-char ?6 | |
89890
f3047b4ebf04
(indian-1-column): Fix :emacs-mule-id.
Kenichi Handa <handa@m17n.org>
parents:
89822
diff
changeset
|
921 :emacs-mule-id 251 |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
922 :supplementary-p t |
88411 | 923 :code-space [33 126 33 126] |
924 :code-offset #x184000) | |
925 | |
926 ;; Actual Glyph for 2-column width. | |
927 (define-charset 'indian-2-column | |
89267
a9df91935aa0
(indian-is13194): Delete :unify-map
Kenichi Handa <handa@m17n.org>
parents:
89257
diff
changeset
|
928 "Indian charset for 2-column width glyphs." |
88411 | 929 :short-name "Indian 2-col" |
930 :long-name "Indian 2 Column" | |
931 :iso-final-char ?5 | |
932 :emacs-mule-id 251 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
933 :supplementary-p t |
88411 | 934 :code-space [33 126 33 126] |
89267
a9df91935aa0
(indian-is13194): Delete :unify-map
Kenichi Handa <handa@m17n.org>
parents:
89257
diff
changeset
|
935 :code-offset #x184000) |
88411 | 936 |
937 (define-charset 'tibetan | |
938 "Tibetan characters" | |
939 :iso-final-char ?7 | |
940 :short-name "Tibetan 2-col" | |
88486 | 941 :long-name "Tibetan 2 column" |
88411 | 942 :iso-final-char ?7 |
943 :emacs-mule-id 252 | |
89483 | 944 :unify-map "MULE-tibetan" |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
945 :supplementary-p t |
89292
1bc1e30ea8d5
(tibetan): Fix :code-space property.
Kenichi Handa <handa@m17n.org>
parents:
89267
diff
changeset
|
946 :code-space [33 126 33 37] |
88411 | 947 :code-offset #x190000) |
948 | |
949 (define-charset 'tibetan-1-column | |
950 "Tibetan 1 column glyph" | |
951 :short-name "Tibetan 1-col" | |
952 :long-name "Tibetan 1 column" | |
953 :iso-final-char ?8 | |
954 :emacs-mule-id 241 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
955 :supplementary-p t |
88411 | 956 :code-space [33 126 33 37] |
89292
1bc1e30ea8d5
(tibetan): Fix :code-space property.
Kenichi Handa <handa@m17n.org>
parents:
89267
diff
changeset
|
957 :code-offset #x190000) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
958 |
33044
7878d85aef6d
New charsets mule-unicode-2500-33ff and mule-unicode-e000-ffff.
Kenichi Handa <handa@m17n.org>
parents:
32786
diff
changeset
|
959 ;; Subsets of Unicode. |
88411 | 960 (define-charset 'mule-unicode-2500-33ff |
961 "Unicode characters of the range U+2500..U+33FF." | |
962 :short-name "Unicode subset 2" | |
963 :long-name "Unicode subset (U+2500..U+33FF)" | |
964 :iso-final-char ?2 | |
965 :emacs-mule-id 242 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
966 :supplementary-p t |
88411 | 967 :code-space [#x20 #x7f #x20 #x47] |
968 :code-offset #x2500) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
969 |
88411 | 970 (define-charset 'mule-unicode-e000-ffff |
971 "Unicode characters of the range U+E000..U+FFFF." | |
972 :short-name "Unicode subset 3" | |
973 :long-name "Unicode subset (U+E000+FFFF)" | |
974 :iso-final-char ?3 | |
975 :emacs-mule-id 243 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
976 :supplementary-p t |
88411 | 977 :code-space [#x20 #x7F #x20 #x75] |
88843 | 978 :code-offset #xE000 |
979 :max-code 30015) ; U+FFFF | |
33044
7878d85aef6d
New charsets mule-unicode-2500-33ff and mule-unicode-e000-ffff.
Kenichi Handa <handa@m17n.org>
parents:
32786
diff
changeset
|
980 |
88411 | 981 (define-charset 'mule-unicode-0100-24ff |
982 "Unicode characters of the range U+0100..U+24FF." | |
983 :short-name "Unicode subset" | |
984 :long-name "Unicode subset (U+0100..U+24FF)" | |
985 :iso-final-char ?1 | |
986 :emacs-mule-id 244 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
987 :supplementary-p t |
88411 | 988 :code-space [#x20 #x7F #x20 #x7F] |
989 :code-offset #x100) | |
33044
7878d85aef6d
New charsets mule-unicode-2500-33ff and mule-unicode-e000-ffff.
Kenichi Handa <handa@m17n.org>
parents:
32786
diff
changeset
|
990 |
89089 | 991 (define-charset 'unicode-bmp |
89797
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
992 "Unicode Basic Multilingual Plane (U+0000..U+FFFF)" |
89089 | 993 :short-name "Unicode BMP" |
994 :code-space [0 255 0 255] | |
89356
d2e1c7e5ab1a
(unicode-bmp): Delete duplicated definition. Give it :code-offset 0.
Kenichi Handa <handa@m17n.org>
parents:
89318
diff
changeset
|
995 :code-offset 0) |
89091 | 996 |
89797
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
997 (define-charset 'unicode-smp |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
998 "Unicode Supplementary Multilingual Plane (U+10000..U+1FFFF)" |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
999 :short-name "Unicode SMP " |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1000 :code-space [0 255 0 255] |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1001 :code-offset #x10000) |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1002 |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1003 (define-charset 'unicode-sip |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1004 "Unicode Supplementary Ideographic Plane (U+20000..U+2FFFF)" |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1005 :short-name "Unicode SIP" |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1006 :code-space [0 255 0 255] |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1007 :code-offset #x20000) |
33044
7878d85aef6d
New charsets mule-unicode-2500-33ff and mule-unicode-e000-ffff.
Kenichi Handa <handa@m17n.org>
parents:
32786
diff
changeset
|
1008 |
89797
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1009 (define-charset 'unicode-ssp |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1010 "Unicode Supplementary Special-purpose Plane (U+E0000..U+EFFFF)" |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1011 :short-name "Unicode SSP" |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1012 :code-space [0 255 0 255] |
fdc51e185411
(japanese-jisx0213.2004-1): Specify :code-space.
Kenichi Handa <handa@m17n.org>
parents:
89793
diff
changeset
|
1013 :code-offset #xE0000) |
33044
7878d85aef6d
New charsets mule-unicode-2500-33ff and mule-unicode-e000-ffff.
Kenichi Handa <handa@m17n.org>
parents:
32786
diff
changeset
|
1014 |
88411 | 1015 (define-charset 'ethiopic |
88486 | 1016 "Ethiopic characters for Amharic and Tigrigna." |
88411 | 1017 :short-name "Ethiopic" |
1018 :long-name "Ethiopic characters" | |
1019 :iso-final-char ?3 | |
1020 :emacs-mule-id 245 | |
91197
a7ee91d853bc
Flag many charsets as supplementary.
Kenichi Handa <handa@m17n.org>
parents:
91116
diff
changeset
|
1021 :supplementary-p t |
89483 | 1022 :unify-map "MULE-ethiopic" |
88411 | 1023 :code-space [33 126 33 126] |
1024 :code-offset #x1A0000) | |
17070 | 1025 |
88411 | 1026 (define-charset 'mac-roman |
1027 "Mac Roman charset" | |
1028 :short-name "Mac Roman" | |
1029 :ascii-compatible-p t | |
1030 :code-space [0 255] | |
89483 | 1031 :map "MACINTOSH") |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
1032 |
88533 | 1033 ;; Fixme: modern EBCDIC variants, e.g. IBM00924? |
1034 (define-charset 'ebcdic-us | |
1035 "US version of EBCDIC" | |
1036 :short-name "EBCDIC-US" | |
1037 :code-space [0 255] | |
1038 :mime-charset 'ebcdic-us | |
89483 | 1039 :map "EBCDICUS") |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
1040 |
88533 | 1041 (define-charset 'ebcdic-uk |
1042 "UK version of EBCDIC" | |
1043 :short-name "EBCDIC-UK" | |
1044 :code-space [0 255] | |
1045 :mime-charset 'ebcdic-uk | |
89483 | 1046 :map "EBCDICUK") |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
1047 |
89200 | 1048 (define-charset 'ibm1047 |
1049 ;; Says groff: | |
89389
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
1050 "IBM1047, `EBCDIC Latin 1/Open Systems' used by OS/390 Unix." |
89200 | 1051 :short-name "IBM1047" |
1052 :code-space [0 255] | |
1053 :mime-charset 'ibm1047 | |
89483 | 1054 :map "IBM1047") |
89200 | 1055 (define-charset-alias 'cp1047 'ibm1047) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
1056 |
88575 | 1057 (define-charset 'hp-roman8 |
1058 "Encoding used by Hewlet-Packard printer software" | |
1059 :short-name "HP-ROMAN8" | |
1060 :ascii-compatible-p t | |
1061 :code-space [0 255] | |
89483 | 1062 :map "HP-ROMAN8") |
17070 | 1063 |
88671 | 1064 ;; To make a coding system with this, a pre-write-conversion should |
1065 ;; account for the commented-out multi-valued code points in | |
1066 ;; stdenc.map. | |
88575 | 1067 (define-charset 'adobe-standard-encoding |
1068 "Adobe `standard encoding' used in PostScript" | |
1069 :short-name "ADOBE-STANDARD-ENCODING" | |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
1070 :code-space [#x20 255] |
88575 | 1071 :map "stdenc") |
17070 | 1072 |
88575 | 1073 (define-charset 'symbol |
1074 "Adobe symbol encoding used in PostScript" | |
1075 :short-name "ADOBE-SYMBOL" | |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
1076 :code-space [#x20 255] |
88575 | 1077 :map "symbol") |
1078 | |
1079 (define-charset 'ibm850 | |
88671 | 1080 "DOS codepage 850 (Latin-1)" |
88575 | 1081 :short-name "IBM850" |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
1082 :ascii-compatible-p t |
88575 | 1083 :code-space [0 255] |
89483 | 1084 :map "IBM850") |
88575 | 1085 (define-charset-alias 'cp850 'ibm850) |
1086 | |
89318 | 1087 (define-charset 'mik |
1088 "Bulgarian DOS codepage" | |
1089 :short-name "MIK" | |
1090 :ascii-compatible-p t | |
1091 :code-space [0 255] | |
89483 | 1092 :map "MIK") |
89318 | 1093 |
89483 | 1094 (define-charset 'ptcp154 |
89318 | 1095 "`Paratype' codepage (Asian Cyrillic)" |
1096 :short-name "PT154" | |
1097 :ascii-compatible-p t | |
1098 :code-space [0 255] | |
89389
b6e224aa7da6
(big5-hkscs, georgian-academy): New
Dave Love <fx@gnu.org>
parents:
89356
diff
changeset
|
1099 :mime-charset 'pt154 |
89483 | 1100 :map "PTCP154") |
1101 (define-charset-alias 'pt154 'ptcp154) | |
1102 (define-charset-alias 'cp154 'ptcp154) | |
89318 | 1103 |
88675
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1104 (define-charset 'gb18030-2-byte |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1105 "GB18030 2-byte (0x814E..0xFEFE)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1106 :code-space [#x40 #xFE #x81 #xFE] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1107 :supplementary-p t |
89483 | 1108 :map "GB180302") |
88675
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1109 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1110 (define-charset 'gb18030-4-byte-bmp |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1111 "GB18030 4-byte for BMP (0x81308130-0x8431A439)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1112 :code-space [#x30 #x39 #x81 #xFE #x30 #x39 #x81 #x84] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1113 :supplementary-p t |
89483 | 1114 :map "GB180304") |
88675
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1115 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1116 (define-charset 'gb18030-4-byte-smp |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1117 "GB18030 4-byte for SMP (0x90308130-0xE3329A35)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1118 :code-space [#x30 #x39 #x81 #xFE #x30 #x39 #x90 #xE3] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1119 :min-code '(#x9030 . #x8130) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1120 :max-code '(#xE332 . #x9A35) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1121 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1122 :code-offset #x10000) |
17070 | 1123 |
88675
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1124 (define-charset 'gb18030-4-byte-ext-1 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1125 "GB18030 4-byte (0x8431A530-0x8F39FE39)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1126 :code-space [#x30 #x39 #x81 #xFE #x30 #x39 #x84 #x8F] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1127 :min-code '(#x8431 . #xA530) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1128 :max-code '(#x8F39 . #xFE39) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1129 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1130 :code-offset #x200000 ; ... #x22484B |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1131 ) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1132 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1133 (define-charset 'gb18030-4-byte-ext-2 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1134 "GB18030 4-byte (0xE3329A36-0xFE39FE39)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1135 :code-space [#x30 #x39 #x81 #xFE #x30 #x39 #xE3 #xFE] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1136 :min-code '(#xE332 . #x9A36) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1137 :max-code '(#xFE39 . #xFE39) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1138 :supplementary-p t |
89822
c6d196788a1c
(chinese-cns11643-15): New charset.
Kenichi Handa <handa@m17n.org>
parents:
89797
diff
changeset
|
1139 :code-offset #x22484C ; ... #x279f93 |
88675
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1140 ) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1141 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1142 (define-charset 'gb18030 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1143 "GB18030" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1144 :code-space [#x00 #xFF #x00 #xFE #x00 #xFE #x00 #xFE] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1145 :min-code 0 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1146 :max-code '(#xFE39 . #xFE39) |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
1147 :superset '(ascii gb18030-2-byte |
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
1148 gb18030-4-byte-bmp gb18030-4-byte-smp |
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
1149 gb18030-4-byte-ext-1 gb18030-4-byte-ext-2)) |
17070 | 1150 |
89822
c6d196788a1c
(chinese-cns11643-15): New charset.
Kenichi Handa <handa@m17n.org>
parents:
89797
diff
changeset
|
1151 (define-charset 'chinese-cns11643-15 |
c6d196788a1c
(chinese-cns11643-15): New charset.
Kenichi Handa <handa@m17n.org>
parents:
89797
diff
changeset
|
1152 "CNS11643 Plane 15 Chinese Traditional" |
c6d196788a1c
(chinese-cns11643-15): New charset.
Kenichi Handa <handa@m17n.org>
parents:
89797
diff
changeset
|
1153 :short-name "CNS11643-15" |
c6d196788a1c
(chinese-cns11643-15): New charset.
Kenichi Handa <handa@m17n.org>
parents:
89797
diff
changeset
|
1154 :long-name "CNS11643-15 (Chinese traditional)" |
c6d196788a1c
(chinese-cns11643-15): New charset.
Kenichi Handa <handa@m17n.org>
parents:
89797
diff
changeset
|
1155 :code-space [33 126 33 126] |
c6d196788a1c
(chinese-cns11643-15): New charset.
Kenichi Handa <handa@m17n.org>
parents:
89797
diff
changeset
|
1156 :code-offset #x27A000) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
1157 |
88411 | 1158 (unify-charset 'chinese-gb2312) |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
1159 (unify-charset 'chinese-gbk) |
88411 | 1160 (unify-charset 'chinese-cns11643-1) |
1161 (unify-charset 'chinese-cns11643-2) | |
89483 | 1162 (unify-charset 'chinese-cns11643-3) |
1163 (unify-charset 'chinese-cns11643-4) | |
1164 (unify-charset 'chinese-cns11643-5) | |
1165 (unify-charset 'chinese-cns11643-6) | |
1166 (unify-charset 'chinese-cns11643-7) | |
88411 | 1167 (unify-charset 'big5) |
1168 (unify-charset 'chinese-big5-1) | |
1169 (unify-charset 'chinese-big5-2) | |
89483 | 1170 (unify-charset 'big5-hkscs) |
1171 (unify-charset 'korean-ksc5601) | |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
1172 (unify-charset 'vietnamese-viscii-lower) |
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
1173 (unify-charset 'vietnamese-viscii-upper) |
88760 | 1174 (unify-charset 'chinese-sisheng) |
88894
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1175 (unify-charset 'ipa) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1176 (unify-charset 'tibetan) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1177 (unify-charset 'ethiopic) |
89483 | 1178 (unify-charset 'japanese-jisx0208-1978) |
88894
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1179 (unify-charset 'japanese-jisx0208) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1180 (unify-charset 'japanese-jisx0212) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1181 (unify-charset 'japanese-jisx0213-1) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1182 (unify-charset 'japanese-jisx0213-2) |
17070 | 1183 |
1184 | |
22126
97cf1cae1971
Change term unification to
Kenichi Handa <handa@m17n.org>
parents:
21713
diff
changeset
|
1185 ;; These are tables for translating characters on decoding and |
97cf1cae1971
Change term unification to
Kenichi Handa <handa@m17n.org>
parents:
21713
diff
changeset
|
1186 ;; encoding. |
88760 | 1187 ;; Fixme: these aren't used now -- should they be? |
88411 | 1188 (setq standard-translation-table-for-decode nil) |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
1189 |
22186
fc4aaf1b1772
Change term "character translation table" to "translation table".
Kenichi Handa <handa@m17n.org>
parents:
22126
diff
changeset
|
1190 (setq standard-translation-table-for-encode nil) |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
1191 |
17070 | 1192 ;;; Make fundamental coding systems. |
1193 | |
90039
67146244da43
New coding system aliases unix, dos, and mac.
Kenichi Handa <handa@m17n.org>
parents:
90009
diff
changeset
|
1194 ;; The coding system `no-conversion' and `undecided' are already |
67146244da43
New coding system aliases unix, dos, and mac.
Kenichi Handa <handa@m17n.org>
parents:
90009
diff
changeset
|
1195 ;; defined in coding.c as below: |
88411 | 1196 ;; |
1197 ;; (define-coding-system 'no-conversion | |
90039
67146244da43
New coding system aliases unix, dos, and mac.
Kenichi Handa <handa@m17n.org>
parents:
90009
diff
changeset
|
1198 ;; "..." |
88411 | 1199 ;; :coding-type 'raw-text |
90039
67146244da43
New coding system aliases unix, dos, and mac.
Kenichi Handa <handa@m17n.org>
parents:
90009
diff
changeset
|
1200 ;; ...) |
67146244da43
New coding system aliases unix, dos, and mac.
Kenichi Handa <handa@m17n.org>
parents:
90009
diff
changeset
|
1201 ;; (define-coding-system 'undecided |
67146244da43
New coding system aliases unix, dos, and mac.
Kenichi Handa <handa@m17n.org>
parents:
90009
diff
changeset
|
1202 ;; "..." |
67146244da43
New coding system aliases unix, dos, and mac.
Kenichi Handa <handa@m17n.org>
parents:
90009
diff
changeset
|
1203 ;; :coding-type 'undecided |
67146244da43
New coding system aliases unix, dos, and mac.
Kenichi Handa <handa@m17n.org>
parents:
90009
diff
changeset
|
1204 ;; ...) |
17070 | 1205 |
18529
8e293f1a19a9
(binary): Define as coding system alias.
Richard M. Stallman <rms@gnu.org>
parents:
18519
diff
changeset
|
1206 (define-coding-system-alias 'binary 'no-conversion) |
29543
4711a63436ee
(unix): New alias for the coding system undecided-unix.
Kenichi Handa <handa@m17n.org>
parents:
29167
diff
changeset
|
1207 (define-coding-system-alias 'unix 'undecided-unix) |
24120
372fcaa211c4
Coding system alias `dos' for `undecided-dos', `mac' for `undecided-mac'.
Richard M. Stallman <rms@gnu.org>
parents:
23260
diff
changeset
|
1208 (define-coding-system-alias 'dos 'undecided-dos) |
372fcaa211c4
Coding system alias `dos' for `undecided-dos', `mac' for `undecided-mac'.
Richard M. Stallman <rms@gnu.org>
parents:
23260
diff
changeset
|
1209 (define-coding-system-alias 'mac 'undecided-mac) |
372fcaa211c4
Coding system alias `dos' for `undecided-dos', `mac' for `undecided-mac'.
Richard M. Stallman <rms@gnu.org>
parents:
23260
diff
changeset
|
1210 |
88411 | 1211 (define-coding-system 'raw-text |
89483 | 1212 "Raw text, which means text contains random 8-bit codes. |
36518
60e98df5c4ce
(emacs-mule, raw-text): Docstring modified.
Kenichi Handa <handa@m17n.org>
parents:
35805
diff
changeset
|
1213 Encoding text with this coding system produces the actual byte |
60e98df5c4ce
(emacs-mule, raw-text): Docstring modified.
Kenichi Handa <handa@m17n.org>
parents:
35805
diff
changeset
|
1214 sequence of the text in buffers and strings. An exception is made for |
60e98df5c4ce
(emacs-mule, raw-text): Docstring modified.
Kenichi Handa <handa@m17n.org>
parents:
35805
diff
changeset
|
1215 eight-bit-control characters. Each of them is encoded into a single |
36686
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
1216 byte. |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
1217 |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
1218 When you visit a file with this coding, the file is read into a |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
1219 unibyte buffer as is (except for EOL format), thus each byte of a file |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
1220 is treated as a character." |
89483 | 1221 :coding-type 'raw-text |
1222 :for-unibyte t | |
1223 :mnemonic ?t) | |
88411 | 1224 |
89483 | 1225 (define-coding-system 'no-conversion-multibyte |
1226 "Like `no-conversion' but don't read a file into a unibyte buffer." | |
1227 :coding-type 'raw-text | |
1228 :eol-type 'unix | |
1229 :mnemonic ?=) | |
1230 | |
88411 | 1231 (define-coding-system 'iso-latin-1 |
1232 "ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1)." | |
89091 | 1233 :coding-type 'charset |
88411 | 1234 :mnemonic ?1 |
89091 | 1235 :charset-list '(iso-8859-1) |
88411 | 1236 :mime-charset 'iso-8859-1) |
1237 | |
1238 (define-coding-system-alias 'iso-8859-1 'iso-latin-1) | |
1239 (define-coding-system-alias 'latin-1 'iso-latin-1) | |
19607
ea0964347a40
(raw-text): New coding system. Set
Kenichi Handa <handa@m17n.org>
parents:
19372
diff
changeset
|
1240 |
88411 | 1241 ;; Coding systems not specific to each language environment. |
1242 | |
1243 (define-coding-system 'emacs-mule | |
1244 "Emacs 21 internal format used in buffer and string." | |
1245 :coding-type 'emacs-mule | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1246 :charset-list 'emacs-mule |
88411 | 1247 :mnemonic ?M) |
19607
ea0964347a40
(raw-text): New coding system. Set
Kenichi Handa <handa@m17n.org>
parents:
19372
diff
changeset
|
1248 |
88411 | 1249 (define-coding-system 'utf-8 |
1250 "UTF-8." | |
1251 :coding-type 'utf-8 | |
1252 :mnemonic ?U | |
89041
2ce9656d788b
(utf-8): Give :mime-charset property.
Kenichi Handa <handa@m17n.org>
parents:
88894
diff
changeset
|
1253 :charset-list '(unicode) |
2ce9656d788b
(utf-8): Give :mime-charset property.
Kenichi Handa <handa@m17n.org>
parents:
88894
diff
changeset
|
1254 :mime-charset 'utf-8) |
88411 | 1255 |
1256 (define-coding-system-alias 'mule-utf-8 'utf-8) | |
1257 | |
1258 (define-coding-system 'utf-8-emacs | |
88468 | 1259 "Support for all Emacs characters (including non-Unicode characters)." |
88411 | 1260 :coding-type 'utf-8 |
1261 :mnemonic ?U | |
89244
bf10578caec8
(utf-8-emacs): Delete :mime-charset.
Dave Love <fx@gnu.org>
parents:
89200
diff
changeset
|
1262 :charset-list '(emacs)) |
88411 | 1263 |
89436 | 1264 (define-coding-system 'utf-16le |
89475
d6468503c001
(utf-16-be): Make it an alias of utf-16be-with-signature.
Kenichi Handa <handa@m17n.org>
parents:
89436
diff
changeset
|
1265 "UTF-16LE (little endian, no signature (BOM))." |
88411 | 1266 :coding-type 'utf-16 |
1267 :mnemonic ?U | |
88503 | 1268 :charset-list '(unicode) |
89403
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1269 :endian 'little |
89436 | 1270 :mime-text-unsuitable t |
89403
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1271 :mime-charset 'utf-16le) |
17070 | 1272 |
89436 | 1273 (define-coding-system 'utf-16be |
89475
d6468503c001
(utf-16-be): Make it an alias of utf-16be-with-signature.
Kenichi Handa <handa@m17n.org>
parents:
89436
diff
changeset
|
1274 "UTF-16BE (big endian, no signature (BOM))." |
88411 | 1275 :coding-type 'utf-16 |
1276 :mnemonic ?U | |
1277 :charset-list '(unicode) | |
89422 | 1278 :endian 'big |
89436 | 1279 :mime-text-unsuitable t |
89403
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1280 :mime-charset 'utf-16be) |
17070 | 1281 |
89436 | 1282 (define-coding-system 'utf-16le-with-signature |
89475
d6468503c001
(utf-16-be): Make it an alias of utf-16be-with-signature.
Kenichi Handa <handa@m17n.org>
parents:
89436
diff
changeset
|
1283 "UTF-16 (little endian, with signature (BOM))." |
88411 | 1284 :coding-type 'utf-16 |
1285 :mnemonic ?U | |
1286 :charset-list '(unicode) | |
88440
5b1dd2e30f16
(utf-16-le): Use :bom attribute instead of :signature.
Kenichi Handa <handa@m17n.org>
parents:
88411
diff
changeset
|
1287 :bom t |
88503 | 1288 :endian 'little |
89436 | 1289 :mime-text-unsuitable t |
89403
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1290 :mime-charset 'utf-16) |
17070 | 1291 |
89436 | 1292 (define-coding-system 'utf-16be-with-signature |
89475
d6468503c001
(utf-16-be): Make it an alias of utf-16be-with-signature.
Kenichi Handa <handa@m17n.org>
parents:
89436
diff
changeset
|
1293 "UTF-16 (big endian, with signature)." |
88411 | 1294 :coding-type 'utf-16 |
1295 :mnemonic ?U | |
1296 :charset-list '(unicode) | |
88440
5b1dd2e30f16
(utf-16-le): Use :bom attribute instead of :signature.
Kenichi Handa <handa@m17n.org>
parents:
88411
diff
changeset
|
1297 :bom t |
89422 | 1298 :endian 'big |
89436 | 1299 :mime-text-unsuitable t |
89403
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1300 :mime-charset 'utf-16) |
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1301 |
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1302 (define-coding-system 'utf-16 |
89475
d6468503c001
(utf-16-be): Make it an alias of utf-16be-with-signature.
Kenichi Handa <handa@m17n.org>
parents:
89436
diff
changeset
|
1303 "UTF-16 (detect endian on decoding, use big endian on encoding with BOM)." |
89403
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1304 :coding-type 'utf-16 |
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1305 :mnemonic ?U |
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1306 :charset-list '(unicode) |
89436 | 1307 :bom '(utf-16le-with-signature . utf-16be-with-signature) |
89422 | 1308 :endian 'big |
89436 | 1309 :mime-text-unsuitable t |
89403
e7eb0fa7dce7
(utf-16-le): Renamed from utf-16-le-nosig.
Kenichi Handa <handa@m17n.org>
parents:
89389
diff
changeset
|
1310 :mime-charset 'utf-16) |
17070 | 1311 |
89436 | 1312 ;; Backwards compatibility (old names, also used by Mule-UCS). We |
1313 ;; prefer the MIME names. | |
89475
d6468503c001
(utf-16-be): Make it an alias of utf-16be-with-signature.
Kenichi Handa <handa@m17n.org>
parents:
89436
diff
changeset
|
1314 (define-coding-system-alias 'utf-16-le 'utf-16le-with-signature) |
d6468503c001
(utf-16-be): Make it an alias of utf-16be-with-signature.
Kenichi Handa <handa@m17n.org>
parents:
89436
diff
changeset
|
1315 (define-coding-system-alias 'utf-16-be 'utf-16be-with-signature) |
d6468503c001
(utf-16-be): Make it an alias of utf-16be-with-signature.
Kenichi Handa <handa@m17n.org>
parents:
89436
diff
changeset
|
1316 |
89436 | 1317 |
88411 | 1318 (define-coding-system 'iso-2022-7bit |
88647 | 1319 "ISO 2022 based 7-bit encoding using only G0." |
88411 | 1320 :coding-type 'iso-2022 |
1321 :mnemonic ?J | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1322 :charset-list 'iso-2022 |
88411 | 1323 :designation [(ascii t) nil nil nil] |
1324 :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation composition)) | |
1325 | |
1326 (define-coding-system 'iso-2022-7bit-ss2 | |
88647 | 1327 "ISO 2022 based 7-bit encoding using SS2 for 96-charset." |
88411 | 1328 :coding-type 'iso-2022 |
1329 :mnemonic ?$ | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1330 :charset-list 'iso-2022 |
88411 | 1331 :designation [(ascii 94) nil (nil 96) nil] |
1332 :flags '(short ascii-at-eol ascii-at-cntl 7-bit | |
1333 designation single-shift composition)) | |
1334 | |
1335 (define-coding-system 'iso-2022-7bit-lock | |
88647 | 1336 "ISO-2022 coding system using Locking-Shift for 96-charset." |
88411 | 1337 :coding-type 'iso-2022 |
1338 :mnemonic ?& | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1339 :charset-list 'iso-2022 |
88411 | 1340 :designation [(ascii 94) (nil 96) nil nil] |
1341 :flags '(ascii-at-eol ascii-at-cntl 7-bit | |
1342 designation locking-shift composition)) | |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1343 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
1344 (define-coding-system-alias 'iso-2022-int-1 'iso-2022-7bit-lock) |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1345 |
88411 | 1346 (define-coding-system 'iso-2022-7bit-lock-ss2 |
88647 | 1347 "Mixture of ISO-2022-JP, ISO-2022-KR, and ISO-2022-CN." |
88411 | 1348 :coding-type 'iso-2022 |
1349 :mnemonic ?i | |
1350 :charset-list '(ascii | |
1351 japanese-jisx0208 japanese-jisx0208-1978 latin-jisx0201 | |
1352 korean-ksc5601 | |
1353 chinese-gb2312 | |
1354 chinese-cns11643-1 chinese-cns11643-2 chinese-cns11643-3 | |
1355 chinese-cns11643-4 chinese-cns11643-5 chinese-cns11643-6 | |
1356 chinese-cns11643-7) | |
1357 :designation [(ascii 94) | |
1358 (nil korean-ksc5601 chinese-gb2312 chinese-cns11643-1 96) | |
1359 (nil chinese-cns11643-2) | |
1360 (nil chinese-cns11643-3 chinese-cns11643-4 chinese-cns11643-5 | |
1361 chinese-cns11643-6 chinese-cns11643-7)] | |
1362 :flags '(short ascii-at-eol ascii-at-cntl 7-bit locking-shift | |
1363 single-shift init-bol)) | |
17070 | 1364 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
1365 (define-coding-system-alias 'iso-2022-cjk 'iso-2022-7bit-lock-ss2) |
17070 | 1366 |
88411 | 1367 (define-coding-system 'iso-2022-8bit-ss2 |
88647 | 1368 "ISO 2022 based 8-bit encoding using SS2 for 96-charset." |
88411 | 1369 :coding-type 'iso-2022 |
1370 :mnemonic ?@ | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1371 :charset-list 'iso-2022 |
88411 | 1372 :designation [(ascii 94) nil (nil 96) nil] |
1373 :flags '(ascii-at-eol ascii-at-cntl designation single-shift composition)) | |
17070 | 1374 |
88411 | 1375 (define-coding-system 'compound-text |
1376 "Compound text based generic encoding for decoding unknown messages. | |
17070 | 1377 |
89483 | 1378 This coding system does not support extended segments of CTEXT." |
88411 | 1379 :coding-type 'iso-2022 |
1380 :mnemonic ?x | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1381 :charset-list 'iso-2022 |
88411 | 1382 :designation [(ascii 94) (latin-iso8859-1 katakana-jisx0201 96) nil nil] |
90352 | 1383 :flags '(ascii-at-eol ascii-at-cntl long-form |
88411 | 1384 designation locking-shift single-shift composition) |
88503 | 1385 ;; Fixme: this isn't a valid MIME charset and has to be |
1386 ;; special-cased elsewhere -- fx | |
88411 | 1387 :mime-charset 'x-ctext) |
24619
6057f7a48050
(x-ctext): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
24308
diff
changeset
|
1388 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1389 (define-coding-system-alias 'x-ctext 'compound-text) |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1390 (define-coding-system-alias 'ctext 'compound-text) |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1391 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1392 ;; Same as compound-text, but doesn't produce composition escape |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1393 ;; sequences. Used in post-read and pre-write conversions of |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1394 ;; compound-text-with-extensions, see mule.el. Note that this should |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1395 ;; not have a mime-charset property, to prevent it from showing up |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1396 ;; close to the beginning of coding systems ordered by priority. |
89647
b1e7c4bffed1
(ctext-no-compositions): Remove garbage arguments.
Kenichi Handa <handa@m17n.org>
parents:
89483
diff
changeset
|
1397 (define-coding-system 'ctext-no-compositions |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1398 "Compound text based generic encoding for decoding unknown messages. |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1399 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1400 Like `compound-text', but does not produce escape sequences for compositions." |
88411 | 1401 :coding-type 'iso-2022 |
1402 :mnemonic ?x | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1403 :charset-list 'iso-2022 |
88411 | 1404 :designation [(ascii 94) (latin-iso8859-1 katakana-jisx0201 96) nil nil] |
1405 :flags '(ascii-at-eol ascii-at-cntl | |
1406 designation locking-shift single-shift)) | |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1407 |
88411 | 1408 (define-coding-system 'compound-text-with-extensions |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1409 "Compound text encoding with ICCCM Extended Segment extensions. |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1410 |
53241
b5acb6a7d79b
(compound-text-with-extensions): Change the type to 2 (iso-2022 base).
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
1411 See the variable `ctext-non-standard-encodings-alist' for the |
b5acb6a7d79b
(compound-text-with-extensions): Change the type to 2 (iso-2022 base).
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
1412 detail about how extended segments are handled. |
b5acb6a7d79b
(compound-text-with-extensions): Change the type to 2 (iso-2022 base).
Kenichi Handa <handa@m17n.org>
parents:
52401
diff
changeset
|
1413 |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1414 This coding system should be used only for X selections. It is inappropriate |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1415 for decoding and encoding files, process I/O, etc." |
89909 | 1416 :coding-type 'iso-2022 |
88411 | 1417 :mnemonic ?x |
89909 | 1418 :charset-list 'iso-2022 |
1419 :designation [(ascii 94) (latin-iso8859-1 katakana-jisx0201 96) nil nil] | |
90352 | 1420 :flags '(ascii-at-eol ascii-at-cntl long-form |
89909 | 1421 designation locking-shift single-shift) |
88411 | 1422 :post-read-conversion 'ctext-post-read-conversion |
1423 :pre-write-conversion 'ctext-pre-write-conversion) | |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1424 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1425 (define-coding-system-alias |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1426 'x-ctext-with-extensions 'compound-text-with-extensions) |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1427 (define-coding-system-alias |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1428 'ctext-with-extensions 'compound-text-with-extensions) |
33221
22ea1d0f7521
(compound-text): Define this coding system here. Make x-ctext and
Kenichi Handa <handa@m17n.org>
parents:
33044
diff
changeset
|
1429 |
88411 | 1430 (define-coding-system 'us-ascii |
89483 | 1431 "Encode ASCII as-is and encode non-ASCII characters to `?'." |
88411 | 1432 :coding-type 'charset |
1433 :mnemonic ?- | |
1434 :charset-list '(ascii) | |
1435 :default-char ?? | |
1436 :mime-charset 'us-ascii) | |
19266
a042f26b7a4c
(iso-safe): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
19005
diff
changeset
|
1437 |
88411 | 1438 (define-coding-system-alias 'iso-safe 'us-ascii) |
46492
4bc90b6a952f
(us-ascii): Define it as an alias of iso-safe.
Kenichi Handa <handa@m17n.org>
parents:
43929
diff
changeset
|
1439 |
89426 | 1440 (define-coding-system 'utf-7 |
1441 "UTF-7 encoding of Unicode (RFC 2152)." | |
1442 :coding-type 'utf-8 | |
1443 :mnemonic ?U | |
1444 :mime-charset 'utf-7 | |
1445 :charset-list '(unicode) | |
1446 :pre-write-conversion 'utf-7-pre-write-conversion | |
1447 :post-read-conversion 'utf-7-post-read-conversion) | |
50118
c38bf27db0aa
(iso-latin-1): Moved from european.el.
Kenichi Handa <handa@m17n.org>
parents:
49598
diff
changeset
|
1448 |
91116
ec7b5eef2638
(utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
1449 (define-coding-system 'utf-7-imap |
ec7b5eef2638
(utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
1450 "UTF-7 encoding of Unicode, IMAP version (RFC 2060)" |
ec7b5eef2638
(utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
1451 :coding-type 'utf-8 |
ec7b5eef2638
(utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
1452 :mnemonic ?u |
ec7b5eef2638
(utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
1453 :charset-list '(unicode) |
ec7b5eef2638
(utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
1454 :pre-write-conversion 'utf-7-imap-pre-write-conversion |
ec7b5eef2638
(utf-7-imap): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
1455 :post-read-conversion 'utf-7-imap-post-read-conversion) |
50118
c38bf27db0aa
(iso-latin-1): Moved from european.el.
Kenichi Handa <handa@m17n.org>
parents:
49598
diff
changeset
|
1456 |
88411 | 1457 ;; Use us-ascii for terminal output if some other coding system is not |
23196 | 1458 ;; specified explicitly. |
88411 | 1459 (set-safe-terminal-coding-system-internal 'us-ascii) |
19266
a042f26b7a4c
(iso-safe): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
19005
diff
changeset
|
1460 |
17070 | 1461 ;; The other coding-systems are defined in each language specific |
88411 | 1462 ;; files under lisp/language. |
17070 | 1463 |
21713
aa160e4358ac
(file-coding-system-alist): Use emacs-mule for .elc files.
Richard M. Stallman <rms@gnu.org>
parents:
20732
diff
changeset
|
1464 ;; Normally, set coding system to `undecided' before reading a file. |
aa160e4358ac
(file-coding-system-alist): Use emacs-mule for .elc files.
Richard M. Stallman <rms@gnu.org>
parents:
20732
diff
changeset
|
1465 ;; Compiled Emacs Lisp files (*.elc) are not decoded at all, |
aa160e4358ac
(file-coding-system-alist): Use emacs-mule for .elc files.
Richard M. Stallman <rms@gnu.org>
parents:
20732
diff
changeset
|
1466 ;; but we regard them as containing multibyte characters. |
aa160e4358ac
(file-coding-system-alist): Use emacs-mule for .elc files.
Richard M. Stallman <rms@gnu.org>
parents:
20732
diff
changeset
|
1467 ;; Tar files are not decoded at all, but we treat them as raw bytes. |
17070 | 1468 |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1469 (setq file-coding-system-alist |
88776
805a3bb7daf4
(file-coding-system-alist): Change
Dave Love <fx@gnu.org>
parents:
88760
diff
changeset
|
1470 '(("\\.elc\\'" . utf-8-emacs) |
42047
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
1471 ("\\.utf\\(-8\\)?\\'" . utf-8) |
91922
89b7a215ead9
* international/mule.el (sgml-xml-auto-coding-function): Detect
Jason Rumney <jasonr@gnu.org>
parents:
91327
diff
changeset
|
1472 ("\\.xml\\'" . xml-find-file-coding-system) |
34264
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1473 ;; We use raw-text for reading loaddefs.el so that if it |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1474 ;; happens to have DOS or Mac EOLs, they are converted to |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1475 ;; newlines. This is required to make the special treatment |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1476 ;; of the "\ newline" combination in loaddefs.el, which marks |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1477 ;; the beginning of a doc string, work. |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1478 ("\\(\\`\\|/\\)loaddefs.el\\'" . (raw-text . raw-text-unix)) |
32228
6a5bae3ed1c1
file-coding-system-alist): Use \',
Dave Love <fx@gnu.org>
parents:
30260
diff
changeset
|
1479 ("\\.tar\\'" . (no-conversion . no-conversion)) |
43929
75ed7127d6fc
(file-coding-system-alist): Add an association for PO files.
Eli Zaretskii <eliz@gnu.org>
parents:
43552
diff
changeset
|
1480 ( "\\.po[tx]?\\'\\|\\.po\\." . po-find-file-coding-system) |
61933
e555645f13f4
(file-coding-system-alist): Fix regexp for latexenc.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
61912
diff
changeset
|
1481 ("\\.\\(tex\\|ltx\\|dtx\\|drv\\)\\'" . latexenc-find-file-coding-system) |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1482 ("" . (undecided . nil)))) |
17070 | 1483 |
1484 | |
1485 ;;; Setting coding categories and their priorities. | |
1486 | |
1487 ;; This setting is just to read an Emacs Lisp source files which | |
1488 ;; contain multilingual text while dumping Emacs. More appropriate | |
18302
6fbbef4e6c39
Change mnemonic letters for iso-2022-7bit-ss2 and
Kenichi Handa <handa@m17n.org>
parents:
18196
diff
changeset
|
1489 ;; values are set by the command `set-language-environment' for each |
17070 | 1490 ;; language environment. |
1491 | |
88411 | 1492 (set-coding-system-priority |
1493 'iso-latin-1 | |
1494 'utf-8 | |
1495 'iso-2022-7bit | |
1496 ) | |
17070 | 1497 |
19372 | 1498 |
1499 ;;; Miscellaneous settings. | |
88411 | 1500 |
1501 ;; Make all multibyte characters self-insert. | |
1502 (set-char-table-range (nth 1 global-map) | |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
1503 (cons 128 (max-char)) |
88411 | 1504 'self-insert-command) |
1505 | |
50511
5930672784ee
Register ?\221 and ?\226 in latin-extra-code-table.
Kenichi Handa <handa@m17n.org>
parents:
50488
diff
changeset
|
1506 (aset latin-extra-code-table ?\221 t) |
19372 | 1507 (aset latin-extra-code-table ?\222 t) |
35187
cb583146cc55
(latin-extra-code-table): Set to t for \223 and \224.
Kenichi Handa <handa@m17n.org>
parents:
34264
diff
changeset
|
1508 (aset latin-extra-code-table ?\223 t) |
cb583146cc55
(latin-extra-code-table): Set to t for \223 and \224.
Kenichi Handa <handa@m17n.org>
parents:
34264
diff
changeset
|
1509 (aset latin-extra-code-table ?\224 t) |
50488
a23ddd4b5a0b
Register ?\225 in latin-extra-code-table.
Kenichi Handa <handa@m17n.org>
parents:
50182
diff
changeset
|
1510 (aset latin-extra-code-table ?\225 t) |
50511
5930672784ee
Register ?\221 and ?\226 in latin-extra-code-table.
Kenichi Handa <handa@m17n.org>
parents:
50488
diff
changeset
|
1511 (aset latin-extra-code-table ?\226 t) |
19372 | 1512 |
88600 | 1513 ;; The old code-pages library is obsoleted by coding systems based on |
1514 ;; the charsets defined in this file but might be required by user | |
1515 ;; code. | |
1516 (provide 'code-pages) | |
1517 | |
88575 | 1518 ;; Local variables: |
1519 ;; no-byte-compile: t | |
1520 ;; End: | |
23260
1e8cac8d2c50
Call update-coding-systems-internal at the tail.
Kenichi Handa <handa@m17n.org>
parents:
23196
diff
changeset
|
1521 |
61698
19c94353380d
(translation-table-for-input): Remove redundant declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
53241
diff
changeset
|
1522 ;; arch-tag: 7d5fed55-b6df-42f6-8d3d-0011190551f5 |
17070 | 1523 ;;; mule-conf.el ends here |