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,
6 ;; 2009 MORIOKA Tomohiko
8 ;; Keywords: mule, multilingual, character set, coding system
10 ;; This file is part of XEmacs.
12 ;; XEmacs is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 2, or (at your option)
17 ;; XEmacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with XEmacs; see the file COPYING. If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
33 "JIS X 0208:1978, unchanged part."
34 '(registry "jisx0208\\.1978"
44 "JIS X 0208:1978, 1st - 3rd impressions."
45 '(registry "jisx0208\\.1978"
48 mother =jis-x0208@1978
55 "JIS X 0208:1978, 1st impression."
57 registry "jisx0208\\.1978"
60 mother =jis-x0208@1978/-4pr
65 "JIS X 0208:1978, index before the 4th impression."
66 '(registry "jisx0208\\.1978"
69 mother =jis-x0208@1978
76 "JIS X 0208:1978, 4th impression or later."
77 '(registry "jisx0208\\.1978"
80 mother =jis-x0208@1978
85 (define-charset-alias '=jis-x0208@1978/i1 '=jis-x0208@1978/1pr)
86 (define-charset-alias '=jis-x0208@1978/i-4 '=jis-x0208@1978/-4pr)
87 (define-charset-alias '=jis-x0208@1978/i4- '=jis-x0208@1978/4-pr)
92 "JIS X0208:1978 Japanese Kanji (so called \"old JIS\")."
94 registry "jisx0208\\.1978"
102 (define-charset-alias '=jis-x0208-1978 '=jis-x0208@1978)
103 (define-charset-alias 'japanese-jisx0208-1978 '=jis-x0208@1978)
104 (define-charset-alias 'chinese-gb2312 '=gb2312)
105 (define-charset-alias '=jis-x0208-1983 '=jis-x0208@1983)
106 (define-charset-alias 'japanese-jisx0208 '=jis-x0208@1983)
107 (define-charset-alias 'korean-ksc5601 '=ks-x1001)
108 (define-charset-alias 'japanese-jisx0212 '=jis-x0212)
109 (define-charset-alias 'chinese-cns11643-1 '=cns11643-1)
110 (define-charset-alias 'chinese-cns11643-2 '=cns11643-2)
111 (define-charset-alias 'chinese-gb12345 '=gb12345)
112 (define-charset-alias 'chinese-big5 '=big5)
115 (make-charset 'sisheng "PinYin-ZhuYin"
116 '(registry "sisheng_cwnn\\|OMRON_UDC_ZH"
124 ;; ISO10646's 0x0E80..0x0EDF are mapped to 0x20..0x7F.
125 (make-charset 'lao "Lao script"
126 '(registry "MuleLao-1"
132 ;; IPA (International Phonetic Alphabet)
133 (make-charset 'ipa "International Phonetic Alphabet"
141 (make-charset 'ethiopic "Ethiopic"
149 ;; ISO-IR-165 (CCITT Extended GB)
150 ;; It is based on CCITT Recommendation T.101, includes GB 2312-80 +
151 ;; GB 8565-88 table A4 + 293 characters.
152 (if (featurep 'utf-2000)
154 (make-charset '=iso-ir165
155 "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
163 (define-charset-alias 'chinese-isoir165 '=iso-ir165))
164 (make-charset 'chinese-isoir165
165 "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
173 ;; CNS11643 Plane3 thru Plane7
174 ;; These represent more and more obscure Chinese characters.
175 ;; By the time you get to Plane 7, we're talking about characters
176 ;; that appear once in some ancient manuscript and whose meaning
180 ((make-chinese-cns11643-charset
181 (name iso-ir plane final)
183 name (concat "CNS 11643 Plane " plane " (Chinese traditional)")
186 ,(concat "CNS11643[.-]\\(.*[.-]\\)?" plane "$")
192 (make-chinese-cns11643-charset '=cns11643-3 183 "3" ?I)
193 (make-chinese-cns11643-charset '=cns11643-4 184 "4" ?J)
194 (make-chinese-cns11643-charset '=cns11643-5 185 "5" ?K)
195 (make-chinese-cns11643-charset '=cns11643-6 186 "6" ?L)
196 (make-chinese-cns11643-charset '=cns11643-7 187 "7" ?M)
197 (define-charset-alias 'chinese-cns11643-3 '=cns11643-3)
198 (define-charset-alias 'chinese-cns11643-4 '=cns11643-4)
199 (define-charset-alias 'chinese-cns11643-5 '=cns11643-5)
200 (define-charset-alias 'chinese-cns11643-6 '=cns11643-6)
201 (define-charset-alias 'chinese-cns11643-7 '=cns11643-7)
206 ((featurep 'utf-2000)
209 "JIS X 0213 Plain 1 (unchanged part)"
210 '(registry "jisx0213\\(\\.[0-9]+\\)?-1"
220 "JIS X 0213:2000 Plain 1"
222 registry "jisx0213\\(\\.2000\\)-1"
232 registry "jisx0213\\(\\.\\(2000\\|2004\\)\\)?-2"
240 "JIS X 0213:2004 Plain 1"
242 registry "jisx0213\\(\\.2004\\)-1"
249 (define-charset-alias 'japanese-jisx0213-1 '=jis-x0213-1@2000)
250 (define-charset-alias 'japanese-jisx0213-2 '=jis-x0213-2)
251 (define-charset-alias '=jis-x0213-1-2000 '=jis-x0213-1@2000)
252 (define-charset-alias '=jis-x0213-2-2000 '=jis-x0213-2)
257 "JIS X 0213:2000 Plain 1"
258 '(registry "jisx0213\\(\\.2000\\)-1"
265 "JIS X 0213:2000 Plain 2"
266 '(registry "jisx0213\\(\\.2000\\)-2"
273 (when (featurep 'utf-2000)
274 (define-charset-alias 'ucs '=ucs)
275 (define-charset-alias '=jis-x0208-1990 '=jis-x0208@1990)
276 (define-charset-alias 'japanese-jisx0208-1990 '=jis-x0208@1990)
280 "JIS X 0213 Plain 1 abstract glyphs (unchanged part)"
281 '(registry "jisx0213\\(\\.[0-9]+\\)?-1"
291 '<==>jis-x0213-1@2000
292 "JIS X 0213:2000 Plain 1 abstract glyphs"
293 '(registry "jisx0213\\(\\.2000\\)-1"
296 mother <==>jis-x0213-1
303 '<==>jis-x0213-1@2004
304 "JIS X 0213:2004 Plain 1 abstract glyphs"
305 '(registry "jisx0213\\(\\.2004\\)-1"
308 mother <==>jis-x0213-1
317 "JIS X 0208 based on the unchanged unification rules."
318 '(registry "jisx0208\\.1990"
327 "JIS X 0208 based on the unification rule of 1997 edition."
328 '(registry "jisx0208\\.1990"
335 (define-charset-alias '=jis-x0208@1997 '<=>jis-x0208@1997)
339 "JIS X 0213 Plain 1 abstract characters (unchanged part)"
340 '(registry "jisx0213\\(\\.[0-9]+\\)?-1"
343 mother <==>jis-x0213-1
351 "JIS X 0213:2000 Plain 1 abstract characters"
352 '(registry "jisx0213\\(\\.2000\\)-1"
355 mother <=>jis-x0213-1
363 "JIS X 0213:2004 Plain 1 abstract characters"
364 '(registry "jisx0213\\(\\.2004\\)-1"
367 mother <=>jis-x0213-1
374 (make-charset '=big5-cdp
375 "Big5 with CDP extension"
376 '(long-name "Big5-CDP"
382 registry "big5\\.cdp-0"
386 (define-charset-alias 'chinese-big5-cdp '=big5-cdp)
397 min-code ,(lsh #x6100 16)
398 max-code ,(+ (lsh #x6100 16) 67547)
399 code-offset ,(lsh #x6100 16)))
400 (define-charset-alias 'ideograph-gt '=gt)
401 (make-charset '<==>gt
402 "GT 2000 abstract glyphs"
403 `(long-name "abstract GT"
410 (define-charset-alias '<=>gt '<==>gt)
412 "Ideographic components of GT"
413 `(long-name "GT components"
420 min-code ,(lsh #x6110 16)
421 max-code ,(+ (lsh #x6110 16) 17090)
422 code-offset ,(lsh #x6110 16)))
423 (define-charset-alias 'ideograph-gt-k '=gt-k)
427 (intern (format "=gt-pj-%d" i))
428 (format "GT 2000 (pseudo JIS encoding) part %d" i)
429 `(long-name ,(format "GT PJ %d" i)
435 registry ,(format "\\(GTpj-%d\\|jisx0208\\.GT-%d\\)$" i i)))
436 (define-charset-alias
437 (intern (format "ideograph-gt-pj-%d" i))
438 (intern (format "=gt-pj-%d" i)))
442 "Ideographic parts of GT (pseudo JIS encoding) part 1"
449 registry "\\(GTKpj-1\\|jisx0208\\.GTK-1\\)$"))
450 (define-charset-alias 'ideograph-gt-pj-k1 '=gt-pj-k1)
453 "Ideographic parts of GT (pseudo JIS encoding) part 2"
460 registry "\\(GTKpj-2\\|jisx0208\\.GTK-2\\)$"))
461 (define-charset-alias 'ideograph-gt-pj-k2 '=gt-pj-k2)
463 (make-charset '=daikanwa
464 "Daikanwa dictionary (revised version 2)"
465 `(long-name "Daikanwa"
471 registry "Daikanwa\\(\\.[0-9]+\\)?-3"
473 max-code ,(+ #xE00000 50100)
474 code-offset #xE00000))
475 (define-charset-alias 'ideograph-daikanwa '=daikanwa)
477 (make-charset '=daikanwa@rev1
478 "Daikanwa dictionary (revised version)"
479 `(long-name "Daikanwa Rev."
485 registry "Daikanwa\\(\\.[0-9]+\\)?-2"
488 (define-charset-alias 'ideograph-daikanwa-2 '=daikanwa@rev1)
489 (define-charset-alias '=daikanwa-rev1 '=daikanwa@rev1)
491 (make-charset '=daikanwa@rev2
492 "Daikanwa dictionary (revised version 2)"
493 `(long-name "Daikanwa"
499 registry "Daikanwa\\(\\.[0-9]+\\)?-3"
504 ;; max-code ,(+ #xE00000 50100)
505 ;; code-offset #xE00000
507 (define-charset-alias '=daikanwa-rev2 '=daikanwa@rev2)
509 (make-charset '=shinjigen
510 "Kadokawa ShinJigen dictionary (common parts)"
511 `(long-name "Shinjigen common parts"
517 registry "Shinjigen\\(\\.[0-9]+\\)?-*"))
519 (make-charset '=shinjigen@1ed
520 "Kadokawa ShinJigen dictionary (the first edition)"
521 `(long-name "Shinjigen-1"
528 registry "Shinjigen\\(\\.[0-9]+\\)?-1"))
529 (define-charset-alias 'shinjigen-1 '=shinjigen@1ed)
531 (make-charset '=shinjigen@1ed/24pr
532 "Kadokawa ShinJigen dictionary (the 24th impression)"
533 `(long-name "Shinjigen-1 24pr"
539 mother =shinjigen@1ed))
541 (make-charset '=shinjigen@rev
542 "Kadokawa ShinJigen dictionary (the revised edition)"
543 `(long-name "Shinjigen-2"
550 registry "Shinjigen\\(\\.[0-9]+\\)?-2"))
551 (define-charset-alias 'shinjigen-2 '=shinjigen@rev)
552 (make-charset '=shinjigen/+p@rev
553 "ShinJigen (the second edition) number with '"
554 `(long-name "Shinjigen-2 with '"
560 (define-charset-alias 'shinjigen-2-p '=shinjigen/+p@rev)
562 (make-charset '=big5-pua
563 "Big5 with private used area"
564 '(long-name "Big5-PUA"
571 registry "Big5\\.ETEN"))
572 (define-charset-alias 'chinese-big5-pua '=big5-pua)
573 (make-charset '=big5-eten
575 '(long-name "Big5-ETEN"
584 registry "Big5\\.ETEN"))
585 (define-charset-alias 'chinese-big5-eten '=big5-eten)
586 (make-charset 'chinese-big5-eten-a
587 "Big5 ETEN (#xF9D6 .. #xF9FE)"
588 '(long-name "Big5-ETEN-a"
597 registry "Big5\\.ETEN"))
598 (make-charset 'chinese-big5-eten-b
599 "Big5 ETEN (#xC6A1 .. #xC8FE)"
600 '(long-name "Big5-ETEN-b"
609 registry "Big5\\.ETEN"))
612 (hzk-min (+ (lsh #x6200 16) 65536))
613 (hzk-max (+ hzk-min 65535)))
616 (intern (format "=hanziku-%d" i))
617 (format "HANZIKU (pseudo BIG5 encoding) part %d" i)
618 `(long-name ,(format "HANZIKU-%d" i)
624 registry ,(format "hanziku-%d$" i i)
627 code-offset ,hzk-min))
628 (define-charset-alias
629 (intern (format "ideograph-hanziku-%d" i))
630 (intern (format "=hanziku-%d" i)))
631 (setq hzk-min (1+ hzk-max)
632 hzk-max (+ hzk-min 65535))
635 (make-charset '=cbeta "CBETA private characters"
636 '(long-name "CBETA PUA"
646 (define-charset-alias 'ideograph-cbeta '=cbeta)
648 (make-charset '=zinbun-oracle
649 "Oracle Bones Script"
650 `(long-name "Oracle Bones Script in Zinbun, Kyoto Univ."
656 max-code ,(+ #xE70000 8192)
661 (make-charset '=jef-china3
662 "JEF + CHINA3 private characters"
663 '(long-name "JEF + CHINA3"
669 registry "china3jef-0"
672 code-offset #xE80000))
673 (define-charset-alias 'china3-jef '=jef-china3)
675 (make-charset '=ruimoku-v6
676 "private characters used in RUIMOKU Version.6"
685 min-code #xE90000 ; #xE000
686 max-code #xE908FF ; #xE8FF
687 code-offset ,(- #xE90000 #xE000)))
689 (make-charset '=ucs@iso
690 "ISO/IEC 10646 for its representative glyphs"
691 '(long-name "UCS for ISO"
699 (make-charset '=ucs@unicode
700 "Unicode for its representative glyphs"
701 '(long-name "UCS for Unicode"
709 (make-charset '=ucs@gb
710 "ISO/IEC 10646 for GB"
711 '(long-name "UCS for GB"
718 mother =ucs@unicode))
719 (define-charset-alias 'ucs-gb '=ucs@gb)
720 (make-charset '=ucs@gb/fw
721 "ISO/IEC 10646 for GB with fullwidth"
722 '(long-name "UCS for GB-fullwidth"
730 (make-charset '=ucs-bmp@gb
731 "ISO/IEC 10646 BMP for GB"
732 '(long-name "BMP for GB"
741 (make-charset '=ucs@cns
742 "ISO/IEC 10646 for CNS 11643"
743 '(long-name "UCS for CNS"
750 mother =ucs@unicode))
751 (define-charset-alias 'ucs-cns '=ucs@cns)
752 (make-charset '=ucs@cns/fw
753 "ISO/IEC 10646 for CNS 11643 with fullwidth"
754 '(long-name "UCS for CNS-fullwidth"
762 (make-charset '=ucs-bmp@cns
763 "ISO/IEC 10646 BMP for CNS"
764 '(long-name "BMP for CNS"
773 (make-charset '=ucs@jis
774 "ISO/IEC 10646 for JIS X0208/0212/0213"
775 '(long-name "UCS for JIS"
782 mother =ucs@unicode))
783 (define-charset-alias 'ucs-jis '=ucs@jis)
784 (make-charset '=ucs@jis/fw
785 "ISO/IEC 10646 for JIS X0208/0212/0213 with fullwidth"
786 '(long-name "UCS for JIS-fullwidth"
794 (make-charset '=ucs-bmp@jis
795 "ISO/IEC 10646 BMP for JIS"
796 '(long-name "BMP for JIS"
805 (make-charset '=ucs@jis/1990
806 "ISO/IEC 10646 for JIS X 0208/0212:1990"
807 '(long-name "UCS for JIS:1990"
815 (define-charset-alias '=ucs@jis-1990 '=ucs@jis/1990)
816 (define-charset-alias '=ucs-jis-1990 '=ucs@jis/1990)
817 (make-charset '=ucs@jis/2000
818 "ISO/IEC 10646 for JIS X 0213:2000"
819 '(long-name "UCS for JIS:2000"
827 (define-charset-alias '=ucs@jis-2000 '=ucs@jis/2000)
828 (define-charset-alias '=ucs-jis-2000 '=ucs@jis/2000)
829 (make-charset '=ucs@jis/2004
830 "ISO/IEC 10646 for JIS X 0213:2004"
831 '(long-name "UCS for JIS:2004"
839 (make-charset '=ucs@JP
840 "UCS for common glyphs used in Japan"
841 '(long-name "UCS for Japan"
848 mother =ucs@jis/2004))
849 (define-charset-alias '=ucs@jp '=ucs@JP)
850 (make-charset '=ucs@ks
851 "ISO/IEC 10646 for Korean Standards"
852 '(long-name "UCS for KS"
859 mother =ucs@unicode))
860 (define-charset-alias 'ucs-ks '=ucs@ks)
861 (make-charset '=ucs-bmp@ks
862 "ISO/IEC 10646 BMP for KS"
863 '(long-name "BMP for KS"
872 (make-charset '=ucs@big5
873 "ISO/IEC 10646 for Big5"
874 '(long-name "UCS for Big5"
881 mother =ucs@unicode))
882 (define-charset-alias 'ucs-big5 '=ucs@big5)
883 (make-charset '=ucs@big5/cns11643
884 "ISO/IEC 10646 for Big5 based on www.cns11643.gov.tw"
885 '(long-name "UCS for Big5@CNS11643"
893 (make-charset '=ucs@cns11643
894 "ISO/IEC 10646 for CNS based on www.cns11643.gov.tw"
895 '(long-name "UCS for CNS11643"
906 "CJK Radicals of UCS"
907 '(long-name "UCS-Radicals"
913 registry "-zhRadicals-.*-ucs-0"
915 min-code #x2E00 max-code #x2FFF))
917 '=ucs-radicals@unicode
918 "CJK Radicals of UCS"
919 '(long-name "UCS-Radicals"
925 registry "-zhRadicals-.*-ucs-0"
927 min-code #x2E00 max-code #x2FFF))
930 "Hangul Syllables of UCS"
931 '(long-name "UCS-Hangul-Syllables"
937 registry "-Hangul-.*-ucs-0"
939 min-code #xAC00 max-code #xD7AF))
942 "CJK Characters in BMP of UCS"
943 '(long-name "UCS-BMP-CJK"
949 registry "-zh-.*-ucs-0"
956 '=ucs-bmp-cjk@unicode
957 "CJK Characters in BMP of Unicode"
958 '(long-name "Unicode-BMP-CJK"
964 registry "-zh-.*-ucs-0"
972 "CJK Ideographs Extension B"
973 '(long-name "UCS CJK Ext-B"
979 registry "\\(iso10646\\|ucs02\\)-2$"
981 min-code #x20000 max-code #x2A6D6
982 code-offset #x20000))
985 "CJK Ideographs Extension B (ISO/IEC 10646-2)"
986 '(long-name "UCS CJK Ext-B"
992 registry "\\(iso10646\\|ucs02\\)-2$"
994 min-code #x20000 max-code #x2A6D6
995 code-offset #x20000))
999 "Adobe-Japan1-0 Character Collection for CID-Keyed Fonts"
1000 '(long-name "Adobe-Japan1-0"
1006 registry "AdobeJapan1-0$"))
1009 "Adobe-Japan1-1 Character Collection for CID-Keyed Fonts"
1010 '(long-name "Adobe-Japan1-1"
1016 mother =adobe-japan1-0
1017 registry "AdobeJapan1-1$"))
1020 "Adobe-Japan1-2 Character Collection for CID-Keyed Fonts"
1021 '(long-name "Adobe-Japan1-2"
1027 mother =adobe-japan1-1
1028 registry "AdobeJapan1-2$"))
1031 "Adobe-Japan1-3 Character Collection for CID-Keyed Fonts"
1032 '(long-name "Adobe-Japan1-3"
1038 mother =adobe-japan1-2
1039 registry "AdobeJapan1-3$"))
1042 "Adobe-Japan1-4 Character Collection for CID-Keyed Fonts"
1043 '(long-name "Adobe-Japan1-4"
1049 mother =adobe-japan1-3
1050 registry "AdobeJapan1-4$"))
1053 "Adobe-Japan1-5 Character Collection for CID-Keyed Fonts"
1054 '(long-name "Adobe-Japan1-5"
1060 mother =adobe-japan1-4
1061 registry "AdobeJapan1-5$"))
1064 "Adobe-Japan1-6 Character Collection for CID-Keyed Fonts"
1065 '(long-name "Adobe-Japan1-6"
1071 mother =adobe-japan1-5
1072 registry "AdobeJapan1-6$"))
1075 ;;; mule-conf.el ends here