(==>ucs-bmp-cjk@bucs): New coded-charset for XEmacs CHISE.
[chise/xemacs-chise.git-] / lisp / mule / mule-conf.el
1 ;;; mule-conf.el --- configure multilingual environment
2
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, 2010 MORIOKA Tomohiko
7
8 ;; Keywords: mule, multilingual, character set, coding system
9
10 ;; This file is part of XEmacs.
11
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)
15 ;; any later version.
16
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.
21
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.
26
27 ;;; Code:
28
29 (cond
30  ((featurep 'utf-2000)
31   (make-charset
32    '=jis-x0208@1978
33    "JIS X 0208:1978, unchanged part."
34    '(registry "jisx0208\\.1978"
35               dimension 2
36               chars 94
37               mother =jis-x0208
38               =>iso-ir 42
39               final ?@
40               graphic 0
41               partial t))
42   (make-charset
43    '=jis-x0208@1978/-4pr
44    "JIS X 0208:1978, 1st - 3rd impressions."
45    '(registry "jisx0208\\.1978"
46               dimension 2
47               chars 94
48               mother =jis-x0208@1978
49               =>iso-ir 42
50               final ?@
51               graphic 0
52               partial t))
53   (make-charset
54    '=jis-x0208@1978/1pr
55    "JIS X 0208:1978, 1st impression."
56    '(iso-ir 42
57             registry "jisx0208\\.1978"
58             dimension 2
59             chars 94
60             mother =jis-x0208@1978/-4pr
61             final ?@
62             graphic 0))
63   (make-charset
64    '=jis-x0208@1978/-4X
65    "JIS X 0208:1978, index before the 4th impression."
66    '(registry "jisx0208\\.1978"
67               dimension 2
68               chars 94
69               mother =jis-x0208@1978
70               =>iso-ir 42
71               ;; final ?@
72               graphic 0
73               partial t))
74   (make-charset
75    '=jis-x0208@1978/1er-pr
76    "JIS X 0208:1978, fixed by errata [Nov 1978]."
77    '(registry "jisx0208\\.1978"
78               dimension 2
79               chars 94
80               mother =jis-x0208@1978
81               =>iso-ir 42
82               ;; final ?@
83               graphic 0
84               partial t))
85   (make-charset
86    '=jis-x0208@1978/2-pr
87    "JIS X 0208:1978, 2nd impression or later."
88    '(registry "jisx0208\\.1978"
89               dimension 2
90               chars 94
91               mother =jis-x0208@1978/1er-pr
92               =>iso-ir 42
93               ;; final ?@
94               graphic 0
95               partial t))
96   (make-charset
97    '=jis-x0208@1978/4er
98    "JIS X 0208:1978, replaced by errata of 4th impression."
99    '(registry "jisx0208\\.1978"
100               dimension 2
101               chars 94
102               mother =jis-x0208@1978/2-pr
103               =>iso-ir 42
104               ;; final ?@
105               graphic 0
106               partial t))
107   (make-charset
108    '=jis-x0208@1978/4-pr
109    "JIS X 0208:1978, 4th impression or later."
110    '(registry "jisx0208\\.1978"
111               dimension 2
112               chars 94
113               mother =jis-x0208@1978/2-pr
114               =>iso-ir 42
115               ;; final ?@
116               graphic 0
117               partial t))
118   (make-charset
119    '=jis-x0208@1978/5pr
120    "JIS X 0208:1978, 5th impression."
121    '(registry "jisx0208\\.1978"
122               dimension 2
123               chars 94
124               mother =jis-x0208@1978/4-pr
125               =>iso-ir 42
126               ;; final ?@
127               graphic 0
128               partial t))
129   (define-charset-alias '=jis-x0208@1978/i1 '=jis-x0208@1978/1pr)
130   (define-charset-alias '=jis-x0208@1978/i-4 '=jis-x0208@1978/-4pr)
131   (define-charset-alias '=jis-x0208@1978/i4- '=jis-x0208@1978/4-pr)
132   )
133  (t
134   (make-charset
135    '=jis-x0208@1978
136    "JIS X0208:1978 Japanese Kanji (so called \"old JIS\")."
137    '(iso-ir 42
138             registry "jisx0208\\.1978"
139             dimension 2
140             chars 94
141             mother =jis-x0208
142             final ?@
143             graphic 0))
144   ))
145
146 (define-charset-alias '=jis-x0208-1978          '=jis-x0208@1978)
147 (define-charset-alias 'japanese-jisx0208-1978   '=jis-x0208@1978)
148 (define-charset-alias 'chinese-gb2312           '=gb2312)
149 (define-charset-alias '=jis-x0208-1983          '=jis-x0208@1983)
150 (define-charset-alias 'japanese-jisx0208        '=jis-x0208@1983)
151 (define-charset-alias 'korean-ksc5601           '=ks-x1001)
152 (define-charset-alias 'japanese-jisx0212        '=jis-x0212)
153 (define-charset-alias 'chinese-cns11643-1       '=cns11643-1)
154 (define-charset-alias 'chinese-cns11643-2       '=cns11643-2)
155 (define-charset-alias 'chinese-gb12345          '=gb12345)
156 (define-charset-alias 'chinese-big5             '=big5)
157
158 ;; PinYin-ZhuYin
159 (make-charset 'sisheng "PinYin-ZhuYin"
160               '(registry "sisheng_cwnn\\|OMRON_UDC_ZH"
161                 dimension 1
162                 chars 94
163                 final ?0
164                 graphic 0
165                 ))
166
167 ;; Lao script.
168 ;; ISO10646's 0x0E80..0x0EDF are mapped to 0x20..0x7F.
169 (make-charset 'lao "Lao script"
170               '(registry "MuleLao-1"
171                 dimension 1
172                 chars 94
173                 final ?1
174                 graphic 1))
175
176 ;; IPA (International Phonetic Alphabet)
177 (make-charset 'ipa "International Phonetic Alphabet"
178               '(registry "MuleIPA"
179                 dimension 1
180                 chars 96
181                 final ?0
182                 graphic 1))
183
184 ;; Ethiopic
185 (make-charset 'ethiopic "Ethiopic"
186               '(registry "Ethio"
187                 dimension 2
188                 chars 94
189                 final ?3
190                 graphic 0
191                 ))
192
193 ;; ISO-IR-165 (CCITT Extended GB)
194 ;;    It is based on CCITT Recommendation T.101, includes GB 2312-80 +
195 ;;    GB 8565-88 table A4 + 293 characters.
196 (if (featurep 'utf-2000)
197     (progn
198       (make-charset '=iso-ir165
199                     "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
200                     '(iso-ir 165
201                              dimension 2
202                              chars 94
203                              mother =gb2312
204                              final ?E
205                              registry "isoir165"
206                              graphic 0))
207       (define-charset-alias 'chinese-isoir165 '=iso-ir165))
208   (make-charset 'chinese-isoir165
209                 "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
210                 '(iso-ir 165
211                          dimension 2
212                          chars 94
213                          final ?E
214                          registry "isoir165"
215                          graphic 0)))
216
217 ;; CNS11643 Plane3 thru Plane7
218 ;; These represent more and more obscure Chinese characters.
219 ;; By the time you get to Plane 7, we're talking about characters
220 ;; that appear once in some ancient manuscript and whose meaning
221 ;; is unknown.
222
223 (flet
224     ((make-chinese-cns11643-charset
225       (name iso-ir plane final)
226       (make-charset
227        name (concat "CNS 11643 Plane " plane " (Chinese traditional)")
228        `(iso-ir ,iso-ir
229          registry 
230          ,(concat "CNS11643[.-]\\(.*[.-]\\)?" plane "$")
231          dimension 2
232          chars 94
233          final ,final
234          graphic 0))
235       ))
236   (make-chinese-cns11643-charset '=cns11643-3 183 "3" ?I)
237   (make-chinese-cns11643-charset '=cns11643-4 184 "4" ?J)
238   (make-chinese-cns11643-charset '=cns11643-5 185 "5" ?K)
239   (make-chinese-cns11643-charset '=cns11643-6 186 "6" ?L)
240   (make-chinese-cns11643-charset '=cns11643-7 187 "7" ?M)
241   (define-charset-alias 'chinese-cns11643-3     '=cns11643-3)
242   (define-charset-alias 'chinese-cns11643-4     '=cns11643-4)
243   (define-charset-alias 'chinese-cns11643-5     '=cns11643-5)
244   (define-charset-alias 'chinese-cns11643-6     '=cns11643-6)
245   (define-charset-alias 'chinese-cns11643-7     '=cns11643-7)
246   )
247
248 ;; JIS X 0213:2000
249 (cond
250  ((featurep 'utf-2000)
251   (make-charset
252    '=jis-x0213-1
253    "JIS X 0213 Plain 1 (unchanged part)"
254    '(registry "jisx0213\\(\\.[0-9]+\\)?-1"
255               dimension 2
256               chars 94
257               =>iso-ir 228
258               final ?O
259               graphic 0
260               partial t))
261
262   (make-charset
263    '=jis-x0213-1@2000
264    "JIS X 0213:2000 Plain 1"
265    '(iso-ir 228
266             registry "jisx0213\\(\\.2000\\)-1"
267             dimension 2
268             chars 94
269             mother =jis-x0213-1
270             final ?O
271             graphic 0))
272   (make-charset
273    '=jis-x0213-2
274    "JIS X 0213 Plain 2"
275    '(iso-ir 229
276             registry "jisx0213\\(\\.\\(2000\\|2004\\)\\)?-2"
277             dimension 2
278             chars 94
279             final ?P
280             graphic 0))
281
282   (make-charset
283    '=jis-x0213-1@2004
284    "JIS X 0213:2004 Plain 1"
285    '(iso-ir 233
286             registry "jisx0213\\(\\.2004\\)-1"
287             dimension 2
288             chars 94
289             mother =jis-x0213-1
290             final ?Q
291             graphic 0))
292
293   (define-charset-alias 'japanese-jisx0213-1 '=jis-x0213-1@2000)
294   (define-charset-alias 'japanese-jisx0213-2 '=jis-x0213-2)
295   (define-charset-alias '=jis-x0213-1-2000 '=jis-x0213-1@2000)
296   (define-charset-alias '=jis-x0213-2-2000 '=jis-x0213-2)
297   )
298  (t
299   (make-charset
300    'japanese-jisx0213-1
301    "JIS X 0213:2000 Plain 1"
302    '(registry "jisx0213\\(\\.2000\\)-1"
303               dimension 2
304               chars 94
305               final ?O
306               graphic 0))
307   (make-charset
308    'japanese-jisx0213-2
309    "JIS X 0213:2000 Plain 2"
310    '(registry "jisx0213\\(\\.2000\\)-2"
311               dimension 2
312               chars 94
313               final ?P
314               graphic 0))
315   ))
316
317 (when (featurep 'utf-2000)
318   (define-charset-alias 'ucs '=ucs)
319   (define-charset-alias '=jis-x0208-1990 '=jis-x0208@1990)
320   (define-charset-alias 'japanese-jisx0208-1990 '=jis-x0208@1990)
321
322   (make-charset
323    '=>>jis-x0208
324    "JIS X 0208 abstract glyphs (unchanged part)."
325    '(registry "jisx0208\\.1990"
326               dimension 2
327               chars 94
328               mother =jis-x0208
329               =>iso-ir 168
330               ;; final ?B
331               graphic 0))
332   (make-charset
333    '=>>jis-x0208@1978
334    "JIS X 0208:1978 abstract glyphs (unchanged part)."
335    '(registry "jisx0208\\.1978"
336               dimension 2
337               chars 94
338               mother =>>jis-x0208
339               =>iso-ir 42
340               ;; final ?@
341               graphic 0))
342
343   (make-charset
344    '=>>jis-x0213-1
345    "JIS X 0213 Plain 1 abstract glyphs (unchanged part)"
346    '(registry "jisx0213\\(\\.[0-9]+\\)?-1"
347               dimension 2
348               chars 94
349               mother =jis-x0213-1
350               =>iso-ir 228
351               ;; final ?O
352               graphic 0
353               ;; partial t
354               ))
355   (make-charset
356    '=>>jis-x0213-1@2000
357    "JIS X 0213:2000 Plain 1 abstract glyphs"
358    '(registry "jisx0213\\(\\.2000\\)-1"
359               dimension 2
360               chars 94
361               mother =>>jis-x0213-1
362               =>iso-ir 228
363               ;; final ?O
364               graphic 0
365               ;; partial t
366               ))
367   (make-charset
368    '=>>jis-x0213-2
369    "JIS X 0213 Plain 2 abstract glyphs"
370    '(registry "jisx0213\\(\\.\\(2000\\|2004\\)\\)?-2"
371               dimension 2
372               chars 94
373               mother =jis-x0213-2
374               =>iso-ir 229
375               ;; final ?P
376               graphic 0))
377   (make-charset
378    '=>>jis-x0213-1@2004
379    "JIS X 0213:2004 Plain 1 abstract glyphs"
380    '(registry "jisx0213\\(\\.2004\\)-1"
381               dimension 2
382               chars 94
383               mother =>>jis-x0213-1
384               =>iso-ir 233
385               ;; final ?Q
386               graphic 0
387               ;; partial t
388               ))
389
390   (make-charset
391    '=>jis-x0208
392    "JIS X 0208 based on the unchanged unification rules."
393    '(registry "jisx0208\\.1990"
394               dimension 2
395               chars 94
396               mother =>>jis-x0208
397               =>iso-ir 168
398               ;; final ?B
399               graphic 0))
400   (define-charset-alias '<=>jis-x0208 '=>jis-x0208)
401   (make-charset
402    '=>jis-x0208@1997
403    "JIS X 0208 based on the unification rule of 1997 edition."
404    '(registry "jisx0208\\.1990"
405               dimension 2
406               chars 94
407               mother =>jis-x0208
408               =>iso-ir 168
409               ;; final ?B
410               graphic 0))
411   (define-charset-alias '<=>jis-x0208@1997 '=>jis-x0208@1997)
412   (define-charset-alias '  =jis-x0208@1997 '=>jis-x0208@1997)
413
414   (make-charset
415    '=>jis-x0213-1
416    "JIS X 0213 Plain 1 abstract characters (unchanged part)"
417    '(registry "jisx0213\\(\\.[0-9]+\\)?-1"
418               dimension 2
419               chars 94
420               mother =>>jis-x0213-1
421               =>iso-ir 228
422               ;; final ?O
423               graphic 0
424               ;; partial t
425               ))
426   (define-charset-alias '<=>jis-x0213-1 '=>jis-x0213-1)
427   (make-charset
428    '=>jis-x0213-1@2000
429    "JIS X 0213:2000 Plain 1 abstract characters"
430    '(registry "jisx0213\\(\\.2000\\)-1"
431               dimension 2
432               chars 94
433               mother =>jis-x0213-1
434               =>iso-ir 228
435               ;; final ?O
436               graphic 0
437               ;; partial t
438               ))
439   (define-charset-alias '<=>jis-x0213-1@2000 '=>jis-x0213-1@2000)
440   (make-charset
441    '=>jis-x0213-1@2004
442    "JIS X 0213:2004 Plain 1 abstract characters"
443    '(registry "jisx0213\\(\\.2004\\)-1"
444               dimension 2
445               chars 94
446               mother =>jis-x0213-1
447               =>iso-ir 233
448               ;; final ?Q
449               graphic 0
450               ;; partial t
451               ))
452   (define-charset-alias '<=>jis-x0213-1@2004 '=>jis-x0213-1@2004)
453   (make-charset
454    '=>jis-x0213-2
455    "JIS X 0213 Plain 2 abstract characters"
456    '(registry "jisx0213\\(\\.\\(2000\\|2004\\)\\)?-2"
457               dimension 2
458               chars 94
459               mother =>>jis-x0213-2
460               =>iso-ir 229
461               ;; final ?P
462               graphic 0))
463
464   (make-charset '=big5-cdp
465                 "Big5 with CDP extension"
466                 '(long-name     "Big5-CDP"
467                   chars         256
468                   dimension     2
469                   columns       2
470                   graphic       2
471                   direction     l2r
472                   registry      "big5\\.cdp-0"
473                   mother        chinese-big5
474                   min-code      #x8140
475                   max-code      #x8DFE))
476   (define-charset-alias 'chinese-big5-cdp '=big5-cdp)
477
478   (make-charset '=>>big5-cdp
479                 "Abstract glyphs of Big5-CDP"
480                 '(long-name     "Big5-CDP glyphs"
481                   chars         256
482                   dimension     2
483                   columns       2
484                   graphic       2
485                   direction     l2r
486                   registry      "big5\\.cdp-0"
487                   mother        =big5-cdp))
488
489   (make-charset '=>big5-cdp
490                 "Big5-CDP abstract characters"
491                 '(long-name     "Big5-CDP abstract characters"
492                   chars         256
493                   dimension     2
494                   columns       2
495                   graphic       2
496                   direction     l2r
497                   registry      "big5\\.cdp-0"
498                   mother        =>>big5-cdp))
499
500   (make-charset '=gt
501                 "GT 2000"
502                 `(long-name     "GT"
503                   chars         256
504                   dimension     3
505                   columns       2
506                   graphic       2
507                   direction     l2r
508                   registry      ""
509                   min-code      ,(lsh #x6100 16)
510                   max-code      ,(+ (lsh #x6100 16) 67547)
511                   code-offset   ,(lsh #x6100 16)))
512   (define-charset-alias 'ideograph-gt '=gt)
513   (make-charset '=>>gt
514                 "GT 2000 abstract glyphs"
515                 '(long-name     "GT abstract glyphs"
516                   chars         256
517                   dimension     3
518                   columns       2
519                   graphic       2
520                   direction     l2r
521                   mother        =gt))
522   (define-charset-alias '<=>gt '=>>gt)
523   (define-charset-alias '<==>gt '=>>gt)
524   (make-charset '=>gt
525                 "GT 2000 abstract characters"
526                 '(long-name     "abstract GT characters"
527                   chars         256
528                   dimension     3
529                   columns       2
530                   graphic       2
531                   direction     l2r
532                   mother        =>>gt))
533   (make-charset '=gt-k
534                 "Ideographic components of GT"
535                 `(long-name     "GT components"
536                   chars         256
537                   dimension     2
538                   columns       2
539                   graphic       2
540                   direction     l2r
541                   registry      ""
542                   min-code      ,(lsh #x6110 16)
543                   max-code      ,(+ (lsh #x6110 16) 17090)
544                   code-offset   ,(lsh #x6110 16)))
545   (define-charset-alias 'ideograph-gt-k '=gt-k)
546   (make-charset '=>>gt-k
547                 "abstract glyphs of GT-K"
548                 '(long-name     "GT-K abstract glyphs"
549                   chars         256
550                   dimension     2
551                   columns       2
552                   graphic       2
553                   direction     l2r
554                   mother        =gt-k))
555   (let ((i 1))
556     (while (<= i 11)
557       (make-charset
558        (intern (format "=gt-pj-%d" i))
559        (format "GT 2000 (pseudo JIS encoding) part %d" i)
560        `(long-name ,(format "GT PJ %d" i)
561                    chars 94
562                    dimension 2
563                    columns 2
564                    graphic 0
565                    direction l2r
566                    registry ,(format "\\(GTpj-%d\\|jisx0208\\.GT-%d\\)$" i i)))
567       (define-charset-alias
568         (intern (format "ideograph-gt-pj-%d" i))
569         (intern (format "=gt-pj-%d" i)))
570       (setq i (1+ i))))
571   (make-charset
572    '=gt-pj-k1
573    "Ideographic parts of GT (pseudo JIS encoding) part 1"
574    '(long-name "GT K1"
575                chars 94
576                dimension 2
577                columns 2
578                graphic 0
579                direction l2r
580                registry "\\(GTKpj-1\\|jisx0208\\.GTK-1\\)$"))
581   (define-charset-alias 'ideograph-gt-pj-k1 '=gt-pj-k1)
582   (make-charset
583    '=gt-pj-k2
584    "Ideographic parts of GT (pseudo JIS encoding) part 2"
585    '(long-name "GT K2"
586                chars 94
587                dimension 2
588                columns 2
589                graphic 0
590                direction l2r
591                registry "\\(GTKpj-2\\|jisx0208\\.GTK-2\\)$"))
592   (define-charset-alias 'ideograph-gt-pj-k2 '=gt-pj-k2)
593
594   (make-charset '=daikanwa
595                 "Daikanwa dictionary (unchanged part)"
596                 `(long-name     "Daikanwa"
597                   chars         256
598                   dimension     2
599                   columns       2
600                   graphic       2
601                   direction     l2r
602                   registry      "Daikanwa\\(\\.[0-9]+\\)?-3"
603                   min-code      #xE00000
604                   max-code      ,(+ #xE00000 50100)
605                   code-offset   #xE00000))
606   (define-charset-alias 'ideograph-daikanwa '=daikanwa)
607
608   (make-charset '=daikanwa@rev1
609                 "Daikanwa dictionary (revised version)"
610                 `(long-name     "Daikanwa Rev."
611                   chars         256
612                   dimension     2
613                   columns       2
614                   graphic       2
615                   direction     l2r
616                   registry      "Daikanwa\\(\\.[0-9]+\\)?-2"
617                   mother        =daikanwa
618                   ))
619   (define-charset-alias 'ideograph-daikanwa-2 '=daikanwa@rev1)
620   (define-charset-alias '=daikanwa-rev1 '=daikanwa@rev1)
621
622   (make-charset '=daikanwa@rev2
623                 "Daikanwa dictionary (revised version 2)"
624                 `(long-name     "Daikanwa"
625                   chars         256
626                   dimension     2
627                   columns       2
628                   graphic       2
629                   direction     l2r
630                   registry      "Daikanwa\\(\\.[0-9]+\\)?-3"
631                   mother        =daikanwa
632                   min-code      1
633                   max-code      49964
634                   ;; min-code   #xE00000
635                   ;; max-code   ,(+ #xE00000 50100)
636                   ;; code-offset        #xE00000
637                   ))
638   (define-charset-alias '=daikanwa-rev2 '=daikanwa@rev2)
639
640   (make-charset '=>daikanwa
641                 "Daikanwa abstract characters"
642                 '(long-name     "abstract Daikanwa"
643                   chars         256
644                   dimension     2
645                   columns       2
646                   graphic       2
647                   direction     l2r
648                   registry      "Daikanwa\\(\\.[0-9]+\\)?-3"
649                   mother        =daikanwa))
650
651   (make-charset '=shinjigen
652                 "Kadokawa ShinJigen dictionary (common parts)"
653                 `(long-name     "Shinjigen common parts"
654                   chars         256
655                   dimension     2
656                   columns       2
657                   graphic       2
658                   direction     l2r
659                   registry      "Shinjigen\\(\\.[0-9]+\\)?-*"))
660
661   (make-charset '=shinjigen@1ed
662                 "Kadokawa ShinJigen dictionary (the first edition)"
663                 `(long-name     "Shinjigen-1"
664                   chars         256
665                   dimension     2
666                   columns       2
667                   graphic       2
668                   direction     l2r
669                   mother        =shinjigen
670                   registry      "Shinjigen\\(\\.[0-9]+\\)?-1"))
671   (define-charset-alias 'shinjigen-1 '=shinjigen@1ed)
672
673   (make-charset '=shinjigen@1ed/24pr
674                 "Kadokawa ShinJigen dictionary (the 24th impression)"
675                 `(long-name     "Shinjigen-1 24pr"
676                   chars         256
677                   dimension     2
678                   columns       2
679                   graphic       2
680                   direction     l2r
681                   mother        =shinjigen@1ed))
682
683   (make-charset '=shinjigen@rev
684                 "Kadokawa ShinJigen dictionary (the revised edition)"
685                 `(long-name     "Shinjigen-2"
686                   chars         256
687                   dimension     2
688                   columns       2
689                   graphic       2
690                   direction     l2r
691                   mother        =shinjigen
692                   registry      "Shinjigen\\(\\.[0-9]+\\)?-2"))
693   (define-charset-alias 'shinjigen-2 '=shinjigen@rev)
694   (make-charset '=shinjigen/+p@rev
695                 "ShinJigen (the second edition) number with '"
696                 `(long-name     "Shinjigen-2 with '"
697                   chars         256
698                   dimension     2
699                   columns       2
700                   graphic       2
701                   direction     l2r))
702   (define-charset-alias 'shinjigen-2-p '=shinjigen/+p@rev)
703
704   (make-charset '=big5-pua
705                 "Big5 with private used area"
706                 '(long-name     "Big5-PUA"
707                   chars         256
708                   dimension     2
709                   columns       2
710                   graphic       2
711                   direction     l2r
712                   mother        chinese-big5
713                   registry      "Big5\\.ETEN"))
714   (define-charset-alias 'chinese-big5-pua '=big5-pua)
715   (make-charset '=big5-eten
716                 "Big5 ETEN"
717                 '(long-name     "Big5-ETEN"
718                   chars         256
719                   dimension     2
720                   columns       2
721                   graphic       2
722                   direction     l2r
723                   mother        chinese-big5
724                   min-code      #x8140
725                   max-code      #xFEFE
726                   registry      "Big5\\.ETEN"))
727   (define-charset-alias 'chinese-big5-eten '=big5-eten)
728   (make-charset 'chinese-big5-eten-a
729                 "Big5 ETEN (#xF9D6 .. #xF9FE)"
730                 '(long-name     "Big5-ETEN-a"
731                   chars         256
732                   dimension     2
733                   columns       2
734                   graphic       2
735                   direction     l2r
736                   mother        chinese-big5
737                   min-code      #xF9D6
738                   max-code      #xF9FE
739                   registry      "Big5\\.ETEN"))
740   (make-charset 'chinese-big5-eten-b
741                 "Big5 ETEN (#xC6A1 .. #xC8FE)"
742                 '(long-name     "Big5-ETEN-b"
743                   chars         256
744                   dimension     2
745                   columns       2
746                   graphic       2
747                   direction     l2r
748                   mother        chinese-big5
749                   min-code      #xC6A1
750                   max-code      #xC8FE
751                   registry      "Big5\\.ETEN"))
752
753   (let* ((i 1)
754          (hzk-min (+ (lsh #x6200 16) 65536))
755          (hzk-max (+ hzk-min 65535)))
756     (while (<= i 12)
757       (make-charset
758        (intern (format "=hanziku-%d" i))
759        (format "HANZIKU (pseudo BIG5 encoding) part %d" i)
760        `(long-name ,(format "HANZIKU-%d" i)
761                    chars 256
762                    dimension 2
763                    columns 2
764                    graphic 2
765                    direction l2r
766                    registry ,(format "hanziku-%d$" i i)
767                    min-code ,hzk-min
768                    max-code ,hzk-max
769                    code-offset ,hzk-min))
770       (define-charset-alias
771         (intern (format "ideograph-hanziku-%d" i))
772         (intern (format "=hanziku-%d" i)))
773       (setq hzk-min (1+ hzk-max)
774             hzk-max (+ hzk-min 65535))
775       (setq i (1+ i))))
776
777   (make-charset '=cbeta "CBETA private characters"
778                 '(long-name     "CBETA PUA"
779                   chars         256
780                   dimension     2
781                   registry      "cbeta-0"
782                   graphic       2
783                   min-code      #xE20000
784                   max-code      #xE2FFFF
785                   code-offset   #xE20000
786                   columns       2
787                   direction     l2r))
788   (define-charset-alias 'ideograph-cbeta '=cbeta)
789
790   (make-charset '=zinbun-oracle
791                 "Oracle Bones Script"
792                 `(long-name     "Oracle Bones Script in Zinbun, Kyoto Univ."
793                   chars         256
794                   dimension     2
795                   registry      "zob1968-0"
796                   graphic       2
797                   min-code      #xE70000
798                   max-code      ,(+ #xE70000 8192)
799                   code-offset   #xE70000
800                   columns       2
801                   direction     l2r))
802
803   (make-charset '=>zinbun-oracle
804                 "Abstract Oracle Bones"
805                 '(long-name     "Abstract characters of Zinbun Oracle Bones."
806                   chars         256
807                   dimension     2
808                   mother        =zinbun-oracle
809                   registry      "zob1968-0"
810                   graphic       2
811                   columns       2
812                   direction     l2r))
813
814   (make-charset '=jef-china3
815                 "JEF + CHINA3 private characters"
816                 '(long-name     "JEF + CHINA3"
817                   chars         256
818                   dimension     2
819                   columns       2
820                   graphic       2
821                   direction     l2r
822                   registry      "china3jef-0"
823                   min-code      #xE80000
824                   max-code      #xE8FFFF
825                   code-offset   #xE80000))
826   (define-charset-alias 'china3-jef '=jef-china3)
827
828   (make-charset '=ruimoku-v6
829                 "private characters used in RUIMOKU Version.6"
830                 `(long-name     "RUI6"
831                   chars         256
832                   dimension     2
833                   columns       2
834                   graphic       2
835                   direction     l2r
836                   registry      "rui6-0"
837                   ;; mother     ucs
838                   min-code      #xE90000 ; #xE000
839                   max-code      #xE908FF ; #xE8FF
840                   code-offset   ,(- #xE90000 #xE000)))
841
842   (make-charset '==>ucs@bucs
843                 "Basic Subset of Coded Character Sets (BUCS)"
844                 '(long-name     "BUCS abstract characters"
845                   chars         256
846                   dimension     3
847                   columns       2
848                   graphic       2
849                   direction     l2r
850                   =>iso-ir      177
851                   mother        =ucs))
852
853   (make-charset '=>ucs@iso
854                 "Abstract characters of ISO/IEC 10646 representatives"
855                 '(long-name     "UCS characters for ISO"
856                   chars         256
857                   dimension     3
858                   columns       2
859                   graphic       2
860                   direction     l2r
861                   =>iso-ir      177
862                   mother        =ucs))
863   (make-charset '=>ucs@unicode
864                 "Abstract characters of Unicode representatives"
865                 '(long-name     "UCS characters for Unicode"
866                   chars         256
867                   dimension     3
868                   columns       2
869                   graphic       2
870                   direction     l2r
871                   =>iso-ir      177
872                   mother        =>ucs@iso))
873
874   (make-charset '=>>ucs@iso
875                 "Representative abstract glyphs of ISO/IEC 10646"
876                 '(long-name     "UCS glyphs for UCS"
877                   chars         256
878                   dimension     3
879                   columns       2
880                   graphic       2
881                   direction     l2r
882                   =>iso-ir      177
883                   mother        =>ucs@iso))
884   (make-charset '=>>ucs@unicode
885                 "Representative abstract glyphs of Unicode"
886                 '(long-name     "Unicode abstract glyphs"
887                   chars         256
888                   dimension     3
889                   columns       2
890                   graphic       2
891                   direction     l2r
892                   =>iso-ir      177
893                   mother        =>>ucs@iso))
894   (make-charset '=>>ucs@jis
895                 "UCS Representative glyphs for JIS X0208/0212/0213"
896                 '(long-name     "UCS glyphs for JIS"
897                   chars         256
898                   dimension     3
899                   columns       2
900                   graphic       2
901                   direction     l2r
902                   =>iso-ir      177
903                   mother        =>>ucs@unicode))
904   (make-charset '=>>ucs@jis/1990
905                 "UCS Representative glyphs for JIS X 0208/0212:1990"
906                 '(long-name     "UCS glyphs for JIS:1990"
907                   chars         256
908                   dimension     3
909                   columns       2
910                   graphic       2
911                   direction     l2r
912                   =>iso-ir      177
913                   mother        =>>ucs@jis))
914   (make-charset '=>>ucs@jis/2000
915                 "UCS Representative glyphs for JIS X 0213:2000"
916                 '(long-name     "UCS glyphs for JIS:2000"
917                   chars         256
918                   dimension     3
919                   columns       2
920                   graphic       2
921                   direction     l2r
922                   =>iso-ir      177
923                   mother        =>>ucs@jis))
924   (make-charset '=>>ucs@jis/2004
925                 "UCS Representative glyphs for JIS X 0213:2004"
926                 '(long-name     "UCS glyphs for JIS:2004"
927                   chars         256
928                   dimension     3
929                   columns       2
930                   graphic       2
931                   direction     l2r
932                   =>iso-ir      177
933                   mother        =>>ucs@jis))
934   (make-charset '=>>ucs@cns
935                 "UCS Representative glyphs for CNS 11643 sources"
936                 '(long-name     "UCS glyphs for CNS"
937                   chars         256
938                   dimension     3
939                   columns       2
940                   graphic       2
941                   direction     l2r
942                   =>iso-ir      177
943                   mother        =>>ucs@unicode))
944
945   (make-charset '=ucs@iso
946                 "ISO/IEC 10646 for its representative glyphs"
947                 '(long-name     "UCS for ISO"
948                   chars         256
949                   dimension     3
950                   columns       2
951                   graphic       2
952                   direction     l2r
953                   =>iso-ir      177
954                   mother        =>>ucs@iso))
955   (make-charset '=ucs@unicode
956                 "Unicode for its representative glyphs"
957                 '(long-name     "UCS for Unicode"
958                   chars         256
959                   dimension     3
960                   columns       2
961                   graphic       2
962                   direction     l2r
963                   =>iso-ir      177
964                   mother        =ucs@iso))
965   (make-charset '=ucs@gb
966                 "ISO/IEC 10646 for GB"
967                 '(long-name     "UCS for GB"
968                   chars         256
969                   dimension     3
970                   columns       2
971                   graphic       2
972                   direction     l2r
973                   =>iso-ir      177
974                   mother        =ucs@unicode))
975   (define-charset-alias 'ucs-gb '=ucs@gb)
976   (make-charset '=ucs@gb/fw
977                 "ISO/IEC 10646 for GB with fullwidth"
978                 '(long-name     "UCS for GB-fullwidth"
979                   chars         256
980                   dimension     3
981                   columns       2
982                   graphic       2
983                   direction     l2r
984                   =>iso-ir      177
985                   mother        =ucs@gb))
986   (make-charset '=ucs-bmp@gb
987                 "ISO/IEC 10646 BMP for GB"
988                 '(long-name     "BMP for GB"
989                   chars         256
990                   dimension     3
991                   columns       2
992                   graphic       2
993                   direction     l2r
994                   mother        =ucs@gb
995                   min-code      #x0000
996                   max-code      #xFFFF))
997   (make-charset '=ucs@cns
998                 "ISO/IEC 10646 for CNS 11643"
999                 '(long-name     "UCS for CNS"
1000                   chars         256
1001                   dimension     3
1002                   columns       2
1003                   graphic       2
1004                   direction     l2r
1005                   =>iso-ir      177
1006                   mother        =ucs@unicode))
1007   (define-charset-alias 'ucs-cns '=ucs@cns)
1008   (make-charset '=ucs@cns/fw
1009                 "ISO/IEC 10646 for CNS 11643 with fullwidth"
1010                 '(long-name     "UCS for CNS-fullwidth"
1011                   chars         256
1012                   dimension     3
1013                   columns       2
1014                   graphic       2
1015                   direction     l2r
1016                   =>iso-ir      177
1017                   mother        =ucs@cns))
1018   (make-charset '=ucs-bmp@cns
1019                 "ISO/IEC 10646 BMP for CNS"
1020                 '(long-name     "BMP for CNS"
1021                   chars         256
1022                   dimension     3
1023                   columns       2
1024                   graphic       2
1025                   direction     l2r
1026                   mother        =ucs@cns
1027                   min-code      #x0000
1028                   max-code      #xFFFF))
1029   (make-charset '=ucs@jis
1030                 "ISO/IEC 10646 for JIS X0208/0212/0213"
1031                 '(long-name     "UCS for JIS"
1032                   chars         256
1033                   dimension     3
1034                   columns       2
1035                   graphic       2
1036                   direction     l2r
1037                   =>iso-ir      177
1038                   mother        =ucs@unicode))
1039   (define-charset-alias 'ucs-jis '=ucs@jis)
1040   (make-charset '=ucs@jis/fw
1041                 "ISO/IEC 10646 for JIS X0208/0212/0213 with fullwidth"
1042                 '(long-name     "UCS for JIS-fullwidth"
1043                   chars         256
1044                   dimension     3
1045                   columns       2
1046                   graphic       2
1047                   direction     l2r
1048                   =>iso-ir      177
1049                   mother        =ucs@jis))
1050   (make-charset '=ucs-bmp@jis
1051                 "ISO/IEC 10646 BMP for JIS"
1052                 '(long-name     "BMP for JIS"
1053                   chars         256
1054                   dimension     3
1055                   columns       2
1056                   graphic       2
1057                   direction     l2r
1058                   mother        =ucs@jis
1059                   min-code      #x0000
1060                   max-code      #xFFFF))
1061   (make-charset '=ucs@jis/1990
1062                 "ISO/IEC 10646 for JIS X 0208/0212:1990"
1063                 '(long-name     "UCS for JIS:1990"
1064                   chars         256
1065                   dimension     3
1066                   columns       2
1067                   graphic       2
1068                   direction     l2r
1069                   =>iso-ir      177
1070                   mother        =ucs@jis))
1071   (define-charset-alias '=ucs@jis-1990 '=ucs@jis/1990)
1072   (define-charset-alias '=ucs-jis-1990 '=ucs@jis/1990)
1073   (make-charset '=ucs@jis/2000
1074                 "ISO/IEC 10646 for JIS X 0213:2000"
1075                 '(long-name     "UCS for JIS:2000"
1076                   chars         256
1077                   dimension     3
1078                   columns       2
1079                   graphic       2
1080                   direction     l2r
1081                   =>iso-ir      177
1082                   mother        =ucs@jis))
1083   (define-charset-alias '=ucs@jis-2000 '=ucs@jis/2000)
1084   (define-charset-alias '=ucs-jis-2000 '=ucs@jis/2000)
1085   (make-charset '=ucs@jis/2004
1086                 "ISO/IEC 10646 for JIS X 0213:2004"
1087                 '(long-name     "UCS for JIS:2004"
1088                   chars         256
1089                   dimension     3
1090                   columns       2
1091                   graphic       2
1092                   direction     l2r
1093                   =>iso-ir      177
1094                   mother        =ucs@jis))
1095   (make-charset '=ucs@JP
1096                 "UCS for common glyphs used in Japan"
1097                 '(long-name     "UCS for Japan"
1098                   chars         256
1099                   dimension     3
1100                   columns       2
1101                   graphic       2
1102                   direction     l2r
1103                   =>iso-ir      177
1104                   mother        =ucs@jis/2004))
1105   (define-charset-alias '=ucs@jp '=ucs@JP)
1106   (make-charset '=ucs@ks
1107                 "ISO/IEC 10646 for Korean Standards"
1108                 '(long-name     "UCS for KS"
1109                   chars         256
1110                   dimension     3
1111                   columns       2
1112                   graphic       2
1113                   direction     l2r
1114                   =>iso-ir      177
1115                   mother        =ucs@unicode))
1116   (define-charset-alias 'ucs-ks '=ucs@ks)
1117   (make-charset '=ucs-bmp@ks
1118                 "ISO/IEC 10646 BMP for KS"
1119                 '(long-name     "BMP for KS"
1120                   chars         256
1121                   dimension     3
1122                   columns       2
1123                   graphic       2
1124                   direction     l2r
1125                   mother        =ucs@ks
1126                   min-code      #x0000
1127                   max-code      #xFFFF))
1128   (make-charset '=ucs@cns11643
1129                 "ISO/IEC 10646 for CNS based on www.cns11643.gov.tw"
1130                 '(long-name     "UCS for CNS11643"
1131                   chars         256
1132                   dimension     3
1133                   columns       2
1134                   graphic       2
1135                   direction     l2r
1136                   =>iso-ir      177
1137                   mother        =ucs@cns))
1138   (make-charset '=ucs@big5
1139                 "ISO/IEC 10646 for Big5"
1140                 '(long-name     "UCS for Big5"
1141                   chars         256
1142                   dimension     3
1143                   columns       2
1144                   graphic       2
1145                   direction     l2r
1146                   =>iso-ir      177
1147                   mother        =>>ucs@unicode))
1148   (define-charset-alias 'ucs-big5 '=ucs@big5)
1149   (make-charset '=ucs@big5/cns11643
1150                 "ISO/IEC 10646 for Big5 based on www.cns11643.gov.tw"
1151                 '(long-name     "UCS for Big5@CNS11643"
1152                   chars         256
1153                   dimension     3
1154                   columns       2
1155                   graphic       2
1156                   direction     l2r
1157                   =>iso-ir      177
1158                   mother        =ucs@big5))
1159
1160   (make-charset
1161    '=ucs-radicals
1162    "CJK Radicals of UCS"
1163    '(long-name "UCS-Radicals"
1164                chars 256
1165                dimension 2
1166                columns 2
1167                graphic 2
1168                direction l2r
1169                registry "-zhRadicals-.*-ucs-0"
1170                mother ucs-bmp
1171                min-code #x2E00 max-code #x2FFF))
1172   (make-charset
1173    '=ucs-radicals@unicode
1174    "CJK Radicals of UCS"
1175    '(long-name "UCS-Radicals"
1176                chars 256
1177                dimension 2
1178                columns 2
1179                graphic 2
1180                direction l2r
1181                registry "-zhRadicals-.*-ucs-0"
1182                mother =ucs@unicode
1183                min-code #x2E00 max-code #x2FFF))
1184   (make-charset
1185    '=ucs-hangul
1186    "Hangul Syllables of UCS"
1187    '(long-name "UCS-Hangul-Syllables"
1188                chars 256
1189                dimension 2
1190                columns 2
1191                graphic 2
1192                direction l2r
1193                registry "-Hangul-.*-ucs-0"
1194                mother =ucs
1195                min-code #xAC00 max-code #xD7AF))
1196   (make-charset
1197    '=ucs-bmp-cjk
1198    "CJK Characters in BMP of UCS"
1199    '(long-name "UCS-BMP-CJK"
1200                chars 256
1201                dimension 2
1202                columns 2
1203                graphic 2
1204                direction l2r
1205                registry "-zh-.*-ucs-0"
1206                mother ucs-bmp
1207                min-code #x2E00
1208                max-code #x9FA5
1209                ;; max-code #xA4CF
1210                ))
1211   (make-charset
1212    '=ucs-bmp-cjk@unicode
1213    "CJK Characters in BMP of Unicode"
1214    '(long-name "Unicode-BMP-CJK"
1215                chars 256
1216                dimension 2
1217                columns 2
1218                graphic 2
1219                direction l2r
1220                registry "-zh-.*-ucs-0"
1221                mother =ucs@unicode
1222                min-code #x2E00
1223                max-code #x9FA5
1224                ;; max-code #xA4CF
1225                ))
1226   (make-charset
1227    '==>ucs-bmp-cjk@bucs
1228    "CJK Characters in BMP of BUCS"
1229    '(long-name "BUCS-BMP-CJK"
1230                chars 256
1231                dimension 2
1232                columns 2
1233                graphic 2
1234                direction l2r
1235                registry "-zh-.*-ucs-0"
1236                mother ==>ucs@bucs
1237                min-code #x2E00
1238                max-code #x9FA5
1239                ;; max-code #xA4CF
1240                ))
1241   (make-charset
1242    '=ucs-sip-ext-b
1243    "CJK Ideographs Extension B"
1244    '(long-name "UCS CJK Ext-B"
1245                chars 256
1246                dimension 2
1247                columns 2
1248                graphic 2
1249                direction l2r
1250                registry "\\(iso10646\\|ucs02\\)-2$"
1251                mother ucs
1252                min-code #x20000 max-code #x2A6D6
1253                code-offset #x20000))
1254   (make-charset
1255    '=ucs-sip-ext-b@iso
1256    "CJK Ideographs Extension B (ISO/IEC 10646-2)"
1257    '(long-name "UCS CJK Ext-B"
1258                chars 256
1259                dimension 2
1260                columns 2
1261                graphic 2
1262                direction l2r
1263                registry "\\(iso10646\\|ucs02\\)-2$"
1264                mother =ucs@iso
1265                min-code #x20000 max-code #x2A6D6
1266                code-offset #x20000))
1267
1268   (make-charset
1269    '=adobe-japan1-base
1270    "Adobe-Japan1 Character Collection for CID-Keyed Fonts"
1271    `(long-name "Adobe-Japan1"
1272                chars 256
1273                dimension 2
1274                columns 2
1275                graphic 2
1276                direction l2r
1277                registry "AdobeJapan1-[0-6]$"
1278                min-code ,(lsh #x6300 16)
1279                max-code ,(+ (lsh #x6300 16) 23057)
1280                code-offset      ,(lsh #x6300 16)))
1281   (make-charset
1282    '=adobe-japan1-0
1283    "Adobe-Japan1-0 Character Collection for CID-Keyed Fonts"
1284    '(long-name "Adobe-Japan1-0"
1285                chars 256
1286                dimension 2
1287                columns 2
1288                graphic 2
1289                direction l2r
1290                mother =adobe-japan1-base
1291                min-code 0
1292                max-code 8283
1293                registry "AdobeJapan1-0$"))
1294   (make-charset
1295    '=adobe-japan1-1
1296    "Adobe-Japan1-1 Character Collection for CID-Keyed Fonts"
1297    '(long-name "Adobe-Japan1-1"
1298                chars 256
1299                dimension 2
1300                columns 2
1301                graphic 2
1302                direction l2r
1303                mother =adobe-japan1-0
1304                min-code 0
1305                max-code 8358
1306                registry "AdobeJapan1-1$"))
1307   (make-charset
1308    '=adobe-japan1-2
1309    "Adobe-Japan1-2 Character Collection for CID-Keyed Fonts"
1310    '(long-name "Adobe-Japan1-2"
1311                chars 256
1312                dimension 2
1313                columns 2
1314                graphic 2
1315                direction l2r
1316                mother =adobe-japan1-1
1317                min-code 0
1318                max-code 8719
1319                registry "AdobeJapan1-2$"))
1320   (make-charset
1321    '=adobe-japan1-3
1322    "Adobe-Japan1-3 Character Collection for CID-Keyed Fonts"
1323    '(long-name "Adobe-Japan1-3"
1324                chars 256
1325                dimension 2
1326                columns 2
1327                graphic 2
1328                direction l2r
1329                mother =adobe-japan1-2
1330                min-code 0
1331                max-code 9353
1332                registry "AdobeJapan1-3$"))
1333   (make-charset
1334    '=adobe-japan1-4
1335    "Adobe-Japan1-4 Character Collection for CID-Keyed Fonts"
1336    '(long-name "Adobe-Japan1-4"
1337                chars 256
1338                dimension 2
1339                columns 2
1340                graphic 2
1341                direction l2r
1342                mother =adobe-japan1-3
1343                min-code 0
1344                max-code 15443
1345                registry "AdobeJapan1-4$"))
1346   (make-charset
1347    '=adobe-japan1-5
1348    "Adobe-Japan1-5 Character Collection for CID-Keyed Fonts"
1349    '(long-name "Adobe-Japan1-5"
1350                chars 256
1351                dimension 2
1352                columns 2
1353                graphic 2
1354                direction l2r
1355                mother =adobe-japan1-4
1356                min-code 0
1357                max-code 20316
1358                registry "AdobeJapan1-5$"))
1359   (make-charset
1360    '=adobe-japan1-6
1361    "Adobe-Japan1-6 Character Collection for CID-Keyed Fonts"
1362    '(long-name "Adobe-Japan1-6"
1363                chars 256
1364                dimension 2
1365                columns 2
1366                graphic 2
1367                direction l2r
1368                mother =adobe-japan1-5
1369                min-code 0
1370                max-code 23057
1371                registry "AdobeJapan1-6$"))
1372   )
1373
1374 ;;; mule-conf.el ends here