From 5c6277dd94028dd9ec60cf026405581ac0eb48b5 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Wed, 22 Mar 2017 16:54:14 +0900 Subject: [PATCH] (www-ids-find-version): Update to 0.90.1. (www-ids-insert-chars-including-components*): New function. (www-ids-insert-chars-including-components): New implementation; use `ideograph-find-products' instead of `ideographic-products-find'; use `www-ids-insert-chars-including-components*'. (www-batch-ids-find): Update URL of www-ids-find.el. --- www/www-ids-find.el | 134 ++++++++++++++++++++++++++++++++++----------------- 1 file changed, 89 insertions(+), 45 deletions(-) diff --git a/www/www-ids-find.el b/www/www-ids-find.el index b42bf75..eed544c 100644 --- a/www/www-ids-find.el +++ b/www/www-ids-find.el @@ -18,7 +18,7 @@ (concat dest (substring string i)) coding-system)))) -(defconst www-ids-find-version "0.26") +(defconst www-ids-find-version "0.90.1") (defvar www-ids-find-ideographic-products-file-name (expand-file-name "ideographic-products" @@ -182,9 +182,57 @@ (princ (encode-coding-string "⇒[唐代拓本]" 'utf-8-jp-er))) (princ "
\n"))) +(defun www-ids-insert-chars-including-components* (components + &optional ignored-chars products) + (unless products + (setq products (ideograph-find-products components ignored-chars))) + (let (is as bs len) + (setq len (length products)) + (princ "\n") + ) + ignored-chars) + (defun www-ids-insert-chars-including-components (components &optional ignored-chars) - (let ((products (ideographic-products-find components)) + (let ((products (ideograph-find-products components ignored-chars)) is as bs len ignore-children) (setq len (length products)) (when (>= len 1024) @@ -196,31 +244,31 @@ (if (>= len 2048) (dolist (c products) (www-ids-find-format-char c)) - (princ "\n") - )) + )) + ) ignored-chars) (defun www-batch-ids-find () @@ -398,7 +442,7 @@ href=\"http://www.shuiren.org/\">睡人亭)による解説 >過立齋)