From 6b6008f9d7f1780ec41ad97cbedc5d119bdc8a74 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Fri, 14 Jan 2022 13:23:48 +0900 Subject: [PATCH] (www-format-encode-string): Add settings for `===chise-hdic-tsj' and `=chise-hdic-tsj'. --- www/www-ids-find.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 1.7.10.4