(char-db-dump-ruimoku6): New function.
authortomo <tomo>
Thu, 5 Feb 2004 17:13:28 +0000 (17:13 +0000)
committertomo <tomo>
Thu, 5 Feb 2004 17:13:28 +0000 (17:13 +0000)
(char-db-dump): Call `char-db-dump-ruimoku6'.

char-db-dump.el

index 8db86dd..e515a70 100644 (file)
 
 
 ;;;###autoload
+(defun char-db-dump-ruimoku6 (directory)
+  (interactive "DDump ruimoku6 : ")
+  (let ((coding-system-for-write 'utf-8-mcs)
+       (code #xE000)
+       chr)
+    (with-temp-buffer
+      (insert ";; -*- coding: utf-8-mcs -*-\n")
+      (while (<= code #xE8FF)
+       (when (setq chr (decode-char '=ruimoku-v6 code 'defined-only))
+         (insert-char-data chr))
+       (setq code (1+ code)))
+      (write-region (point-min)(point-max)
+                   (expand-file-name "ruimoku6.el" directory)))))
+
+
+;;;###autoload
 (defun char-db-dump (directory)
   (interactive "DDirectory to dump : ")
   (char-db-dump-ideographs directory)
-  (char-db-dump-non-ideographs directory))
+  (char-db-dump-non-ideographs directory)
+  (char-db-dump-ruimoku6 directory))
 
 
 ;;; @ End.