Reformatted.
[chise/xemacs-chise.git] / lisp / utf-2000 / char-db-util.el
index 2a0f888..7d73c77 100644 (file)
@@ -1,7 +1,8 @@
 ;;; char-db-util.el --- Character Database utility -*- coding: utf-8-er; -*-
 
-;; Copyright (C) 1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,
-;;   2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018 MORIOKA Tomohiko.
+;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
+;;   2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
+;;   2020 MORIOKA Tomohiko.
 
 ;; Author: MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
 ;; Keywords: CHISE, Character Database, ISO/IEC 10646, UCS, Unicode, MULE.
     =gt
     =gt-k
     =daikanwa
+    =daijiten
     =daikanwa@rev2
     =daikanwa@rev1
     =daikanwa/+p
     ==daikanwa
+    ==daijiten
     =cbeta
     ideograph-hanziku-1
     ideograph-hanziku-2
     =>jis-x0213-1@2004
     =>jis-x0213-2
     ==>ucs@bucs
-    =>iwds-1
+    ==>daijiten
     ;; =>ucs@hanyo-denshi
     =>ucs@iso
     =>ucs@unicode
     =>>gt-k
     =+>gt
     =+>big5-cdp
-    =>gt
-    =>mj
     =>big5-cdp
-    =>daikanwa
-    =>daikanwa/ho
-    =>cns11643-5
-    =>cns11643-7
+    =>big5-cdp@iwds-1
+    =>mj
+    =>iwds-1
     =big5
     =big5-eten
-    =>gt-k
     =zinbun-oracle
     =>zinbun-oracle
     =ruimoku-v6
     =>>ruimoku-v6
     ==ruimoku-v6
     =jef-china3
-    =>cbeta
     =shinjigen
+    =>cns11643-5
+    =>cns11643-7
+    =>gt
+    =>gt-k
+    =>daikanwa
+    =>daikanwa/ho
+    =>cbeta
     =ucs-var-001
     =ucs-var-002
     =ucs-var-003
     =ucs-var-004
     =ucs-var-005
     =ucs-var-006
+    =ucs-var-007
     =ucs-var-008
     =ucs-var-010
     =ucs-itaiji-001
     =ucs-itaiji-009
     =ucs-itaiji-010
     =ucs-itaiji-011
+    =ucs-itaiji-012
+    =+>ucs-var-003
     =>ucs-itaiji-001
     =>ucs-itaiji-002
     =>ucs-itaiji-003
     =>ucs-itaiji-005
     =>ucs-itaiji-006
     =>ucs-itaiji-007
+    =>ucs-itaiji-008
     =>ucs-itaiji-009
+    =>ucs-itaiji-010
+    =>ucs-itaiji-011
     =big5-cdp-var-001
     =big5-cdp-var-002
     =big5-cdp-var-003
     =big5-cdp-var-004
     =big5-cdp-var-005
+    =big5-cdp-var-007
     =big5-cdp-var-010
     =big5-cdp-itaiji-001
     =big5-cdp-itaiji-002
     =big5-cdp-itaiji-003
+    =big5-cdp-itaiji-004
+    =big5-cdp-itaiji-005
     =>big5-cdp-itaiji-001
+    =>big5-cdp-itaiji-002
+    =>big5-cdp-itaiji-003
+    =>big5-cdp-itaiji-004
+    =>big5-cdp-var-001
     =>ucs@iwds-1
     =>ucs@cognate
     =>ucs@component
+    =>ucs@iwds-1/normalized
     =>ucs-itaiji-001@iwds-1
-    =>big5-cdp@iwds-1
+    =>ucs-itaiji-002@iwds-1
     =>big5-cdp@component
     =>big5-cdp@cognate
     ==ucs@gb
                 =>>adobe-japan1-6 =+>adobe-japan1-6
                 =>cbeta =cbeta =>>cbeta ==cbeta ===cbeta
                 =zinbun-oracle =>zinbun-oracle
+                =daijiten ==daijiten ===daijiten ==>daijiten
                 ===hng-jou ===hng-keg ===hng-dng ===hng-mam
                 ===hng-drt ===hng-kgk ===hng-myz ===hng-kda
-                ===hng-khi ===hng-khm ===hng-hok ===hng-kyd ===hng-sok
+                ===hng-khi ===hng-khm ===hng-fhs ===hng-hok
+                ===hng-kyd ===hng-sok
                 ===hng-yhk ===hng-kak ===hng-kar ===hng-kae
                 ===hng-sys ===hng-tsu ===hng-tzj
-                ===hng-hos ===hng-nak ===hng-jhk
+                ===hng-hos ===hng-kkh ===hng-nak ===hng-jhk
                 ===hng-hod ===hng-gok ===hng-ink ===hng-nto
-                ===hng-nkm ===hng-k24 ===hng-nkk
+                ===hng-nkm ===hng-k24 ===hng-ini ===hng-nkk
                 ===hng-kcc ===hng-kcj ===hng-kbk ===hng-sik
                 ===hng-skk ===hng-kyu ===hng-ksk ===hng-wan
                 ===hng-okd ===hng-wad ===hng-kmi
-                ===hng-zkd ===hng-doh ===hng-jyu
-                ===hng-tzs ===hng-kss ===hng-kyo
-                ===hng-smk
+                ===hng-zkd ===hng-doh ===hng-jyu ===hng-tzs
+                ===hng-sai ===hng-kad ===hng-kss
+                ===hng-kyo ===hng-ykk ===hng-saa
+                ===hng-sab ===hng-wks ===hng-wke ===hng-smk
+                ===hng-sgs ===hng-sts
                 =shuowen-jiguge ===shuowen-jiguge4 ===shuowen-jiguge5))
         ;; (string-match "^=adobe-" (symbol-name name))
         )
                                       line-breaking
                                       ccss readable)
       (setq attributes (delq '<-denotational@component attributes)))
+    (when (and (memq '<-denotational@usage attributes)
+              (setq value (get-char-attribute char '<-denotational@usage)))
+      (char-db-insert-relation-feature char '<-denotational@usage value
+                                      line-breaking
+                                      ccss readable)
+      (setq attributes (delq '<-denotational@usage attributes)))
     (when (and (memq 'name attributes)
               (setq value (get-char-attribute char 'name)))
       (insert (format
            (setq strokes value)))
       (setq attributes (delq 'cns-strokes attributes))
       )
-    ;; (when (and (memq 'shinjigen-1-radical attributes)
-    ;;            (setq value (get-char-attribute char 'shinjigen-1-radical)))
-    ;;   (unless (eq value radical)
-    ;;     (insert (format "(shinjigen-1-radical . %S)\t; %c%s"
-    ;;                     value
-    ;;                     (ideographic-radical value)
-    ;;                     line-breaking))
-    ;;     (or radical
-    ;;         (setq radical value)))
-    ;;   (setq attributes (delq 'shinjigen-1-radical attributes))
-    ;;   )
     ;; (when (and (memq 'ideographic- attributes)
     ;;            (setq value (get-char-attribute char 'ideographic-)))
     ;;   (insert "(ideographic-       ")
                      line-breaking))
       (setq attributes (delq '->mojikyo attributes))
       )
-    ;; (when (and (memq 'hanyu-dazidian-vol attributes)
-    ;;            (setq value (get-char-attribute char 'hanyu-dazidian-vol)))
-    ;;   (insert (format "(hanyu-dazidian-vol  . %d)%s"
-    ;;                   value line-breaking))
-    ;;   (setq attributes (delq 'hanyu-dazidian-vol attributes))
-    ;;   )
-    ;; (when (and (memq 'hanyu-dazidian-page attributes)
-    ;;            (setq value (get-char-attribute char 'hanyu-dazidian-page)))
-    ;;   (insert (format "(hanyu-dazidian-page . %d)%s"
-    ;;                   value line-breaking))
-    ;;   (setq attributes (delq 'hanyu-dazidian-page attributes))
-    ;;   )
-    ;; (when (and (memq 'hanyu-dazidian-char attributes)
-    ;;            (setq value (get-char-attribute char 'hanyu-dazidian-char)))
-    ;;   (insert (format "(hanyu-dazidian-char . %d)%s"
-    ;;                   value line-breaking))
-    ;;   (setq attributes (delq 'hanyu-dazidian-char attributes))
-    ;;   )
     (unless readable
       (dolist (ignored '(composition
                         ->denotational <-subsumptive ->ucs-unified
-                        ->ideographic-component-forms))
+                        ;; ->ideographic-component-forms
+                        ))
        (setq attributes (delq ignored attributes))))
     (while attributes
       (setq name (car attributes))
                    ))
               )
              ((or (eq name 'ideographic-structure)
+                  (eq name 'ideographic-structure@apparent)
                   (eq name 'ideographic-combination)
                    ;; (eq name 'ideographic-)
                   (eq name '=decomposition)