From 10322e9002aba7e4260bd3e73b1e374f3199ae6e Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Tue, 18 Jan 2022 12:04:32 +0900 Subject: [PATCH] (www-format-encode-string): Add settings for `===chise-hdic-ktb' and `=chise-hdic-ktb'. --- 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 3596bbf..c7e95c6 100644 --- a/www/www-ids-find.el +++ b/www/www-ids-find.el @@ -320,6 +320,18 @@ vertical-align:middle; width: auto; max-height: 60px\">" t 'literal))) (goto-char (point-min)) + (while (re-search-forward "&\\(R-\\)?CHISE-HDIC-KTB\\([0-9A-F]+\\);" nil t) + (setq code (string-to-int (match-string 2) 16)) + (setq char (decode-char '===chise-hdic-ktb code)) + (when (setq ret (get-char-attribute char '=hdic-ktb-entry-id)) + (replace-match + (format + "\"HDIC-KTB-%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