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