From: tomo Date: Mon, 25 Jul 2005 00:12:20 +0000 (+0000) Subject: (char-db-dump-oracle-bones): New function. X-Git-Tag: chise-base-0_23~12 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60b0de6f78af13a1292d072f984a86a63343ec84;p=chise%2Ftomoyo-tools.git (char-db-dump-oracle-bones): New function. (char-db-dump): Call `char-db-dump-oracle-bones'. --- diff --git a/char-db-dump.el b/char-db-dump.el index b271cbf..28de4a5 100644 --- a/char-db-dump.el +++ b/char-db-dump.el @@ -138,6 +138,22 @@ ;;;###autoload +(defun char-db-dump-oracle-bones (directory) + (interactive "DDump Oracle-Bones : ") + (let ((coding-system-for-write char-db-file-coding-system) + (code 1) + chr) + (with-temp-buffer + (insert (format ";; -*- coding: %s -*-\n" + char-db-file-coding-system)) + (while (<= code 8192) + (when (setq chr (decode-char '=zinbun-oracle code 'defined-only)) + (insert-char-data chr)) + (setq code (1+ code))) + (write-region (point-min)(point-max) + (expand-file-name "Oracle-Bones.el" directory))))) + +;;;###autoload (defun char-db-dump-ruimoku6 (directory) (interactive "DDump ruimoku6 : ") (let ((coding-system-for-write char-db-file-coding-system) @@ -177,6 +193,7 @@ (interactive "DDirectory to dump : ") (char-db-dump-ideographs directory) (char-db-dump-non-ideographs directory) + (char-db-dump-oracle-bones directory) (char-db-dump-ruimoku6 directory) (char-db-dump-additional-precomposed directory))