X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lisp%2Futf-2000%2Fchar-db-util.el;h=b9e69f43a24e127b71241fbce5f5a16daff653e9;hb=ce3330b9d5e6afe1c523c6b83c1fa1b97bb8d3cf;hp=6066a2972eb1643076744df128d6d7719432ab1c;hpb=c160ed701e7f9e16bd130927252b62493b5fe0a4;p=chise%2Fxemacs-chise.git.1 diff --git a/lisp/utf-2000/char-db-util.el b/lisp/utf-2000/char-db-util.el index 6066a29..b9e69f4 100644 --- a/lisp/utf-2000/char-db-util.el +++ b/lisp/utf-2000/char-db-util.el @@ -1,7 +1,7 @@ ;;; 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 MORIOKA Tomohiko. +;; Copyright (C) 1998,1999,2000,2001,2002,2003,2004,2005,2006,2007, +;; 2008,2009,2010,2011,2012,2013,2014,2015 MORIOKA Tomohiko. ;; Author: MORIOKA Tomohiko ;; Keywords: CHISE, Character Database, ISO/IEC 10646, UCS, Unicode, MULE. @@ -103,6 +103,7 @@ ?屾 ?屵 ?广 ?厂 ?丸 ?危 ?石 ?長 ?勿 ?冄 ; 360 ?而 ?豕 ?㣇 ?彑 ?豚 ?豸 ?𤉡 ?易 ?象 ?馬 ; 370 ?𢊁 ?鹿 ?麤 ?㲋 ?兔 ?萈 ?犬 ?㹜 ?鼠 ?能 ; 380 + ?熊 ?火 ?炎 ?黑 ?囪 ?焱 ?炙 ?赤 ?大 ?亦 ; 390 ]) (defun shuowen-radical (number) @@ -191,6 +192,7 @@ =daikanwa =daikanwa@rev2 =daikanwa@rev1 + =daikanwa/+p ==daikanwa =cbeta ideograph-hanziku-1 @@ -261,6 +263,7 @@ =>jis-x0213-1@2004 =>jis-x0213-2 ==>ucs@bucs + =>iwds-1 =>ucs@hanyo-denshi =>ucs@iso =>ucs@unicode @@ -294,7 +297,7 @@ ==gt ==jis-x0208@1990 ;; ==jis-x0208@1983 - ;; ==jis-x0208@1978 + ==jis-x0208@1978 ==gt-k =ucs@iso =ucs@unicode @@ -321,7 +324,8 @@ =>cbeta =shinjigen =big5-cdp-var-3 - =big5-cdp-var-5)) + =big5-cdp-var-5 + =>ucs@iwds-1)) ;;; @ char-db formatters @@ -619,7 +623,10 @@ (decode-builtin-char '=gt ret)) (t (decode-builtin-char ccs code-point)))) - (cond ((and (<= 0 (char-int ret)) + (cond ((null ret) + (or (decode-char ccs code-point) + (define-char (list (cons ccs code-point))))) + ((and (<= 0 (char-int ret)) (<= (char-int ret) #x1F)) (decode-char '=ucs (+ #x2400 (char-int ret)))) ((= (char-int ret) #x7F) @@ -634,7 +641,8 @@ (insert (format (cond - ((memq name '(==shinjigen + ((memq name '(=>iwds-1 + ==shinjigen =shinjigen =shinjigen@1ed ==shinjigen@1ed =shinjigen@rev ==shinjigen@rev @@ -669,7 +677,13 @@ =>>adobe-japan1-5 =+>adobe-japan1-5 =>>adobe-japan1-6 =+>adobe-japan1-6 =>cbeta =cbeta =>>cbeta ==cbeta ===cbeta - =zinbun-oracle =>zinbun-oracle)) + =zinbun-oracle =>zinbun-oracle + ===hng-khi ===hng-khm ===hng-kak + ===hng-sys ===hng-tsu + ===hng-hod ===hng-gok ===hng-k24 + ===hng-kcj ===hng-kbk ===hng-sik + ===hng-skk ===hng-kyu ===hng-ksk ===hng-wan + ===hng-kss)) ;; (string-match "^=adobe-" (symbol-name name)) ) "(%-18s . %05d)\t; %c") @@ -854,6 +868,12 @@ line-breaking ccss readable) (setq attributes (delq '<-denotational attributes))) + (when (and (memq '<-denotational@component attributes) + (setq value (get-char-attribute char '<-denotational@component))) + (char-db-insert-relation-feature char '<-denotational@component value + line-breaking + ccss readable) + (setq attributes (delq '<-denotational@component attributes))) (when (and (memq 'name attributes) (setq value (get-char-attribute char 'name))) (insert (format