From 0c8fb75c8f76ec5ebfd6ecd0d4727ec3dbded018 Mon Sep 17 00:00:00 2001 From: tomo Date: Wed, 22 Sep 2010 11:45:22 +0000 Subject: [PATCH] (www-ids-find-version): Update to 0.25.1. (www-ids-find-char-viewer-url): New variable; use CHISE-wiki instead of CHISE char-desc. (www-ids-find-format-char): Use `www-ids-find-char-viewer-url'. (www-batch-ids-find): Use http://www.chise.org/ instead of http://chise.zinbun.kyoto-u.ac.jp/chise/. --- www/www-ids-find.el | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/www/www-ids-find.el b/www/www-ids-find.el index 8c5b29a..45ee759 100644 --- a/www/www-ids-find.el +++ b/www/www-ids-find.el @@ -15,7 +15,7 @@ (concat dest (substring string i)) coding-system)))) -(defconst www-ids-find-version "0.25.0") +(defconst www-ids-find-version "0.25.1") (defvar www-ids-find-ideographic-products-file-name (expand-file-name "ideographic-products" @@ -25,6 +25,9 @@ "character" chise-system-db-directory)))) +(defvar www-ids-find-char-viewer-url + "/chisewiki/view.cgi?char=") + (defvar www-ids-find-chise-link-map-url-prefix "http://fonts.jp/chise_linkmap/map.cgi?code=") @@ -39,7 +42,8 @@ (cond ((string-match "&CB\\([0-9]+\\);" str) (setq code (string-to-int (match-string 1 str))) - (insert "\"CB%05d\"\n" code (/ code 1000) code)) @@ -48,7 +52,8 @@ ) ((string-match "&JC3-\\([0-9A-F]+\\);" str) (setq code (string-to-int (match-string 1 str) 16)) - (insert "\"JC3-%04X\"\n" code code)) @@ -58,7 +63,8 @@ ((string-match "&J\\(78\\|83\\|90\\|SP\\)-\\([0-9A-F]+\\);" str) (setq plane (match-string 1 str) code (string-to-int (match-string 2 str) 16)) - (insert "\"J%s-%04X\"\n" plane code plane @@ -70,7 +76,8 @@ ((string-match "&G\\([01]\\)-\\([0-9A-F]+\\);" str) (setq plane (string-to-int (match-string 1 str)) code (string-to-int (match-string 2 str) 16)) - (insert "\"G%d-%04X\"\n" plane code plane @@ -82,7 +89,8 @@ ((string-match "&C\\([1-7]\\)-\\([0-9A-F]+\\);" str) (setq plane (string-to-int (match-string 1 str)) code (string-to-int (match-string 2 str) 16)) - (insert "\"C%d-%04X\"\n" plane code plane code)) @@ -91,7 +99,8 @@ ) ((string-match "&ZOB-\\([0-9]+\\);" str) (setq code (string-to-int (match-string 1 str))) - (insert "\"ZOB-%04d\"\n" code code)) @@ -99,7 +108,8 @@ (insert (format "ZOB-%04d" code))) ) (t - (insert "睡人亭)による解説