update.
[chise/xemacs-chise.git-] / lisp / utf-2000 / char-db-util.el
index 3b89492..4266da8 100644 (file)
                  ((>= (charset-iso-final-char kb) ?0)
                   (< (charset-iso-final-char ka)
                      (charset-iso-final-char kb)))
-                 (t)))))
+                 (t)))
+               (t (if (>= (charset-iso-final-char kb) ?0)
+                      nil
+                    (> (charset-id ka)(charset-id kb))))))
              ((<= (charset-chars ka)(charset-chars kb)))))
        (t
        (< (charset-dimension ka)
       (if (setq value (get-char-attribute char name))
          (insert
           (format
-           (if has-long-ccs-name
-               (cond ((eq name 'ideograph-daikanwa)
+           (cond ((memq name '(ideograph-daikanwa ideograph-gt))
+                  (if has-long-ccs-name
                       "(%-26s . %05d)\t; %c%s"
-                      )
-                     ((eq name 'mojikyo)
+                    "(%-18s . %05d)\t; %c%s"))
+                 ((eq name 'mojikyo)
+                  (if has-long-ccs-name
                       "(%-26s . %06d)\t; %c%s"
-                      )
-                     (t
+                    "(%-18s . %06d)\t; %c%s"))
+                 (t
+                  (if has-long-ccs-name
                       "(%-26s . #x%X)\t; %c%s"
-                      ))
-             (cond ((eq name 'ideograph-daikanwa)
-                    "(%-18s . %05d)\t; %c%s"
-                    )
-                   ((eq name 'mojikyo)
-                    "(%-18s . %06d)\t; %c%s"
-                    )
-                   (t
-                    "(%-18s . #x%X)\t; %c%s"
-                    )))
+                    "(%-18s . #x%X)\t; %c%s")))
            name
            (if (= (charset-iso-graphic-plane name) 1)
                (logior value
                               #x808080)
                              (t 0)))
              value)
-           (decode-builtin-char name value)
+           (if (and (memq name '(ideograph-gt-pj-1
+                                 ideograph-gt-pj-2
+                                 ideograph-gt-pj-3
+                                 ideograph-gt-pj-4
+                                 ideograph-gt-pj-5
+                                 ideograph-gt-pj-6
+                                 ideograph-gt-pj-7
+                                 ideograph-gt-pj-8
+                                 ideograph-gt-pj-9
+                                 ideograph-gt-pj-10
+                                 ideograph-gt-pj-11))
+                    (setq ret (decode-char name value))
+                    (setq ret (get-char-attribute ret 'ideograph-gt)))
+               (decode-builtin-char 'ideograph-gt ret)
+             (decode-builtin-char name value))
            line-breaking)))
       (setq ccs-attributes (cdr ccs-attributes)))
     (insert ")")))