From: MORIOKA Tomohiko Date: Sun, 16 Jan 2022 05:57:37 +0000 (+0900) Subject: (www-format-encode-string): Add settings for `===chise-hdic-syp' and X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c65c567a1c33ff0376210713e59440256c1da50b;p=chise%2Fids.git (www-format-encode-string): Add settings for `===chise-hdic-syp' and `=chise-hdic-syp'. --- 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