(char-daikanwa-radical): New function.
authorMORIOKA Tomohiko <tomo.git@chise.org>
Sat, 27 Dec 2014 17:08:52 +0000 (02:08 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Sat, 27 Dec 2014 17:08:52 +0000 (02:08 +0900)
(char-daikanwa): Use `char-daikanwa-radical' instead of
`char-ideographic-radical'.

lisp/utf-2000/ideograph-util.el

index 8c59833..f81103d 100644 (file)
              testers (cdr testers)
              defaulters (cdr defaulters))))))
 
+(defun char-daikanwa-radical (char &optional radical ignore-sisters)
+  (or (and (encode-char char '=daikanwa@rev2 'defined-only)
+          (or (get-char-attribute char 'ideographic-radical@daikanwa)
+              (get-char-attribute char 'ideographic-radical)))
+      (char-ideographic-radical char radical ignore-sisters)))
+
 (defun char-daikanwa-strokes (char &optional radical)
   (unless radical
     (setq radical ideographic-radical))
     (setq radical ideographic-radical))
   (if (or (null radical)
           (eq (or (get-char-attribute char 'ideographic-radical)
-                  (char-ideographic-radical char radical t))
+                  (char-daikanwa-radical char radical t))
               radical))
       (let ((ret (or (encode-char char '=daikanwa@rev2 'defined-only)
                      ;; (encode-char char '=daikanwa 'defined-only)