From: MORIOKA Tomohiko Date: Fri, 14 Jan 2022 04:23:48 +0000 (+0900) Subject: (www-format-encode-string): Add settings for `===chise-hdic-tsj' and X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b6008f9d7f1780ec41ad97cbedc5d119bdc8a74;p=chise%2Fids.git (www-format-encode-string): Add settings for `===chise-hdic-tsj' and `=chise-hdic-tsj'. --- diff --git a/www/www-ids-find.el b/www/www-ids-find.el index 512338f..5759c6d 100644 --- a/www/www-ids-find.el +++ b/www/www-ids-find.el @@ -296,6 +296,18 @@ vertical-align:middle; width: auto; max-height: 60px\">" t 'literal)) (goto-char (point-min)) + (while (re-search-forward "&\\(R-\\)?CHISE-HDIC-TSJ\\([0-9A-F]+\\);" nil t) + (setq code (string-to-int (match-string 2) 16)) + (setq char (decode-char '===chise-hdic-tsj code)) + (when (setq ret (get-char-attribute char '=hdic-tsj-glyph-id)) + (replace-match + (format + "\"HDIC-TSJ-%s\"" + ret ret) + t 'literal))) + + (goto-char (point-min)) (while (re-search-forward "&\\(o-\\|G-\\|g2-\\|R-\\)?AJ1-\\([0-9]+\\);" nil t) (setq code (string-to-int (match-string 2))) (replace-match