Commit becd9edb authored by MORIOKA Tomohiko's avatar MORIOKA Tomohiko
Browse files

(char-db-dump-additional-idc): New function.

parent 9a775b98
......@@ -207,6 +207,38 @@
"additional-precomposed.el" directory)))))
(defun char-db-dump-additional-idc (directory)
(interactive "DDump additional-precomposed : ")
(let ((coding-system-for-write char-db-file-coding-system)
chars i chr ret)
(insert (format ";; -*- coding: %s -*-\n"
(setq i #x2FF0)
(while (<= i #x2ffB)
(setq chr (decode-char '=ucs i))
(dolist (f '(<-denotational <-denotational@component
(setq ret (get-char-attribute chr f))
(if (characterp ret)
(unless (memq ret chars)
(insert-char-data ret)
(setq chars (cons ret chars)))
(dolist (c (get-char-attribute chr f))
(unless (memq c chars)
(insert-char-data c)
(setq chars (cons c chars))))))
(dolist (ccs '(=ucs-var-001 =ucs-var-002 =ucs-var-003 =ucs-itaiji-001))
(when (setq chr (decode-char ccs i 'defined-only 'without-inheritance))
(unless (memq chr chars)
(insert-char-data chr)
(setq chars (cons chr chars)))))
(setq i (1+ i)))
(write-region (point-min)(point-max)
"additional-idc.el" directory)))))
(defun char-db-dump (directory)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment