fc6c5c8396a3b25488b2a676083ae93ddeeea388
[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 (revised version 2)"
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 '=shinjigen
641                 "Kadokawa ShinJigen dictionary (common parts)"
642                 `(long-name     "Shinjigen common parts"
643                   chars         256
644                   dimension     2
645                   columns       2
646                   graphic       2
647                   direction     l2r
648                   registry      "Shinjigen\\(\\.[0-9]+\\)?-*"))
649
650   (make-charset '=shinjigen@1ed
651                 "Kadokawa ShinJigen dictionary (the first edition)"
652                 `(long-name     "Shinjigen-1"
653                   chars         256
654                   dimension     2
655                   columns       2
656                   graphic       2
657                   direction     l2r
658                   mother        =shinjigen
659                   registry      "Shinjigen\\(\\.[0-9]+\\)?-1"))
660   (define-charset-alias 'shinjigen-1 '=shinjigen@1ed)
661
662   (make-charset '=shinjigen@1ed/24pr
663                 "Kadokawa ShinJigen dictionary (the 24th impression)"
664                 `(long-name     "Shinjigen-1 24pr"
665                   chars         256
666                   dimension     2
667                   columns       2
668                   graphic       2
669                   direction     l2r
670                   mother        =shinjigen@1ed))
671
672   (make-charset '=shinjigen@rev
673                 "Kadokawa ShinJigen dictionary (the revised edition)"
674                 `(long-name     "Shinjigen-2"
675                   chars         256
676                   dimension     2
677                   columns       2
678                   graphic       2
679                   direction     l2r
680                   mother        =shinjigen
681                   registry      "Shinjigen\\(\\.[0-9]+\\)?-2"))
682   (define-charset-alias 'shinjigen-2 '=shinjigen@rev)
683   (make-charset '=shinjigen/+p@rev
684                 "ShinJigen (the second edition) number with '"
685                 `(long-name     "Shinjigen-2 with '"
686                   chars         256
687                   dimension     2
688                   columns       2
689                   graphic       2
690                   direction     l2r))
691   (define-charset-alias 'shinjigen-2-p '=shinjigen/+p@rev)
692
693   (make-charset '=big5-pua
694                 "Big5 with private used area"
695                 '(long-name     "Big5-PUA"
696                   chars         256
697                   dimension     2
698                   columns       2
699                   graphic       2
700                   direction     l2r
701                   mother        chinese-big5
702                   registry      "Big5\\.ETEN"))
703   (define-charset-alias 'chinese-big5-pua '=big5-pua)
704   (make-charset '=big5-eten
705                 "Big5 ETEN"
706                 '(long-name     "Big5-ETEN"
707                   chars         256
708                   dimension     2
709                   columns       2
710                   graphic       2
711                   direction     l2r
712                   mother        chinese-big5
713                   min-code      #x8140
714                   max-code      #xFEFE
715                   registry      "Big5\\.ETEN"))
716   (define-charset-alias 'chinese-big5-eten '=big5-eten)
717   (make-charset 'chinese-big5-eten-a
718                 "Big5 ETEN (#xF9D6 .. #xF9FE)"
719                 '(long-name     "Big5-ETEN-a"
720                   chars         256
721                   dimension     2
722                   columns       2
723                   graphic       2
724                   direction     l2r
725                   mother        chinese-big5
726                   min-code      #xF9D6
727                   max-code      #xF9FE
728                   registry      "Big5\\.ETEN"))
729   (make-charset 'chinese-big5-eten-b
730                 "Big5 ETEN (#xC6A1 .. #xC8FE)"
731                 '(long-name     "Big5-ETEN-b"
732                   chars         256
733                   dimension     2
734                   columns       2
735                   graphic       2
736                   direction     l2r
737                   mother        chinese-big5
738                   min-code      #xC6A1
739                   max-code      #xC8FE
740                   registry      "Big5\\.ETEN"))
741
742   (let* ((i 1)
743          (hzk-min (+ (lsh #x6200 16) 65536))
744          (hzk-max (+ hzk-min 65535)))
745     (while (<= i 12)
746       (make-charset
747        (intern (format "=hanziku-%d" i))
748        (format "HANZIKU (pseudo BIG5 encoding) part %d" i)
749        `(long-name ,(format "HANZIKU-%d" i)
750                    chars 256
751                    dimension 2
752                    columns 2
753                    graphic 2
754                    direction l2r
755                    registry ,(format "hanziku-%d$" i i)
756                    min-code ,hzk-min
757                    max-code ,hzk-max
758                    code-offset ,hzk-min))
759       (define-charset-alias
760         (intern (format "ideograph-hanziku-%d" i))
761         (intern (format "=hanziku-%d" i)))
762       (setq hzk-min (1+ hzk-max)
763             hzk-max (+ hzk-min 65535))
764       (setq i (1+ i))))
765
766   (make-charset '=cbeta "CBETA private characters"
767                 '(long-name     "CBETA PUA"
768                   chars         256
769                   dimension     2
770                   registry      "cbeta-0"
771                   graphic       2
772                   min-code      #xE20000
773                   max-code      #xE2FFFF
774                   code-offset   #xE20000
775                   columns       2
776                   direction     l2r))
777   (define-charset-alias 'ideograph-cbeta '=cbeta)
778
779   (make-charset '=zinbun-oracle
780                 "Oracle Bones Script"
781                 `(long-name     "Oracle Bones Script in Zinbun, Kyoto Univ."
782                   chars         256
783                   dimension     2
784                   registry      "zob1968-0"
785                   graphic       2
786                   min-code      #xE70000
787                   max-code      ,(+ #xE70000 8192)
788                   code-offset   #xE70000
789                   columns       2
790                   direction     l2r))
791
792   (make-charset '=>zinbun-oracle
793                 "Abstract Oracle Bones"
794                 '(long-name     "Abstract characters of Zinbun Oracle Bones."
795                   chars         256
796                   dimension     2
797                   mother        =zinbun-oracle
798                   registry      "zob1968-0"
799                   graphic       2
800                   columns       2
801                   direction     l2r))
802
803   (make-charset '=jef-china3
804                 "JEF + CHINA3 private characters"
805                 '(long-name     "JEF + CHINA3"
806                   chars         256
807                   dimension     2
808                   columns       2
809                   graphic       2
810                   direction     l2r
811                   registry      "china3jef-0"
812                   min-code      #xE80000
813                   max-code      #xE8FFFF
814                   code-offset   #xE80000))
815   (define-charset-alias 'china3-jef '=jef-china3)
816
817   (make-charset '=ruimoku-v6
818                 "private characters used in RUIMOKU Version.6"
819                 `(long-name     "RUI6"
820                   chars         256
821                   dimension     2
822                   columns       2
823                   graphic       2
824                   direction     l2r
825                   registry      "rui6-0"
826                   ;; mother     ucs
827                   min-code      #xE90000 ; #xE000
828                   max-code      #xE908FF ; #xE8FF
829                   code-offset   ,(- #xE90000 #xE000)))
830
831   (make-charset '=>>ucs@iso
832                 "Representative abstract glyphs of ISO/IEC 10646"
833                 '(long-name     "UCS glyphs for UCS"
834                   chars         256
835                   dimension     3
836                   columns       2
837                   graphic       2
838                   direction     l2r
839                   =>iso-ir      177
840                   mother        =ucs))
841   (make-charset '=>>ucs@unicode
842                 "Representative abstract glyphs of Unicode"
843                 '(long-name     "Unicode abstract glyphs"
844                   chars         256
845                   dimension     3
846                   columns       2
847                   graphic       2
848                   direction     l2r
849                   =>iso-ir      177
850                   mother        =>>ucs@iso))
851   (make-charset '=>>ucs@jis
852                 "UCS Representative glyphs for JIS X0208/0212/0213"
853                 '(long-name     "UCS glyphs for JIS"
854                   chars         256
855                   dimension     3
856                   columns       2
857                   graphic       2
858                   direction     l2r
859                   =>iso-ir      177
860                   mother        =>>ucs@unicode))
861   (make-charset '=>>ucs@jis/1990
862                 "UCS Representative glyphs for JIS X 0208/0212:1990"
863                 '(long-name     "UCS glyphs for JIS:1990"
864                   chars         256
865                   dimension     3
866                   columns       2
867                   graphic       2
868                   direction     l2r
869                   =>iso-ir      177
870                   mother        =>>ucs@jis))
871   (make-charset '=>>ucs@jis/2000
872                 "UCS Representative glyphs for JIS X 0213:2000"
873                 '(long-name     "UCS glyphs for JIS:2000"
874                   chars         256
875                   dimension     3
876                   columns       2
877                   graphic       2
878                   direction     l2r
879                   =>iso-ir      177
880                   mother        =>>ucs@jis))
881   (make-charset '=>>ucs@jis/2004
882                 "UCS Representative glyphs for JIS X 0213:2004"
883                 '(long-name     "UCS glyphs for JIS:2004"
884                   chars         256
885                   dimension     3
886                   columns       2
887                   graphic       2
888                   direction     l2r
889                   =>iso-ir      177
890                   mother        =>>ucs@jis))
891   (make-charset '=>>ucs@cns
892                 "UCS Representative glyphs for CNS 11643 sources"
893                 '(long-name     "UCS glyphs for CNS"
894                   chars         256
895                   dimension     3
896                   columns       2
897                   graphic       2
898                   direction     l2r
899                   =>iso-ir      177
900                   mother        =>>ucs@unicode))
901
902   (make-charset '=ucs@iso
903                 "ISO/IEC 10646 for its representative glyphs"
904                 '(long-name     "UCS for ISO"
905                   chars         256
906                   dimension     3
907                   columns       2
908                   graphic       2
909                   direction     l2r
910                   =>iso-ir      177
911                   mother        =>>ucs@iso))
912   (make-charset '=ucs@unicode
913                 "Unicode for its representative glyphs"
914                 '(long-name     "UCS for Unicode"
915                   chars         256
916                   dimension     3
917                   columns       2
918                   graphic       2
919                   direction     l2r
920                   =>iso-ir      177
921                   mother        =ucs@iso))
922   (make-charset '=ucs@gb
923                 "ISO/IEC 10646 for GB"
924                 '(long-name     "UCS for GB"
925                   chars         256
926                   dimension     3
927                   columns       2
928                   graphic       2
929                   direction     l2r
930                   =>iso-ir      177
931                   mother        =ucs@unicode))
932   (define-charset-alias 'ucs-gb '=ucs@gb)
933   (make-charset '=ucs@gb/fw
934                 "ISO/IEC 10646 for GB with fullwidth"
935                 '(long-name     "UCS for GB-fullwidth"
936                   chars         256
937                   dimension     3
938                   columns       2
939                   graphic       2
940                   direction     l2r
941                   =>iso-ir      177
942                   mother        =ucs@gb))
943   (make-charset '=ucs-bmp@gb
944                 "ISO/IEC 10646 BMP for GB"
945                 '(long-name     "BMP for GB"
946                   chars         256
947                   dimension     3
948                   columns       2
949                   graphic       2
950                   direction     l2r
951                   mother        =ucs@gb
952                   min-code      #x0000
953                   max-code      #xFFFF))
954   (make-charset '=ucs@cns
955                 "ISO/IEC 10646 for CNS 11643"
956                 '(long-name     "UCS for CNS"
957                   chars         256
958                   dimension     3
959                   columns       2
960                   graphic       2
961                   direction     l2r
962                   =>iso-ir      177
963                   mother        =ucs@unicode))
964   (define-charset-alias 'ucs-cns '=ucs@cns)
965   (make-charset '=ucs@cns/fw
966                 "ISO/IEC 10646 for CNS 11643 with fullwidth"
967                 '(long-name     "UCS for CNS-fullwidth"
968                   chars         256
969                   dimension     3
970                   columns       2
971                   graphic       2
972                   direction     l2r
973                   =>iso-ir      177
974                   mother        =ucs@cns))
975   (make-charset '=ucs-bmp@cns
976                 "ISO/IEC 10646 BMP for CNS"
977                 '(long-name     "BMP for CNS"
978                   chars         256
979                   dimension     3
980                   columns       2
981                   graphic       2
982                   direction     l2r
983                   mother        =ucs@cns
984                   min-code      #x0000
985                   max-code      #xFFFF))
986   (make-charset '=ucs@jis
987                 "ISO/IEC 10646 for JIS X0208/0212/0213"
988                 '(long-name     "UCS for JIS"
989                   chars         256
990                   dimension     3
991                   columns       2
992                   graphic       2
993                   direction     l2r
994                   =>iso-ir      177
995                   mother        =ucs@unicode))
996   (define-charset-alias 'ucs-jis '=ucs@jis)
997   (make-charset '=ucs@jis/fw
998                 "ISO/IEC 10646 for JIS X0208/0212/0213 with fullwidth"
999                 '(long-name     "UCS for JIS-fullwidth"
1000                   chars         256
1001                   dimension     3
1002                   columns       2
1003                   graphic       2
1004                   direction     l2r
1005                   =>iso-ir      177
1006                   mother        =ucs@jis))
1007   (make-charset '=ucs-bmp@jis
1008                 "ISO/IEC 10646 BMP for JIS"
1009                 '(long-name     "BMP for JIS"
1010                   chars         256
1011                   dimension     3
1012                   columns       2
1013                   graphic       2
1014                   direction     l2r
1015                   mother        =ucs@jis
1016                   min-code      #x0000
1017                   max-code      #xFFFF))
1018   (make-charset '=ucs@jis/1990
1019                 "ISO/IEC 10646 for JIS X 0208/0212:1990"
1020                 '(long-name     "UCS for JIS:1990"
1021                   chars         256
1022                   dimension     3
1023                   columns       2
1024                   graphic       2
1025                   direction     l2r
1026                   =>iso-ir      177
1027                   mother        =ucs@jis))
1028   (define-charset-alias '=ucs@jis-1990 '=ucs@jis/1990)
1029   (define-charset-alias '=ucs-jis-1990 '=ucs@jis/1990)
1030   (make-charset '=ucs@jis/2000
1031                 "ISO/IEC 10646 for JIS X 0213:2000"
1032                 '(long-name     "UCS for JIS:2000"
1033                   chars         256
1034                   dimension     3
1035                   columns       2
1036                   graphic       2
1037                   direction     l2r
1038                   =>iso-ir      177
1039                   mother        =ucs@jis))
1040   (define-charset-alias '=ucs@jis-2000 '=ucs@jis/2000)
1041   (define-charset-alias '=ucs-jis-2000 '=ucs@jis/2000)
1042   (make-charset '=ucs@jis/2004
1043                 "ISO/IEC 10646 for JIS X 0213:2004"
1044                 '(long-name     "UCS for JIS:2004"
1045                   chars         256
1046                   dimension     3
1047                   columns       2
1048                   graphic       2
1049                   direction     l2r
1050                   =>iso-ir      177
1051                   mother        =ucs@jis))
1052   (make-charset '=ucs@JP
1053                 "UCS for common glyphs used in Japan"
1054                 '(long-name     "UCS for Japan"
1055                   chars         256
1056                   dimension     3
1057                   columns       2
1058                   graphic       2
1059                   direction     l2r
1060                   =>iso-ir      177
1061                   mother        =ucs@jis/2004))
1062   (define-charset-alias '=ucs@jp '=ucs@JP)
1063   (make-charset '=ucs@ks
1064                 "ISO/IEC 10646 for Korean Standards"
1065                 '(long-name     "UCS for KS"
1066                   chars         256
1067                   dimension     3
1068                   columns       2
1069                   graphic       2
1070                   direction     l2r
1071                   =>iso-ir      177
1072                   mother        =ucs@unicode))
1073   (define-charset-alias 'ucs-ks '=ucs@ks)
1074   (make-charset '=ucs-bmp@ks
1075                 "ISO/IEC 10646 BMP for KS"
1076                 '(long-name     "BMP for KS"
1077                   chars         256
1078                   dimension     3
1079                   columns       2
1080                   graphic       2
1081                   direction     l2r
1082                   mother        =ucs@ks
1083                   min-code      #x0000
1084                   max-code      #xFFFF))
1085   (make-charset '=ucs@cns11643
1086                 "ISO/IEC 10646 for CNS based on www.cns11643.gov.tw"
1087                 '(long-name     "UCS for CNS11643"
1088                   chars         256
1089                   dimension     3
1090                   columns       2
1091                   graphic       2
1092                   direction     l2r
1093                   =>iso-ir      177
1094                   mother        =ucs@cns))
1095   (make-charset '=ucs@big5
1096                 "ISO/IEC 10646 for Big5"
1097                 '(long-name     "UCS for Big5"
1098                   chars         256
1099                   dimension     3
1100                   columns       2
1101                   graphic       2
1102                   direction     l2r
1103                   =>iso-ir      177
1104                   mother        =>>ucs@unicode))
1105   (define-charset-alias 'ucs-big5 '=ucs@big5)
1106   (make-charset '=ucs@big5/cns11643
1107                 "ISO/IEC 10646 for Big5 based on www.cns11643.gov.tw"
1108                 '(long-name     "UCS for Big5@CNS11643"
1109                   chars         256
1110                   dimension     3
1111                   columns       2
1112                   graphic       2
1113                   direction     l2r
1114                   =>iso-ir      177
1115                   mother        =ucs@big5))
1116
1117   (make-charset
1118    '=ucs-radicals
1119    "CJK Radicals of UCS"
1120    '(long-name "UCS-Radicals"
1121                chars 256
1122                dimension 2
1123                columns 2
1124                graphic 2
1125                direction l2r
1126                registry "-zhRadicals-.*-ucs-0"
1127                mother ucs-bmp
1128                min-code #x2E00 max-code #x2FFF))
1129   (make-charset
1130    '=ucs-radicals@unicode
1131    "CJK Radicals of UCS"
1132    '(long-name "UCS-Radicals"
1133                chars 256
1134                dimension 2
1135                columns 2
1136                graphic 2
1137                direction l2r
1138                registry "-zhRadicals-.*-ucs-0"
1139                mother =ucs@unicode
1140                min-code #x2E00 max-code #x2FFF))
1141   (make-charset
1142    '=ucs-hangul
1143    "Hangul Syllables of UCS"
1144    '(long-name "UCS-Hangul-Syllables"
1145                chars 256
1146                dimension 2
1147                columns 2
1148                graphic 2
1149                direction l2r
1150                registry "-Hangul-.*-ucs-0"
1151                mother =ucs
1152                min-code #xAC00 max-code #xD7AF))
1153   (make-charset
1154    '=ucs-bmp-cjk
1155    "CJK Characters in BMP of UCS"
1156    '(long-name "UCS-BMP-CJK"
1157                chars 256
1158                dimension 2
1159                columns 2
1160                graphic 2
1161                direction l2r
1162                registry "-zh-.*-ucs-0"
1163                mother ucs-bmp
1164                min-code #x2E00
1165                max-code #x9FA5
1166                ;; max-code #xA4CF
1167                ))
1168   (make-charset
1169    '=ucs-bmp-cjk@unicode
1170    "CJK Characters in BMP of Unicode"
1171    '(long-name "Unicode-BMP-CJK"
1172                chars 256
1173                dimension 2
1174                columns 2
1175                graphic 2
1176                direction l2r
1177                registry "-zh-.*-ucs-0"
1178                mother =ucs@unicode
1179                min-code #x2E00
1180                max-code #x9FA5
1181                ;; max-code #xA4CF
1182                ))
1183   (make-charset
1184    '=ucs-sip-ext-b
1185    "CJK Ideographs Extension B"
1186    '(long-name "UCS CJK Ext-B"
1187                chars 256
1188                dimension 2
1189                columns 2
1190                graphic 2
1191                direction l2r
1192                registry "\\(iso10646\\|ucs02\\)-2$"
1193                mother ucs
1194                min-code #x20000 max-code #x2A6D6
1195                code-offset #x20000))
1196   (make-charset
1197    '=ucs-sip-ext-b@iso
1198    "CJK Ideographs Extension B (ISO/IEC 10646-2)"
1199    '(long-name "UCS CJK Ext-B"
1200                chars 256
1201                dimension 2
1202                columns 2
1203                graphic 2
1204                direction l2r
1205                registry "\\(iso10646\\|ucs02\\)-2$"
1206                mother =ucs@iso
1207                min-code #x20000 max-code #x2A6D6
1208                code-offset #x20000))
1209
1210   (make-charset
1211    '=adobe-japan1-base
1212    "Adobe-Japan1 Character Collection for CID-Keyed Fonts"
1213    `(long-name "Adobe-Japan1"
1214                chars 256
1215                dimension 2
1216                columns 2
1217                graphic 2
1218                direction l2r
1219                registry "AdobeJapan1-[0-6]$"
1220                min-code ,(lsh #x6300 16)
1221                max-code ,(+ (lsh #x6300 16) 23057)
1222                code-offset      ,(lsh #x6300 16)))
1223   (make-charset
1224    '=adobe-japan1-0
1225    "Adobe-Japan1-0 Character Collection for CID-Keyed Fonts"
1226    '(long-name "Adobe-Japan1-0"
1227                chars 256
1228                dimension 2
1229                columns 2
1230                graphic 2
1231                direction l2r
1232                mother =adobe-japan1-base
1233                min-code 0
1234                max-code 8283
1235                registry "AdobeJapan1-0$"))
1236   (make-charset
1237    '=adobe-japan1-1
1238    "Adobe-Japan1-1 Character Collection for CID-Keyed Fonts"
1239    '(long-name "Adobe-Japan1-1"
1240                chars 256
1241                dimension 2
1242                columns 2
1243                graphic 2
1244                direction l2r
1245                mother =adobe-japan1-0
1246                min-code 0
1247                max-code 8358
1248                registry "AdobeJapan1-1$"))
1249   (make-charset
1250    '=adobe-japan1-2
1251    "Adobe-Japan1-2 Character Collection for CID-Keyed Fonts"
1252    '(long-name "Adobe-Japan1-2"
1253                chars 256
1254                dimension 2
1255                columns 2
1256                graphic 2
1257                direction l2r
1258                mother =adobe-japan1-1
1259                min-code 0
1260                max-code 8719
1261                registry "AdobeJapan1-2$"))
1262   (make-charset
1263    '=adobe-japan1-3
1264    "Adobe-Japan1-3 Character Collection for CID-Keyed Fonts"
1265    '(long-name "Adobe-Japan1-3"
1266                chars 256
1267                dimension 2
1268                columns 2
1269                graphic 2
1270                direction l2r
1271                mother =adobe-japan1-2
1272                min-code 0
1273                max-code 9353
1274                registry "AdobeJapan1-3$"))
1275   (make-charset
1276    '=adobe-japan1-4
1277    "Adobe-Japan1-4 Character Collection for CID-Keyed Fonts"
1278    '(long-name "Adobe-Japan1-4"
1279                chars 256
1280                dimension 2
1281                columns 2
1282                graphic 2
1283                direction l2r
1284                mother =adobe-japan1-3
1285                min-code 0
1286                max-code 15443
1287                registry "AdobeJapan1-4$"))
1288   (make-charset
1289    '=adobe-japan1-5
1290    "Adobe-Japan1-5 Character Collection for CID-Keyed Fonts"
1291    '(long-name "Adobe-Japan1-5"
1292                chars 256
1293                dimension 2
1294                columns 2
1295                graphic 2
1296                direction l2r
1297                mother =adobe-japan1-4
1298                min-code 0
1299                max-code 20316
1300                registry "AdobeJapan1-5$"))
1301   (make-charset
1302    '=adobe-japan1-6
1303    "Adobe-Japan1-6 Character Collection for CID-Keyed Fonts"
1304    '(long-name "Adobe-Japan1-6"
1305                chars 256
1306                dimension 2
1307                columns 2
1308                graphic 2
1309                direction l2r
1310                mother =adobe-japan1-5
1311                min-code 0
1312                max-code 23057
1313                registry "AdobeJapan1-6$"))
1314   )
1315
1316 ;;; mule-conf.el ends here