Sync up with r21-4-19-chise-0_23-2.
[chise/xemacs-chise.git] / lisp / utf-2000 / mojikyo-ccs.el
1 ;;; mojikyo-ccs.el --- Definition of Mojikyo related coded-charsets
2
3 ;; Copyright (C) 2001,2002,2003 MORIOKA Tomohiko.
4
5 ;; Author: MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
6 ;; Keywords: UTF-2000, ISO/IEC 10646, Unicode, UCS-4, MULE.
7
8 ;; This file is part of XEmacs UTF-2000.
9
10 ;; XEmacs UTF-2000 is free software; you can redistribute it and/or
11 ;; modify it under the terms of the GNU General Public License as
12 ;; published by the Free Software Foundation; either version 2, or (at
13 ;; your option) any later version.
14
15 ;; XEmacs UTF-2000 is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 ;; General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with XEmacs UTF-2000; see the file COPYING.  If not, write to
22 ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
24
25 ;;; Code:
26
27 (make-charset 'mojikyo
28               "Mojikyo"
29               `(long-name "Mojikyo"
30                           chars 256
31                           dimension 3
32                           columns 2
33                           graphic 2
34                           direction l2r
35                           min-code ,(lsh #x6000 16)
36                           max-code ,(1- (+ (lsh #x6000 16)
37                                            (* 94 60 22)))
38                           code-offset ,(lsh #x6000 16)))
39
40 (make-charset 'mojikyo-2022-1
41               "Mojikyo-2022-1"
42               `(long-name "Mojikyo for ISO 2022 based CES, Part 1"
43                           chars 94
44                           dimension 3
45                           columns 2
46                           graphic 0
47                           direction l2r
48                           mother mojikyo
49                           min-code 0
50                           max-code ,(1- (* 94 94 60))
51                           code-offset 1
52                           conversion 94x94x60))
53
54 (let ((i 1))
55   (while (<= i 21)
56     (make-charset
57      (intern (format "mojikyo-pj-%d" i))
58      (format "Mojikyo PJ %d" i)
59      `(long-name ,(format "Mojikyo Psedo JIS Part %d" i)
60                  chars 94
61                  dimension 2
62                  columns 2
63                  graphic 0
64                  registry ,(format
65                             "\\(MojikyoPJ\\|jisx0208\\.Mojikyo\\)-%d" i)
66                  direction l2r
67                  mother mojikyo
68                  min-code ,(1+ (* 94 60 (1- i)))
69                  max-code ,(* 94 60 i)
70                  code-offset ,(1+ (* 94 60 (1- i)))
71                  conversion 94x60))
72     (setq i (1+ i))))
73
74
75 (provide 'mojikyo-ccs)
76
77 ;;; mojikyo-ccs.el ends here