From: MORIOKA Tomohiko Date: Mon, 7 Dec 2020 00:36:28 +0000 (+0900) Subject: (www-format-encode-string): Format &(o-|G-|g2-|R-)HD-TK-dddddddd; X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=ebe341d23879fafeffb99e9bf85e4b8e869f1493;p=chise%2Fest.git (www-format-encode-string): Format &(o-|G-|g2-|R-)HD-TK-dddddddd; --- 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))