From ebe341d23879fafeffb99e9bf85e4b8e869f1493 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Mon, 7 Dec 2020 09:36:28 +0900 Subject: [PATCH] (www-format-encode-string): Format &(o-|G-|g2-|R-)HD-TK-dddddddd; --- cwiki-common.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cwiki-common.el b/cwiki-common.el index 8e235d1..291a138 100644 --- a/cwiki-common.el +++ b/cwiki-common.el @@ -991,6 +991,18 @@ style=\"vertical-align:middle\">" t 'literal)) (goto-char (point-min)) + (while (re-search-forward "&\\(o-\\|G-\\|g2-\\|R-\\)?HD-TK-\\([0-9]+\\);" nil t) + (setq code (string-to-int (match-string 2))) + (replace-match + (format "\"HD-KS%06d\"" + code + chise-wiki-bitmap-glyphs-url + code + www-format-char-img-style) + t 'literal)) + + (goto-char (point-min)) (while (re-search-forward "&G\\([01]\\)-\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]\\);" nil t) (setq plane (string-to-int (match-string 1)) code (string-to-int (match-string 2) 16)) -- 1.7.10.4