1 ;;; char-db-util.el --- Character Database utility
3 ;; Copyright (C) 1998,1999,2000,2001 MORIOKA Tomohiko.
5 ;; Author: MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
6 ;; Keywords: UTF-2000, ISO/IEC 10646, Unicode, UCS-4, MULE.
8 ;; This file is part of XEmacs UTF-2000.
10 ;; XEmacs UTF-2000 is free software; you can redistribute it and/or
11 ;; modify it under the terms of the GNU General Public License as
12 ;; published by the Free Software Foundation; either version 2, or (at
13 ;; your option) any later version.
15 ;; XEmacs UTF-2000 is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ;; General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with XEmacs UTF-2000; see the file COPYING. If not, write to
22 ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
29 (defconst unidata-normative-category-alist
30 '(("Lu" letter uppercase)
31 ("Ll" letter lowercase)
32 ("Lt" letter titlecase)
33 ("Mn" mark non-spacing)
34 ("Mc" mark spacing-combining)
36 ("Nd" number decimal-digit)
39 ("Zs" separator space)
41 ("Zp" separator paragraph)
44 ("Cs" other surrogate)
45 ("Co" other private-use)
46 ("Cn" other not-assigned)))
48 (defconst unidata-informative-category-alist
49 '(("Lm" letter modifier)
51 ("Pc" punctuation connector)
52 ("Pd" punctuation dash)
53 ("Ps" punctuation open)
54 ("Pe" punctuation close)
55 ("Pi" punctuation initial-quote)
56 ("Pf" punctuation final-quote)
57 ("Po" punctuation other)
59 ("Sc" symbol currency)
60 ("Sk" symbol modifier)
64 (defconst ideographic-radicals
65 (let ((v (make-vector 215 nil))
68 (aset v i (int-char (+ #x2EFF i)))
70 (if (< (charset-iso-final-char (car (split-char (aref v 34)))) ?0)
71 (aset v 34 (make-char 'chinese-gb2312 #x62 #x3A)))
74 (defun char-attribute-name< (ka kb)
80 ((= (charset-dimension ka)
81 (charset-dimension kb))
82 (cond ((= (charset-chars ka)(charset-chars kb))
84 ((>= (charset-iso-final-char ka) ?@)
85 (if (>= (charset-iso-final-char kb) ?@)
86 (< (charset-iso-final-char ka)
87 (charset-iso-final-char kb))
89 ((>= (charset-iso-final-char ka) ?0)
91 ((>= (charset-iso-final-char kb) ?@)
93 ((>= (charset-iso-final-char kb) ?0)
94 (< (charset-iso-final-char ka)
95 (charset-iso-final-char kb)))
97 (t (if (>= (charset-iso-final-char kb) ?0)
99 (> (charset-id ka)(charset-id kb))))))
100 ((<= (charset-chars ka)(charset-chars kb)))))
102 (< (charset-dimension ka)
103 (charset-dimension kb))
113 (string< (symbol-name ka)
119 (defvar char-db-coded-charset-priority-list
120 (sort (copy-list default-coded-charset-priority-list)
121 #'char-attribute-name<))
123 (defun char-db-insert-char-spec (char &optional readable column)
125 (setq column (current-column)))
126 (let (char-spec ret al cal key temp-char)
127 (cond ((characterp char)
128 (cond ((and (setq ret (get-char-attribute char 'ucs))
129 (not (and (<= #xE000 ret)(<= ret #xF8FF))))
130 (setq char-spec (list (cons 'ucs ret)))
131 (if (setq ret (get-char-attribute char 'name))
132 (setq char-spec (cons (cons 'name ret) char-spec)))
135 (let ((default-coded-charset-priority-list
136 char-db-coded-charset-priority-list))
138 (setq char-spec (list ret))
139 (dolist (ccs (delq (car ret) (charset-list)))
140 (if (or (and (>= (charset-iso-final-char ccs) ?0)
141 (setq ret (get-char-attribute char ccs)))
142 (eq ccs 'ideograph-daikanwa))
143 (setq char-spec (cons (cons ccs ret) char-spec))))
144 (if (setq ret (get-char-attribute char 'name))
145 (setq char-spec (cons (cons 'name ret) char-spec)))
148 (setq char-spec char)
152 (setq char (find-char char-spec))
154 ;; define temporary character
155 ;; Current implementation is dirty.
156 (setq temp-char (define-char (cons '(ideograph-daikanwa . 0)
158 (remove-char-attribute temp-char 'ideograph-daikanwa)
159 (setq char temp-char))
163 (setq key (car (car char-spec)))
164 (if (find-charset key)
165 (setq cal (cons key cal))
166 (setq al (cons key al)))
167 (setq char-spec (cdr char-spec)))
168 (insert-char-attributes char
172 ;; undefine temporary character
173 ;; Current implementation is dirty.
174 (setq char-spec (char-attribute-alist temp-char))
176 (remove-char-attribute temp-char (car (car char-spec)))
177 (setq char-spec (cdr char-spec))))))
179 (defun char-db-insert-alist (alist &optional readable column)
181 (setq column (current-column)))
183 (concat "\n" (make-string (1+ column) ?\ )))
186 lbs cell rest separator)
189 (setq name (car (car alist))
190 value (cdr (car alist)))
191 (cond ((eq name 'char)
193 (if (setq ret (condition-case nil
200 (setq key (car (car value)))
201 (if (find-charset key)
202 (setq cal (cons key cal))
203 (setq al (cons key al)))
204 (setq value (cdr value)))
205 (insert-char-attributes ret
208 (insert (prin1-to-string value)))
210 (insert line-breaking))
212 (insert (format "(%-18s " name))
213 (setq lbs (concat "\n" (make-string (current-column) ?\ )))
215 (setq cell (car value))
216 (if (and (consp cell)
218 (setq ret (condition-case nil
227 (setq key (car (car rest)))
228 (if (find-charset key)
229 (setq cal (cons key cal))
230 (setq al (cons key al)))
231 (setq rest (cdr rest)))
234 (insert-char-attributes ret
237 (setq separator lbs))
240 (insert (prin1-to-string cell))
241 (setq separator " "))
242 (setq value (cdr value)))
244 (insert line-breaking))
246 (insert (format "(%-18s . %S)%s"
249 (setq alist (cdr alist))))
252 (defun char-db-insert-char-reference (plist &optional readable column)
254 (setq column (current-column)))
256 (concat "\n" (make-string (1+ column) ?\ )))
260 (setq name (pop plist))
261 (setq value (pop plist))
262 (cond ((eq name :char)
264 (cond ((numberp value)
265 (setq value (decode-char 'ucs value)))
267 ;; (setq value (or (find-char value)
270 (char-db-insert-char-spec value readable)
271 (insert line-breaking))
273 (insert (format "%s\t%S%s"
279 (defun char-db-decode-isolated-char (ccs code-point)
282 (cond ((eq ccs 'arabic-iso8859-6)
283 (decode-char ccs code-point))
284 ((and (memq ccs '(ideograph-gt-pj-1
295 (setq ret (decode-char ccs code-point))
296 (setq ret (get-char-attribute ret 'ideograph-gt)))
297 (decode-builtin-char 'ideograph-gt ret))
299 (decode-builtin-char ccs code-point))))
300 (cond ((and (<= 0 (char-int ret))
301 (<= (char-int ret) #x1F))
302 (decode-char 'ucs (+ #x2400 (char-int ret))))
303 ((= (char-int ret) #x7F)
307 (defvar char-db-convert-obsolete-format t)
309 (defun insert-char-attributes (char &optional readable
310 attributes ccs-attributes
314 (if (consp attributes)
315 (copy-sequence attributes))
316 (char-attribute-list))
317 #'char-attribute-name<))
319 (sort (if ccs-attributes
320 (copy-sequence ccs-attributes)
322 #'char-attribute-name<))
324 (setq column (current-column)))
325 (let (name value has-long-ccs-name rest
328 (concat "\n" (make-string (1+ column) ?\ )))
329 lbs cell separator ret
332 (when (and (memq 'name attributes)
333 (setq value (get-char-attribute char 'name)))
335 (if (> (+ (current-column) (length value)) 48)
338 value line-breaking))
339 (setq attributes (delq 'name attributes))
341 (when (and (memq 'script attributes)
342 (setq value (get-char-attribute char 'script)))
343 (insert (format "(script\t\t%s)%s"
344 (mapconcat (function prin1-to-string)
347 (setq attributes (delq 'script attributes))
349 (when (and (memq '=>ucs attributes)
350 (setq value (get-char-attribute char '=>ucs)))
351 (insert (format "(=>ucs\t\t. #x%04X)\t; %c%s"
352 value (decode-char 'ucs value)
354 (setq attributes (delq '=>ucs attributes))
356 (when (and (memq '->ucs attributes)
357 (setq value (get-char-attribute char '->ucs)))
358 (insert (format (if char-db-convert-obsolete-format
359 "(=>ucs\t\t. #x%04X)\t; %c%s"
360 "(->ucs\t\t. #x%04X)\t; %c%s")
361 value (decode-char 'ucs value)
363 (setq attributes (delq '->ucs attributes))
365 (when (and (memq 'general-category attributes)
366 (setq value (get-char-attribute char 'general-category)))
368 "(general-category\t%s) ; %s%s"
369 (mapconcat (lambda (cell)
372 (cond ((rassoc value unidata-normative-category-alist)
373 "Normative Category")
374 ((rassoc value unidata-informative-category-alist)
375 "Informative Category")
379 (setq attributes (delq 'general-category attributes))
381 (when (and (memq 'bidi-category attributes)
382 (setq value (get-char-attribute char 'bidi-category)))
383 (insert (format "(bidi-category\t. %S)%s"
386 (setq attributes (delq 'bidi-category attributes))
388 (unless (or (not (memq 'mirrored attributes))
389 (eq (setq value (get-char-attribute char 'mirrored 'empty))
391 (insert (format "(mirrored\t\t. %S)%s"
394 (setq attributes (delq 'mirrored attributes))
397 ((and (memq 'decimal-digit-value attributes)
398 (setq value (get-char-attribute char 'decimal-digit-value)))
399 (insert (format "(decimal-digit-value . %S)%s"
402 (setq attributes (delq 'decimal-digit-value attributes))
403 (when (and (memq 'digit-value attributes)
404 (setq value (get-char-attribute char 'digit-value)))
405 (insert (format "(digit-value\t . %S)%s"
408 (setq attributes (delq 'digit-value attributes))
410 (when (and (memq 'numeric-value attributes)
411 (setq value (get-char-attribute char 'numeric-value)))
412 (insert (format "(numeric-value\t . %S)%s"
415 (setq attributes (delq 'numeric-value attributes))
419 (when (and (memq 'digit-value attributes)
420 (setq value (get-char-attribute char 'digit-value)))
421 (insert (format "(digit-value\t. %S)%s"
424 (setq attributes (delq 'digit-value attributes))
426 (when (and (memq 'numeric-value attributes)
427 (setq value (get-char-attribute char 'numeric-value)))
428 (insert (format "(numeric-value\t. %S)%s"
431 (setq attributes (delq 'numeric-value attributes))
433 (when (and (memq 'iso-10646-comment attributes)
434 (setq value (get-char-attribute char 'iso-10646-comment)))
435 (insert (format "(iso-10646-comment\t. %S)%s"
438 (setq attributes (delq 'iso-10646-comment attributes))
440 (when (and (memq 'morohashi-daikanwa attributes)
441 (setq value (get-char-attribute char 'morohashi-daikanwa)))
442 (insert (format "(morohashi-daikanwa\t%s)%s"
443 (mapconcat (function prin1-to-string) value " ")
445 (setq attributes (delq 'morohashi-daikanwa attributes))
449 (when (and (memq 'ideographic-radical attributes)
450 (setq value (get-char-attribute char 'ideographic-radical)))
452 (insert (format "(ideographic-radical . %S)\t; %c%s"
454 (aref ideographic-radicals radical)
456 (setq attributes (delq 'ideographic-radical attributes))
458 (when (and (memq 'ideographic-strokes attributes)
459 (setq value (get-char-attribute char 'ideographic-strokes)))
461 (insert (format "(ideographic-strokes . %S)%s"
464 (setq attributes (delq 'ideographic-strokes attributes))
466 (when (and (memq 'kangxi-radical attributes)
467 (setq value (get-char-attribute char 'kangxi-radical)))
468 (unless (eq value radical)
469 (insert (format "(kangxi-radical\t . %S)\t; %c%s"
471 (aref ideographic-radicals value)
474 (setq radical value)))
475 (setq attributes (delq 'kangxi-radical attributes))
477 (when (and (memq 'kangxi-strokes attributes)
478 (setq value (get-char-attribute char 'kangxi-strokes)))
479 (unless (eq value strokes)
480 (insert (format "(kangxi-strokes\t . %S)%s"
484 (setq strokes value)))
485 (setq attributes (delq 'kangxi-strokes attributes))
487 (when (and (memq 'japanese-radical attributes)
488 (setq value (get-char-attribute char 'japanese-radical)))
489 (unless (eq value radical)
490 (insert (format "(japanese-radical\t . %S)\t; %c%s"
492 (aref ideographic-radicals value)
495 (setq radical value)))
496 (setq attributes (delq 'japanese-radical attributes))
498 (when (and (memq 'japanese-strokes attributes)
499 (setq value (get-char-attribute char 'japanese-strokes)))
500 (unless (eq value strokes)
501 (insert (format "(japanese-strokes\t . %S)%s"
505 (setq strokes value)))
506 (setq attributes (delq 'japanese-strokes attributes))
508 (when (and (memq 'cns-radical attributes)
509 (setq value (get-char-attribute char 'cns-radical)))
510 (insert (format "(cns-radical\t . %S)\t; %c%s"
512 (aref ideographic-radicals value)
514 (setq attributes (delq 'cns-radical attributes))
516 (when (and (memq 'cns-strokes attributes)
517 (setq value (get-char-attribute char 'cns-strokes)))
518 (unless (eq value strokes)
519 (insert (format "(cns-strokes\t . %S)%s"
523 (setq strokes value)))
524 (setq attributes (delq 'cns-strokes attributes))
526 (when (and (memq 'shinjigen-1-radical attributes)
527 (setq value (get-char-attribute char 'shinjigen-1-radical)))
528 (unless (eq value radical)
529 (insert (format "(shinjigen-1-radical . %S)\t; %c%s"
531 (aref ideographic-radicals value)
534 (setq radical value)))
535 (setq attributes (delq 'shinjigen-1-radical attributes))
537 (when (and (memq 'total-strokes attributes)
538 (setq value (get-char-attribute char 'total-strokes)))
539 (insert (format "(total-strokes . %S)%s"
542 (setq attributes (delq 'total-strokes attributes))
544 (when (and (memq '->ideograph attributes)
545 (setq value (get-char-attribute char '->ideograph)))
546 (insert (format "(->ideograph\t%s)%s"
547 (mapconcat (lambda (code)
548 (cond ((symbolp code)
551 (format "#x%04X" code))
554 line-breaking code))))
557 (setq attributes (delq '->ideograph attributes))
559 (when (and (memq '->decomposition attributes)
560 (setq value (get-char-attribute char '->decomposition)))
561 (insert (format "(->decomposition\t%s)%s"
562 (mapconcat (lambda (code)
563 (cond ((symbolp code)
572 (format "#x%04X" code))
574 (format "%s%S" line-breaking code))))
577 (setq attributes (delq '->decomposition attributes))
579 (if (equal (get-char-attribute char '->titlecase)
580 (get-char-attribute char '->uppercase))
581 (setq attributes (delq '->titlecase attributes)))
582 (when (and (memq '->mojikyo attributes)
583 (setq value (get-char-attribute char '->mojikyo)))
584 (insert (format "(->mojikyo\t\t. %06d)\t; %c%s"
585 value (decode-char 'mojikyo value)
587 (setq attributes (delq '->mojikyo attributes))
589 (when (and (memq 'hanyu-dazidian-vol attributes)
590 (setq value (get-char-attribute char 'hanyu-dazidian-vol)))
591 (insert (format "(hanyu-dazidian-vol . %d)%s"
592 value line-breaking))
593 (setq attributes (delq 'hanyu-dazidian-vol attributes))
595 (when (and (memq 'hanyu-dazidian-page attributes)
596 (setq value (get-char-attribute char 'hanyu-dazidian-page)))
597 (insert (format "(hanyu-dazidian-page . %d)%s"
598 value line-breaking))
599 (setq attributes (delq 'hanyu-dazidian-page attributes))
601 (when (and (memq 'hanyu-dazidian-char attributes)
602 (setq value (get-char-attribute char 'hanyu-dazidian-char)))
603 (insert (format "(hanyu-dazidian-char . %d)%s"
604 value line-breaking))
605 (setq attributes (delq 'hanyu-dazidian-char attributes))
607 (setq rest ccs-attributes)
610 (setq value (get-char-attribute char (car rest)))
612 (if (>= (length (symbol-name (car rest))) 19)
614 (setq has-long-ccs-name t)
618 (setq rest (cdr rest)))
620 (setq name (car attributes))
621 (if (setq value (get-char-attribute char name))
622 (cond ((eq name 'jisx0208-1978/4X)
623 (insert (format "(%-18s . #x%04X)%s"
626 ((memq name '(->lowercase
627 ->uppercase ->titlecase
628 ->fullwidth <-fullwidth
630 ->vulgar-ideograph <-vulgar-ideograph
631 ->ancient-ideograph <-ancient-ideograph
632 ->original-ideograph <-original-ideograph
633 ->simplified-ideograph <-simplified-ideograph
634 ->wrong-ideograph <-wrong-ideograph
636 ->ideographic-variants
639 ->bopomofo <-bopomofo
640 ->ideographic <-ideographic
641 ideographic-structure))
642 (insert (format "(%-18s%s " name line-breaking))
643 (setq lbs (concat "\n" (make-string (current-column) ?\ ))
646 (setq cell (car value))
648 (setq cell (decode-char 'ucs cell)))
649 (cond ((characterp cell)
652 (char-db-insert-char-spec cell readable)
653 (setq separator lbs))
657 (if (consp (car cell))
658 (char-db-insert-char-spec cell readable)
659 (char-db-insert-char-reference cell readable))
660 (setq separator lbs))
664 (insert (prin1-to-string cell))
665 (setq separator " ")))
666 (setq value (cdr value)))
668 (insert line-breaking))
669 ((memq name '(ideograph=
670 original-ideograph-of
674 simplified-ideograph-of
676 ideographic-different-form-of))
677 (insert (format "(%-18s%s " name line-breaking))
678 (setq lbs (concat "\n" (make-string (current-column) ?\ ))
681 (setq cell (car value))
682 (if (and (consp cell)
687 (char-db-insert-alist cell readable)
688 (setq separator lbs))
691 (insert (prin1-to-string cell))
692 (setq separator " "))
693 (setq value (cdr value)))
695 (insert line-breaking))
696 ((string-match "^->" (symbol-name name))
698 (format "(%-18s %s)%s"
700 (mapconcat (lambda (code)
701 (cond ((symbolp code)
704 (format "#x%04X" code))
707 line-breaking code))))
711 (insert (format "(%-18s " name))
712 (setq lbs (concat "\n" (make-string (current-column) ?\ ))
715 (setq cell (car value))
716 (if (and (consp cell)
718 (setq ret (condition-case nil
726 (setq key (car (car rest)))
727 (if (find-charset key)
728 (setq cal (cons key cal))
729 (setq al (cons key al)))
730 (setq rest (cdr rest)))
733 (insert-char-attributes ret
736 (setq separator lbs))
739 (insert (prin1-to-string cell))
740 (setq separator " "))
741 (setq value (cdr value)))
743 (insert line-breaking))
745 (insert (format "(%-18s . %S)%s"
749 (setq attributes (cdr attributes)))
750 (while ccs-attributes
751 (setq name (car ccs-attributes))
752 (if (and (eq name (charset-name name))
753 (setq value (get-char-attribute char name)))
756 (cond ((memq name '(ideograph-daikanwa ideograph-gt
758 (if has-long-ccs-name
759 "(%-26s . %05d)\t; %c%s"
760 "(%-18s . %05d)\t; %c%s"))
762 (if has-long-ccs-name
763 "(%-26s . %06d)\t; %c%s"
764 "(%-18s . %06d)\t; %c%s"))
766 (if has-long-ccs-name
767 "(%-26s . #x%04X)\t; %c%s"
768 "(%-18s . #x%04X)\t; %c%s"))
770 (if has-long-ccs-name
771 "(%-26s . #x%02X)\t; %c%s"
772 "(%-18s . #x%02X)\t; %c%s")))
774 (if (= (charset-iso-graphic-plane name) 1)
776 (cond ((= (charset-dimension name) 1)
778 ((= (charset-dimension name) 2)
780 ((= (charset-dimension name) 3)
784 (char-db-decode-isolated-char name value)
786 (setq ccs-attributes (cdr ccs-attributes)))
789 (defun insert-char-data (char &optional readable
790 attributes ccs-attributes)
792 (narrow-to-region (point)(point))
793 (insert "(define-char
795 (insert-char-attributes char readable
796 attributes ccs-attributes)
798 (goto-char (point-min))
799 (while (re-search-forward "[ \t]+$" nil t)
801 (goto-char (point-max))
802 (tabify (point-min)(point-max))
806 (defun char-db-update-comment ()
809 (goto-char (point-min))
810 (let (cdef table char)
811 (while (re-search-forward "^[ \t]*\\(([^.()]+)\\)" nil t)
812 (goto-char (match-beginning 1))
813 (setq cdef (read (current-buffer)))
814 (when (find-charset (car cdef))
815 (goto-char (match-end 0))
818 (not (eq (car cdef) 'ideograph-daikanwa))
819 (or (memq (car cdef) '(ascii latin-viscii-upper
823 japanese-jisx0213-2))
824 (= (char-int (charset-iso-final-char (car cdef)))
826 (apply (function make-char) cdef)
827 (if (setq table (charset-mapping-table (car cdef)))
828 (set-charset-mapping-table (car cdef) nil))
830 (apply (function make-char) cdef)
832 (set-charset-mapping-table (car cdef) table)))))
833 (when (not (or (< (char-int char) 32)
834 (and (<= 128 (char-int char))
835 (< (char-int char) 160))))
836 (delete-region (point) (point-at-eol))
837 (insert (format "\t; %c" char)))
840 (defun insert-char-data-with-variant (char &optional printable
842 script excluded-script)
843 (insert-char-data char printable)
844 (let ((variants (or (char-variants char)
845 (let ((ucs (get-char-attribute char '->ucs)))
847 (delete char (char-variants (int-char ucs)))))))
849 (setq variants (sort variants #'<))
851 (setq variant (car variants))
852 (if (and (or (null script)
853 (null (setq vs (get-char-attribute variant 'script)))
855 (or (null excluded-script)
856 (null (setq vs (get-char-attribute variant 'script)))
857 (not (memq excluded-script vs))))
858 (or (and no-ucs-variant (get-char-attribute variant 'ucs))
859 (insert-char-data variant printable)))
860 (setq variants (cdr variants))
863 (defun insert-char-range-data (min max &optional script excluded-script)
867 (setq char (decode-char 'ucs code))
868 (if (get-char-attribute char 'ucs)
869 (insert-char-data-with-variant char nil 'no-ucs-variant
870 script excluded-script))
871 (setq code (1+ code))
874 (defun write-char-range-data-to-file (min max file
875 &optional script excluded-script)
876 (let ((coding-system-for-write 'utf-8))
878 (insert-char-range-data min max script excluded-script)
879 (write-region (point-min)(point-max) file))))
881 (defvar what-character-original-window-configuration)
884 (defun what-char-definition (char)
885 (interactive (list (char-after)))
886 (let ((buf (get-buffer-create "*Character Description*"))
887 (the-buf (current-buffer))
888 (win-conf (current-window-configuration)))
890 (make-local-variable 'what-character-original-window-configuration)
891 (setq what-character-original-window-configuration win-conf)
892 (setq buffer-read-only nil)
896 (insert-char-data-with-variant char 'printable)
897 ;; (char-db-update-comment)
898 (set-buffer-modified-p nil)
899 (view-mode the-buf (lambda (buf)
900 (set-window-configuration
901 what-character-original-window-configuration)
903 (goto-char (point-min)))
905 (set-window-configuration
906 what-character-original-window-configuration)
907 (signal (car err) (cdr err)))))))
909 (provide 'char-db-util)
911 ;;; char-db-util.el ends here