(est-coded-charset-priority-list): Add `=>ucs@iwds-1' and
authorMORIOKA Tomohiko <tomo.git@chise.org>
Wed, 26 Jul 2017 18:48:41 +0000 (03:48 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Wed, 26 Jul 2017 18:48:41 +0000 (03:48 +0900)
`=>ucs@component'.
(www-format-encode-string): Display "&A-compU+hhhh;" entity
references.

cwiki-common.el

index 1f7e082..51c36be 100644 (file)
     ===ucs@unicode
     ==>ucs@bucs
     ===daikanwa/+p
-    ===gt))
+    ===gt
+    =>ucs@iwds-1
+    =>ucs@component))
 
 (defun decode-uri-string (string &optional coding-system)
   (if (> (length string) 0)
@@ -1035,6 +1037,17 @@ style=\"vertical-align:middle; width: 48px; height: 48px\">"
             t 'literal))
 
          (goto-char (point-min))
+         (while (re-search-forward "&A-compU[+-]\\([0-9A-F]+\\);" nil t)
+           (setq code (string-to-int (match-string 1) 16))
+           (replace-match
+            (format "<img alt=\"u%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-i\\([0-9]+\\)\\+\\([0-9A-F]+\\);" nil t)
            (setq plane (string-to-int (match-string 1))
                  code (string-to-int (match-string 2) 16))