1 ;;; mule-conf.el --- configure multilingual environment
3 ;; Copyright (C) 1995,1999 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
5 ;; Copyright (C) 1997,1999,2000,2002,2003,2004,2005,2006,2008 MORIOKA Tomohiko
7 ;; Keywords: mule, multilingual, character set, coding system
9 ;; This file is part of XEmacs.
11 ;; XEmacs is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
16 ;; XEmacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with XEmacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
28 (define-charset-alias '=jis-x0208-1978 '=jis-x0208@1978)
29 (define-charset-alias 'japanese-jisx0208-1978 '=jis-x0208@1978)
30 (define-charset-alias 'chinese-gb2312 '=gb2312)
31 (define-charset-alias '=jis-x0208-1983 '=jis-x0208@1983)
32 (define-charset-alias 'japanese-jisx0208 '=jis-x0208@1983)
33 (define-charset-alias 'korean-ksc5601 '=ks-x1001)
34 (define-charset-alias 'japanese-jisx0212 '=jis-x0212)
35 (define-charset-alias 'chinese-cns11643-1 '=cns11643-1)
36 (define-charset-alias 'chinese-cns11643-2 '=cns11643-2)
37 (define-charset-alias 'chinese-gb12345 '=gb12345)
38 (define-charset-alias 'chinese-big5 '=big5)
41 (make-charset 'sisheng "PinYin-ZhuYin"
42 '(registry "sisheng_cwnn\\|OMRON_UDC_ZH"
50 ;; ISO10646's 0x0E80..0x0EDF are mapped to 0x20..0x7F.
51 (make-charset 'lao "Lao script"
52 '(registry "MuleLao-1"
58 ;; IPA (International Phonetic Alphabet)
59 (make-charset 'ipa "International Phonetic Alphabet"
67 (make-charset 'ethiopic "Ethiopic"
75 ;; ISO-IR-165 (CCITT Extended GB)
76 ;; It is based on CCITT Recommendation T.101, includes GB 2312-80 +
77 ;; GB 8565-88 table A4 + 293 characters.
78 (if (featurep 'utf-2000)
80 (make-charset '=iso-ir165
81 "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
89 (define-charset-alias 'chinese-isoir165 '=iso-ir165))
90 (make-charset 'chinese-isoir165
91 "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
99 ;; CNS11643 Plane3 thru Plane7
100 ;; These represent more and more obscure Chinese characters.
101 ;; By the time you get to Plane 7, we're talking about characters
102 ;; that appear once in some ancient manuscript and whose meaning
106 ((make-chinese-cns11643-charset
107 (name iso-ir plane final)
109 name (concat "CNS 11643 Plane " plane " (Chinese traditional)")
112 ,(concat "CNS11643[.-]\\(.*[.-]\\)?" plane "$")
118 (make-chinese-cns11643-charset '=cns11643-3 183 "3" ?I)
119 (make-chinese-cns11643-charset '=cns11643-4 184 "4" ?J)
120 (make-chinese-cns11643-charset '=cns11643-5 185 "5" ?K)
121 (make-chinese-cns11643-charset '=cns11643-6 186 "6" ?L)
122 (make-chinese-cns11643-charset '=cns11643-7 187 "7" ?M)
123 (define-charset-alias 'chinese-cns11643-3 '=cns11643-3)
124 (define-charset-alias 'chinese-cns11643-4 '=cns11643-4)
125 (define-charset-alias 'chinese-cns11643-5 '=cns11643-5)
126 (define-charset-alias 'chinese-cns11643-6 '=cns11643-6)
127 (define-charset-alias 'chinese-cns11643-7 '=cns11643-7)
131 (if (featurep 'utf-2000)
135 "JIS X 0213:2000 Plain 1"
137 registry "jisx0213\\(\\.2000\\)-1"
140 mother =jis-x0208@1990
145 "JIS X 0213:2000 Plain 2"
147 registry "jisx0213\\(\\.2000\\)-2"
152 (define-charset-alias 'japanese-jisx0213-1 '=jis-x0213-1-2000)
153 (define-charset-alias 'japanese-jisx0213-2 '=jis-x0213-2-2000)
157 "JIS X 0213:2000 Plain 1"
158 '(registry "jisx0213\\(\\.2000\\)-1"
165 "JIS X 0213:2000 Plain 2"
166 '(registry "jisx0213\\(\\.2000\\)-2"
173 (when (featurep 'utf-2000)
174 (define-charset-alias 'ucs '=ucs)
175 (define-charset-alias '=jis-x0208-1990 '=jis-x0208@1990)
176 (define-charset-alias 'japanese-jisx0208-1990 '=jis-x0208@1990)
179 "JIS X 0208 based on the unification rule of 1997 edition."
180 '(registry "jisx0208\\.1990"
188 "The first impression of JIS X 0208:1978."
189 '(registry "jisx0208\\.1978"
192 mother =jis-x0208@1978
197 "The second and third impressions of JIS X 0208:1978."
198 '(registry "jisx0208\\.1978"
201 mother =jis-x0208@1978
205 (make-charset '=big5-cdp
206 "Big5 with CDP extension"
207 '(long-name "Big5-CDP"
213 registry "big5\\.cdp-0"
217 (define-charset-alias 'chinese-big5-cdp '=big5-cdp)
228 min-code ,(lsh #x6100 16)
229 max-code ,(+ (lsh #x6100 16) 67547)
230 code-offset ,(lsh #x6100 16)))
231 (define-charset-alias 'ideograph-gt '=gt)
233 "Ideographic components of GT"
234 `(long-name "GT components"
241 min-code ,(lsh #x6110 16)
242 max-code ,(+ (lsh #x6110 16) 17090)
243 code-offset ,(lsh #x6110 16)))
244 (define-charset-alias 'ideograph-gt-k '=gt-k)
248 (intern (format "=gt-pj-%d" i))
249 (format "GT 2000 (pseudo JIS encoding) part %d" i)
250 `(long-name ,(format "GT PJ %d" i)
256 registry ,(format "\\(GTpj-%d\\|jisx0208\\.GT-%d\\)$" i i)))
257 (define-charset-alias
258 (intern (format "ideograph-gt-pj-%d" i))
259 (intern (format "=gt-pj-%d" i)))
263 "Ideographic parts of GT (pseudo JIS encoding) part 1"
270 registry "\\(GTKpj-1\\|jisx0208\\.GTK-1\\)$"))
271 (define-charset-alias 'ideograph-gt-pj-k1 '=gt-pj-k1)
274 "Ideographic parts of GT (pseudo JIS encoding) part 2"
281 registry "\\(GTKpj-2\\|jisx0208\\.GTK-2\\)$"))
282 (define-charset-alias 'ideograph-gt-pj-k2 '=gt-pj-k2)
284 (make-charset '=daikanwa
285 "Daikanwa dictionary (revised version 2)"
286 `(long-name "Daikanwa"
292 registry "Daikanwa\\(\\.[0-9]+\\)?-3"
294 max-code ,(+ #xE00000 50100)
295 code-offset #xE00000))
296 (define-charset-alias 'ideograph-daikanwa '=daikanwa)
298 (make-charset '=daikanwa@rev1
299 "Daikanwa dictionary (revised version)"
300 `(long-name "Daikanwa Rev."
306 registry "Daikanwa\\(\\.[0-9]+\\)?-2"
309 (define-charset-alias 'ideograph-daikanwa-2 '=daikanwa@rev1)
310 (define-charset-alias '=daikanwa-rev1 '=daikanwa@rev1)
312 (make-charset '=daikanwa@rev2
313 "Daikanwa dictionary (revised version 2)"
314 `(long-name "Daikanwa"
320 registry "Daikanwa\\(\\.[0-9]+\\)?-3"
325 ;; max-code ,(+ #xE00000 50100)
326 ;; code-offset #xE00000
328 (define-charset-alias '=daikanwa-rev2 '=daikanwa@rev2)
330 (make-charset 'shinjigen-1
331 "Kadokawa ShinJigen dictionary (the first edition)"
332 `(long-name "Shinjigen-1"
338 registry "Shinjigen\\(\\.[0-9]+\\)?-1"))
339 (make-charset 'shinjigen-2
340 "Kadokawa ShinJigen dictionary (the second edition)"
341 `(long-name "Shinjigen-2"
347 registry "Shinjigen\\(\\.[0-9]+\\)?-2"))
348 (make-charset 'shinjigen-2-p
349 "ShinJigen (the second edition) number with '"
350 `(long-name "Shinjigen-2 with '"
357 (make-charset '=big5-pua
358 "Big5 with private used area"
359 '(long-name "Big5-PUA"
366 registry "Big5\\.ETEN"))
367 (define-charset-alias 'chinese-big5-pua '=big5-pua)
368 (make-charset '=big5-eten
370 '(long-name "Big5-ETEN"
379 registry "Big5\\.ETEN"))
380 (define-charset-alias 'chinese-big5-eten '=big5-eten)
381 (make-charset 'chinese-big5-eten-a
382 "Big5 ETEN (#xF9D6 .. #xF9FE)"
383 '(long-name "Big5-ETEN-a"
392 registry "Big5\\.ETEN"))
393 (make-charset 'chinese-big5-eten-b
394 "Big5 ETEN (#xC6A1 .. #xC8FE)"
395 '(long-name "Big5-ETEN-b"
404 registry "Big5\\.ETEN"))
407 (hzk-min (+ (lsh #x6200 16) 65536))
408 (hzk-max (+ hzk-min 65535)))
411 (intern (format "=hanziku-%d" i))
412 (format "HANZIKU (pseudo BIG5 encoding) part %d" i)
413 `(long-name ,(format "HANZIKU-%d" i)
419 registry ,(format "hanziku-%d$" i i)
422 code-offset ,hzk-min))
423 (define-charset-alias
424 (intern (format "ideograph-hanziku-%d" i))
425 (intern (format "=hanziku-%d" i)))
426 (setq hzk-min (1+ hzk-max)
427 hzk-max (+ hzk-min 65535))
430 (make-charset '=cbeta "CBETA private characters"
431 '(long-name "CBETA PUA"
441 (define-charset-alias 'ideograph-cbeta '=cbeta)
443 (make-charset '=zinbun-oracle
444 "Oracle Bones Script"
445 `(long-name "Oracle Bones Script in Zinbun, Kyoto Univ."
451 max-code ,(+ #xE70000 8192)
456 (make-charset '=jef-china3
457 "JEF + CHINA3 private characters"
458 '(long-name "JEF + CHINA3"
464 registry "china3jef-0"
467 code-offset #xE80000))
468 (define-charset-alias 'china3-jef '=jef-china3)
470 (make-charset '=ruimoku-v6
471 "private characters used in RUIMOKU Version.6"
480 min-code #xE90000 ; #xE000
481 max-code #xE908FF ; #xE8FF
482 code-offset ,(- #xE90000 #xE000)))
484 (make-charset '=ucs@iso
485 "ISO/IEC 10646 for its representative glyphs"
486 '(long-name "UCS for ISO"
493 (make-charset '=ucs@unicode
494 "Unicode for its representative glyphs"
495 '(long-name "UCS for Unicode"
502 (make-charset '=ucs@gb
503 "ISO/IEC 10646 for GB"
504 '(long-name "UCS for GB"
510 mother =ucs@unicode))
511 (define-charset-alias 'ucs-gb '=ucs@gb)
512 (make-charset '=ucs@gb/fw
513 "ISO/IEC 10646 for GB with fullwidth"
514 '(long-name "UCS for GB-fullwidth"
521 (make-charset '=ucs-bmp@gb
522 "ISO/IEC 10646 BMP for GB"
523 '(long-name "BMP for GB"
532 (make-charset '=ucs@cns
533 "ISO/IEC 10646 for CNS 11643"
534 '(long-name "UCS for CNS"
540 mother =ucs@unicode))
541 (define-charset-alias 'ucs-cns '=ucs@cns)
542 (make-charset '=ucs@cns/fw
543 "ISO/IEC 10646 for CNS 11643 with fullwidth"
544 '(long-name "UCS for CNS-fullwidth"
551 (make-charset '=ucs-bmp@cns
552 "ISO/IEC 10646 BMP for CNS"
553 '(long-name "BMP for CNS"
562 (make-charset '=ucs@jis
563 "ISO/IEC 10646 for JIS X0208/0212/0213"
564 '(long-name "UCS for JIS"
570 mother =ucs@unicode))
571 (define-charset-alias 'ucs-jis '=ucs@jis)
572 (make-charset '=ucs@jis/fw
573 "ISO/IEC 10646 for JIS X0208/0212/0213 with fullwidth"
574 '(long-name "UCS for JIS-fullwidth"
581 (make-charset '=ucs-bmp@jis
582 "ISO/IEC 10646 BMP for JIS"
583 '(long-name "BMP for JIS"
592 (make-charset '=ucs@jis/1990
593 "ISO/IEC 10646 for JIS X 0208/0212:1990"
594 '(long-name "UCS for JIS:1990"
601 (define-charset-alias '=ucs@jis-1990 '=ucs@jis/1990)
602 (define-charset-alias '=ucs-jis-1990 '=ucs@jis/1990)
603 (make-charset '=ucs@jis/2000
604 "ISO/IEC 10646 for JIS X 0213:2000"
605 '(long-name "UCS for JIS:2000"
612 (define-charset-alias '=ucs@jis-2000 '=ucs@jis/2000)
613 (define-charset-alias '=ucs-jis-2000 '=ucs@jis/2000)
614 (make-charset '=ucs@JP
615 "UCS for common glyphs used in Japan"
616 '(long-name "UCS for Japan"
622 mother =ucs@jis/2000))
623 (define-charset-alias '=ucs@jp '=ucs@JP)
624 (make-charset '=ucs@ks
625 "ISO/IEC 10646 for Korean Standards"
626 '(long-name "UCS for KS"
632 mother =ucs@unicode))
633 (define-charset-alias 'ucs-ks '=ucs@ks)
634 (make-charset '=ucs-bmp@ks
635 "ISO/IEC 10646 BMP for KS"
636 '(long-name "BMP for KS"
645 (make-charset '=ucs@big5
646 "ISO/IEC 10646 for Big5"
647 '(long-name "UCS for Big5"
653 mother =ucs@unicode))
654 (define-charset-alias 'ucs-big5 '=ucs@big5)
655 (make-charset '=ucs@big5/cns11643
656 "ISO/IEC 10646 for Big5 based on www.cns11643.gov.tw"
657 '(long-name "UCS for Big5@CNS11643"
664 (make-charset '=ucs@cns11643
665 "ISO/IEC 10646 for CNS based on www.cns11643.gov.tw"
666 '(long-name "UCS for CNS11643"
676 "CJK Radicals of UCS"
677 '(long-name "UCS-Radicals"
683 registry "-zhRadicals-.*-ucs-0"
685 min-code #x2E00 max-code #x2FFF))
687 '=ucs-radicals@unicode
688 "CJK Radicals of UCS"
689 '(long-name "UCS-Radicals"
695 registry "-zhRadicals-.*-ucs-0"
697 min-code #x2E00 max-code #x2FFF))
700 "Hangul Syllables of UCS"
701 '(long-name "UCS-Hangul-Syllables"
707 registry "-Hangul-.*-ucs-0"
709 min-code #xAC00 max-code #xD7AF))
712 "CJK Characters in BMP of UCS"
713 '(long-name "UCS-BMP-CJK"
719 registry "-zh-.*-ucs-0"
726 '=ucs-bmp-cjk@unicode
727 "CJK Characters in BMP of Unicode"
728 '(long-name "Unicode-BMP-CJK"
734 registry "-zh-.*-ucs-0"
742 "CJK Ideographs Extension B"
743 '(long-name "UCS CJK Ext-B"
749 registry "\\(iso10646\\|ucs02\\)-2$"
751 min-code #x20000 max-code #x2A6D6
752 code-offset #x20000))
755 "CJK Ideographs Extension B (ISO/IEC 10646-2)"
756 '(long-name "UCS CJK Ext-B"
762 registry "\\(iso10646\\|ucs02\\)-2$"
764 min-code #x20000 max-code #x2A6D6
765 code-offset #x20000))
769 "Adobe-Japan1-0 Character Collection for CID-Keyed Fonts"
770 '(long-name "Adobe-Japan1-0"
776 registry "AdobeJapan1-0$"))
779 "Adobe-Japan1-1 Character Collection for CID-Keyed Fonts"
780 '(long-name "Adobe-Japan1-1"
786 mother =adobe-japan1-0
787 registry "AdobeJapan1-1$"))
790 "Adobe-Japan1-2 Character Collection for CID-Keyed Fonts"
791 '(long-name "Adobe-Japan1-2"
797 mother =adobe-japan1-1
798 registry "AdobeJapan1-2$"))
801 "Adobe-Japan1-3 Character Collection for CID-Keyed Fonts"
802 '(long-name "Adobe-Japan1-3"
808 mother =adobe-japan1-2
809 registry "AdobeJapan1-3$"))
812 "Adobe-Japan1-4 Character Collection for CID-Keyed Fonts"
813 '(long-name "Adobe-Japan1-4"
819 mother =adobe-japan1-3
820 registry "AdobeJapan1-4$"))
823 "Adobe-Japan1-5 Character Collection for CID-Keyed Fonts"
824 '(long-name "Adobe-Japan1-5"
830 mother =adobe-japan1-4
831 registry "AdobeJapan1-5$"))
834 "Adobe-Japan1-6 Character Collection for CID-Keyed Fonts"
835 '(long-name "Adobe-Japan1-6"
841 mother =adobe-japan1-5
842 registry "AdobeJapan1-6$"))
845 ;;; mule-conf.el ends here