(char-db-dump-oracle-bones): New function.
authortomo <tomo>
Mon, 25 Jul 2005 00:12:20 +0000 (00:12 +0000)
committertomo <tomo>
Mon, 25 Jul 2005 00:12:20 +0000 (00:12 +0000)
(char-db-dump): Call `char-db-dump-oracle-bones'.

char-db-dump.el

index b271cbf..28de4a5 100644 (file)
 
 
 ;;;###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)
   (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))