X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=ids-dump.el;h=e531c16cf3f72bc6c19cdb9c871e97327dc7a7db;hb=bfb4acc1b34f8180f2838d47b0804a334a90f4a3;hp=32ec4fceb7cfe10d23b942065ac82acd0b8daff9;hpb=7da402caa8e23136c47367608e16b9cb52c6c1e7;p=chise%2Fids.git diff --git a/ids-dump.el b/ids-dump.el index 32ec4fc..e531c16 100644 --- a/ids-dump.el +++ b/ids-dump.el @@ -1,6 +1,6 @@ ;;; ids-dump.el --- Dump utility of IDS-* files -;; Copyright (C) 2002,2003,2004,2005 MORIOKA Tomohiko +;; Copyright (C) 2002,2003,2004,2005,2009,2011,2019,2022 MORIOKA Tomohiko ;; Author: MORIOKA Tomohiko ;; Keywords: IDS, IDC, Ideographs, UCS, Unicode @@ -159,7 +159,7 @@ h l (decode-builtin-char 'japanese-jisx0208-1990 (logior (lsh h 8) l)) - (or (ids-dump-format-list + (or (ideographic-structure-to-ids (get-char-attribute chr 'ideographic-structure)) ""))) (setq cell (1+ cell))) @@ -174,7 +174,7 @@ h l (decode-builtin-char 'japanese-jisx0208-1990 (logior (lsh h 8) l)) - (or (ids-dump-format-list + (or (ideographic-structure-to-ids (get-char-attribute chr 'ideographic-structure)) ""))) (setq cell (1+ cell))))) @@ -271,6 +271,14 @@ (interactive "Fdump IDS-UCS-Basic : ") (ids-dump-range "IDS-UCS-Basic.txt" filename #'ids-dump-insert-ccs-ranges 'ucs "U+%04X\t%c\t%s\n" + '(#x4E00 . #x9FEA))) + +;;;###autoload +(defun ids-dump-ucs-basic@unicode (filename) + (interactive "Fdump IDS-UCS-Basic : ") + (ids-dump-range "IDS-UCS-Basic_u.txt" filename + #'ids-dump-insert-ccs-ranges '=ucs@unicode + "UU+%04X\t%c\t%s\n" '(#x4E00 . #x9FA5))) ;;;###autoload @@ -337,6 +345,13 @@ '(#x2F800 . #x2FA1D))) ;;;###autoload +(defun ids-dump-ucs-ext-h (filename) + (interactive "Fdump IDS-UCS-Ext-H : ") + (ids-dump-range "IDS-UCS-Ext-H.txt" filename + #'ids-dump-insert-ccs-ranges 'ucs "U+%04X\t%c\t%s\n" + '(#x31350 . #x323AF))) + +;;;###autoload (defun ids-dump-cns11643-1 (filename) (interactive "Fdump IDS-CNS-1 : ") (ids-dump-range "IDS-CNS-1.txt" filename