;;; char-db-util.el --- Character Database utility -*- coding: utf-8-er; -*-
-;; Copyright (C) 1998,1999,2000,2001,2002,2003,2004,2005 MORIOKA Tomohiko.
+;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+;; 2007 MORIOKA Tomohiko.
;; Author: MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
;; Keywords: CHISE, Character Database, ISO/IEC 10646, UCS, Unicode, MULE.
(aref ideographic-radicals number))
(defconst shuowen-radicals
- [?一 ?上 ?示 ?三 ?王 ?玉 ?玨 ?气 ?士 ?丨 ?屮 ?艸 ?茻])
+ [?一 ?上 ?示 ?三 ?王 ?玉 ?玨 ?气 ?士 ?丨
+ ?屮 ?艸 ?茻 ?小 ?八 ?釆 ?牛 ?告 ?口 ?凵
+ ?吅 ?哭 ?走 ?止])
(defun shuowen-radical (number)
(aref shuowen-radicals (1- number)))
(defvar char-db-file-coding-system 'utf-8-mcs-er)
(defvar char-db-feature-domains
- '(ucs daikanwa cns gt jis jis/alt jis/a jis/b
+ '(ucs ucs/compat daikanwa cns gt jis jis/alt jis/a jis/b
jis-x0212 jis-x0213 cdp shinjigen misc unknown))
(defvar char-db-ignored-attributes '(ideographic-products))
=jis-x0208@1983
japanese-jisx0212
chinese-gb2312
+ =jis-x0208@1990
chinese-cns11643-1
chinese-cns11643-2
chinese-cns11643-3
chinese-cns11643-5
chinese-cns11643-6
chinese-cns11643-7
- =jis-x0208@1990
=jis-x0213-1-2000
=jis-x0213-2-2000
korean-ksc5601
'(=daikanwa
=daikanwa@rev2
;; =gt-k
+ =jis-x0208@1997
)))
(setq ccs (charset-name ccs))
(null (assq ccs char-spec))
(defun char-db-insert-ccs-feature (name value line-breaking)
(insert
(format
- (cond ((memq name '(=daikanwa
- =daikanwa@rev1 =daikanwa@rev2
- =gt =gt-k =cbeta =zinbun-oracle))
+ (cond ((or (memq name '(=daikanwa
+ =daikanwa@rev1 =daikanwa@rev2
+ =gt =gt-k =cbeta =zinbun-oracle))
+ (string-match "^=adobe-" (symbol-name name)))
"(%-18s . %05d)\t; %c")
((eq name 'mojikyo)
"(%-18s . %06d)\t; %c")