From: tomo Date: Fri, 2 Dec 2005 12:59:31 +0000 (+0000) Subject: Don't use `map-char-attribute' to eliminate `ideographic-products'; X-Git-Tag: chise-base-0_23~63 X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fids.git;a=commitdiff_plain;h=18eb38c9ba2664f71ae69b6d87259f4ad12e04e1 Don't use `map-char-attribute' to eliminate `ideographic-products'; delete the corresponding file instead. --- diff --git a/install-ids.el b/install-ids.el index d0fcf73..8d7f1e2 100644 --- a/install-ids.el +++ b/install-ids.el @@ -12,12 +12,12 @@ (princ "done.\n")) -(mount-char-attribute-table 'ideographic-products) -(map-char-attribute - (lambda (c v) - (remove-char-attribute c 'ideographic-products) - nil) - 'ideographic-products) +;; (mount-char-attribute-table 'ideographic-products) +;; (map-char-attribute +;; (lambda (c v) +;; (remove-char-attribute c 'ideographic-products) +;; nil) +;; 'ideographic-products) (install-ids-read-file "IDS-JIS-X0208-1990.txt" load-ids-simplify t) @@ -61,7 +61,20 @@ (princ "done.\n") (princ "Updating char-feature `ideographic-products'...") -(ids-update-index) +(let* ((feature-dir + (expand-file-name + "feature" + (expand-file-name + "character" chise-system-db-directory))) + (p-file + (expand-file-name "ideographic-products" feature-dir)) + old-p-file) + (when (file-exists-p p-file) + (setq old-p-file (make-temp-name p-file)) + (rename-file p-file old-p-file)) + (ids-update-index) + (when old-p-file + (delete-file old-p-file))) (princ "done.\n") ;;; install-ids.el ends hear