(est-coded-charset-priority-list): Add `=>cbeta'.
authorMORIOKA Tomohiko <tomo.git@chise.org>
Tue, 15 Mar 2016 04:31:34 +0000 (13:31 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Tue, 15 Mar 2016 04:31:34 +0000 (13:31 +0900)
(www-format-encode-string): Support &A-CBddddd;

cwiki-common.el

index f931c80..1454ece 100644 (file)
@@ -87,6 +87,7 @@
     =ruimoku-v6
     =big5
     =big5-cdp
+    =>cbeta
     =ucs-itaiji-001
     =ucs-itaiji-002))
 
          (encode-coding-region (point-min)(point-max) 'utf-8-mcs-er)
 
          (goto-char (point-min))
-         (while (re-search-forward "&CB\\([0-9]+\\);" nil t)
-           (setq code (string-to-int (match-string 1)))
+         (while (re-search-forward "&\\(A-\\)?CB\\([0-9]+\\);" nil t)
+           (setq code (string-to-int (match-string 2)))
            (replace-match
             (format "<img alt=\"CB%05d\" src=\"%s/cb-gaiji/%02d/CB%05d.gif\"
 style=\"%s\">"