(char-daikanwa): Return value of `=>daikanwa' with subcode 0.
authortomo <tomo>
Fri, 16 Apr 2004 04:39:02 +0000 (04:39 +0000)
committertomo <tomo>
Fri, 16 Apr 2004 04:39:02 +0000 (04:39 +0000)
lisp/utf-2000/ideograph-util.el

index 2fc4402..593e21c 100644 (file)
               radical))
       (let ((ret (or (encode-char char 'ideograph-daikanwa 'defined-only)
                      (encode-char char '=daikanwa-rev2 'defined-only)
-                     (get-char-attribute char 'morohashi-daikanwa)
-                     (get-char-attribute char '=>daikanwa))))
+                     (get-char-attribute char 'morohashi-daikanwa))))
         (or ret
+           (and (setq ret (get-char-attribute char '=>daikanwa))
+                (if (numberp ret)
+                    (list ret 0)
+                  (append ret '(0))))
            (unless (memq char checked)
              (catch 'tag
                (let ((rest