(www-format-encode-string): Display "&A-IWDSU+xxxx;".
authorMORIOKA Tomohiko <tomo.git@chise.org>
Wed, 4 May 2016 13:10:34 +0000 (22:10 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Wed, 4 May 2016 13:10:34 +0000 (22:10 +0900)
cwiki-common.el

index 326fa7f..f7c2269 100644 (file)
@@ -1032,6 +1032,17 @@ style=\"vertical-align:middle; width: 48px; height: 48px\">"
             t 'literal))
 
          (goto-char (point-min))
+         (while (re-search-forward "&A-IWDSU\\+\\([0-9A-F]+\\);" nil t)
+           (setq code (string-to-int (match-string 1) 16))
+           (replace-match
+            (format "<img alt=\"A-IWDSU+%04x\" src=\"http://glyphwiki.org/glyph/u%04x.100px.png\"
+style=\"vertical-align:middle; width: 48px; height: 48px\">"
+                    code
+                    code
+                    www-format-char-img-style)
+            t 'literal))
+
+         (goto-char (point-min))
          (while (re-search-forward "&U-v\\([0-9]+\\)\\+\\([0-9A-F]+\\);" nil t)
            (setq plane (string-to-int (match-string 1))
                  code (string-to-int (match-string 2) 16))