1 ;; -*- coding: utf-8-mcs-er -*-
2 (require 'char-db-util)
4 (defvar chise-wiki-view-url "view.cgi")
5 (defvar chise-wiki-edit-url "edit/edit.cgi")
7 (defvar chise-wiki-bitmap-glyphs-url
8 "http://chise.zinbun.kyoto-u.ac.jp/glyphs")
10 (defvar chise-wiki-glyph-cgi-url
11 "http://chise.zinbun.kyoto-u.ac.jp/chisewiki/glyph.cgi")
13 (defun decode-uri-string (string &optional coding-system)
14 (if (> (length string) 0)
18 (mapconcat (lambda (char)
21 (char-to-string char)))
23 (while (string-match "%\\([0-9A-F][0-9A-F]\\)" string i)
24 (setq dest (concat dest
25 (substring string i (match-beginning 0))
28 (string-to-int (match-string 1 string) 16))))
31 (concat dest (substring string i))
34 (defun www-feature-type (feature-name)
35 (or (char-feature-property feature-name 'type)
36 (let ((str (symbol-name feature-name)))
38 ((string-match "\\*note\\(@[^*]+\\)?$" str)
40 ((string-match "\\*sources\\(@[^*]+\\)?$" str)
42 ((string-match "\\*" str)
44 ((string-match "^\\(->\\|<-\\)" str)
46 ((string-match "^ideographic-structure\\(@\\|$\\)" str)
50 (defun www-feature-value-format (feature-name)
51 (or (char-feature-property feature-name 'value-format)
52 (let ((type (www-feature-type feature-name)))
53 (cond ((eq type 'relation)
54 'space-separated-char-list)
60 (if (find-charset feature-name)
61 (if (and (= (charset-dimension feature-name) 2)
62 (= (charset-chars feature-name) 94))
64 " (" (decimal) ") <" (ku-ten) ">")
65 '("0x" (HEX) " (" (decimal) ")")))))
67 (defun char-feature-name-at-domain (feature-name domain)
68 (let ((name (symbol-name feature-name)))
70 ((string-match "@[^*]+$" name)
71 (intern (format "%s/%s" name domain))
74 (intern (format "%s@%s" name domain))
77 (defun char-feature-name-sans-versions (feature)
78 (let ((feature-name (symbol-name feature)))
79 (if (string-match "[@/]\\$rev=latest$" feature-name)
80 (intern (substring feature-name 0 (match-beginning 0)))
83 (defun www-char-feature (character feature)
84 (let ((latest-feature (char-feature-name-at-domain feature '$rev=latest)))
85 (mount-char-attribute-table latest-feature)
86 (or (char-feature character latest-feature)
87 (char-feature character feature))))
90 ;;; @ URI representation
93 (defun www-uri-decode-feature-name (uri-feature)
96 ((string-match "^from\\." uri-feature)
97 (intern (format "<-%s" (substring uri-feature (match-end 0))))
99 ((string-match "^to\\." uri-feature)
100 (intern (format "->%s" (substring uri-feature (match-end 0))))
102 ((string-match "^rep\\." uri-feature)
103 (intern (format "=%s" (substring uri-feature (match-end 0))))
105 ((string-match "^g\\." uri-feature)
106 (intern (format "=>>%s" (substring uri-feature (match-end 0))))
108 ((string-match "^gi\\." uri-feature)
109 (intern (format "=>>>%s" (substring uri-feature (match-end 0))))
111 ((string-match "^gi\\([0-9]+\\)\\." uri-feature)
112 (intern (format "=>>%s%s"
113 (make-string (string-to-int
114 (match-string 1 uri-feature))
116 (substring uri-feature (match-end 0))))
118 ((string-match "^a\\." uri-feature)
119 (intern (format "=>%s" (substring uri-feature (match-end 0))))
121 ((string-match "^a\\([0-9]+\\)\\." uri-feature)
122 (intern (format "%s>%s"
123 (make-string (string-to-int
124 (match-string 1 uri-feature))
126 (substring uri-feature (match-end 0))))
128 ((and (setq feature (intern (format "=>%s" uri-feature)))
129 (find-charset feature))
131 ((and (setq feature (intern (format "=>>%s" uri-feature)))
132 (find-charset feature))
134 ((and (setq feature (intern (format "=>>>%s" uri-feature)))
135 (find-charset feature))
137 ((and (setq feature (intern (format "=%s" uri-feature)))
138 (find-charset feature))
140 (t (intern uri-feature)))))
142 (defun www-uri-encode-feature-name (feature-name)
143 (setq feature-name (symbol-name feature-name))
145 ((string-match "^=\\([^=>]+\\)" feature-name)
146 (concat "rep." (substring feature-name (match-beginning 1)))
148 ((string-match "^=>>\\([^=>]+\\)" feature-name)
149 (concat "g." (substring feature-name (match-beginning 1)))
151 ((string-match "^=>>>\\([^=>]+\\)" feature-name)
152 (concat "gi." (substring feature-name (match-beginning 1)))
154 ((string-match "^=>>\\(>+\\)" feature-name)
156 (length (match-string 1 feature-name))
157 (substring feature-name (match-end 1)))
159 ((string-match "^=>\\([^=>]+\\)" feature-name)
160 (concat "a." (substring feature-name (match-beginning 1)))
162 ((string-match "^\\(=+\\)>" feature-name)
164 (length (match-string 1 feature-name))
165 (substring feature-name (match-end 0)))
167 ((string-match "^->" feature-name)
168 (concat "to." (substring feature-name (match-end 0)))
170 ((string-match "^<-" feature-name)
171 (concat "from." (substring feature-name (match-end 0)))
175 (defun www-uri-decode-char (char-rep)
178 ((string-match "\\(%3A\\|:\\)" char-rep)
179 (setq ccs (substring char-rep 0 (match-beginning 0))
180 cpos (substring char-rep (match-end 0)))
181 (setq ccs (www-uri-decode-feature-name ccs))
183 ((string-match "^0x" cpos)
185 (string-to-number (substring cpos (match-end 0)) 16))
188 (setq cpos (string-to-number cpos))
191 (decode-char ccs cpos))
194 (setq char-rep (decode-uri-string char-rep 'utf-8-mcs-er))
195 (when (= (length char-rep) 1)
199 (defun www-uri-encode-char (char)
200 (if (encode-char char '=ucs)
203 (format "%%%02X" byte))
204 (encode-coding-string (char-to-string char) 'utf-8-mcs-er)
206 (let ((ccs-list '(; =ucs
207 =cns11643-1 =cns11643-2 =cns11643-3
208 =cns11643-4 =cns11643-5 =cns11643-6 =cns11643-7
210 =jis-x0208 =jis-x0208@1990
213 =jis-x0213-1@2000 =jis-x0213-1@2004
214 =jis-x0208@1983 =jis-x0208@1978
218 =>>jis-x0208 =>>jis-x0213-1
219 =>jis-x0208 =>jis-x0213-1
225 (setq ccs (pop ccs-list))
226 (not (setq ret (encode-char char ccs 'defined-only)))))
229 (www-uri-encode-feature-name ccs)
231 ((and (setq ccs (car (split-char char)))
232 (setq ret (encode-char char ccs)))
234 (www-uri-encode-feature-name ccs)
237 (format "system-char-id:0x%X"
238 (encode-char char 'system-char-id))
242 ;;; @ Feature name presentation
245 (defun www-format-feature-name-default (feature-name)
249 (symbol-name feature-name)
253 (defun www-format-feature-name-as-metadata (feature-name &optional lang)
254 (let ((str (symbol-name feature-name))
257 ((string-match "\\*[^*]+$" str)
258 (setq base (substring str 0 (match-beginning 0))
259 meta (substring str (match-beginning 0)))
260 (concat (www-format-feature-name* (intern base) lang)
263 (www-format-feature-name-default feature-name)
266 (defun www-format-feature-name-as-rel-to (feature-name)
267 (concat "\u2192" (substring (symbol-name feature-name) 2)))
269 (defun www-format-feature-name-as-rel-from (feature-name)
270 (concat "\u2190" (substring (symbol-name feature-name) 2)))
272 (defun www-format-feature-name-as-CCS (feature-name)
275 (symbol-name feature-name)
277 (dest (upcase (pop rest))))
278 (when (string-match "^=+>*" dest)
279 (setq dest (concat (substring dest 0 (match-end 0))
281 (substring dest (match-end 0)))))
285 (setq dest (concat dest " " (upcase (pop rest)))))
286 (if (string-match "^[0-9]+$" (car rest))
287 (concat dest "-" (car rest))
288 (concat dest " " (upcase (car rest))))
292 (defun www-format-feature-name* (feature-name &optional lang)
296 (char-feature-property
298 (intern (format "name@%s" lang))))
299 (char-feature-property
300 feature-name 'name)))
301 ((find-charset feature-name)
302 (www-format-feature-name-as-CCS feature-name))
303 ((and (setq name (symbol-name feature-name))
304 (string-match "\\*" name))
305 (www-format-feature-name-as-metadata feature-name lang))
306 ((string-match "^\\(->\\)" name)
307 (www-format-feature-name-as-rel-to feature-name))
308 ((string-match "^\\(<-\\)" name)
309 (www-format-feature-name-as-rel-from feature-name))
311 (www-format-feature-name-default feature-name)))))
313 (defun www-format-feature-name (feature-name &optional lang)
314 (www-format-encode-string
315 (www-format-feature-name* feature-name lang)))
318 ;;; @ Feature value presentation
321 (defun www-format-value-as-kuten (value)
323 (- (lsh value -8) 32)
324 (- (logand value 255) 32)))
326 (defun www-format-value-default (value &optional without-tags)
330 (www-format-encode-string
334 (www-format-encode-string (format "%S" value) without-tags)))
336 (defun www-format-value-as-char-list (value &optional without-tags)
341 (www-format-encode-string
342 (format (if (characterp unit)
348 (if (characterp unit)
349 (format "<a href=\"%s?char=%s\">%s</a>"
351 (www-uri-encode-char unit)
352 (www-format-encode-string (char-to-string unit)))
353 (www-format-encode-string (format "%s" unit)))))
355 (www-format-encode-string (format "%s" value) without-tags)))
357 (defun www-format-value-as-ids (value &optional without-tags)
362 (www-format-encode-string
363 (format (if (characterp unit)
369 (if (characterp unit)
370 (format "<a href=\"%s?char=%s\">%s</a>"
372 (www-uri-encode-char unit)
373 (www-format-encode-string (char-to-string unit)))
374 (www-format-encode-string (format "%s" unit)))))
375 (ideographic-structure-to-ids value) " ")
376 (www-format-encode-string (format "%s" value) without-tags)))
378 (defun www-format-value-as-S-exp (value &optional without-tags)
379 (www-format-encode-string (format "%S" value) without-tags))
381 (defun www-format-value-as-HEX (value)
384 (www-format-value-as-S-exp value)))
386 (defun www-format-value-as-CCS-default (value)
389 (www-format-value-as-HEX value)
391 (www-format-value-as-S-exp value)))
393 (defun www-format-value-as-CCS-94x94 (value)
395 (format "0x%s [%s] (%d)"
396 (www-format-value-as-HEX value)
397 (www-format-value-as-kuten value)
399 (www-format-value-as-S-exp value)))
401 (defun www-format-value-as-kangxi-radical (value)
402 (if (and (integerp value)
405 (www-format-encode-string
406 (format "%c" (ideographic-radical value)))
407 (www-format-value-as-S-exp value)))
409 (defun www-format-value (object feature-name
410 &optional value format without-tags)
412 (setq value (www-char-feature object feature-name)))
413 (www-format-apply-value object feature-name
414 format nil value nil nil without-tags)
418 ;;; @ format evaluator
421 (defun www-format-encode-string (string &optional without-tags)
424 (let (plane code start end char variants ret)
425 (goto-char (point-min))
426 (while (search-forward "<" nil t)
427 (replace-match "<" nil t))
428 (goto-char (point-min))
429 (while (search-forward ">" nil t)
430 (replace-match ">" nil t))
432 (encode-coding-region (point-min)(point-max) 'utf-8-mcs-er)
433 (let ((coded-charset-entity-reference-alist
436 '(=cns11643-1 "C1-" 4 X)
437 '(=cns11643-2 "C2-" 4 X)
438 '(=cns11643-3 "C3-" 4 X)
439 '(=cns11643-4 "C4-" 4 X)
440 '(=cns11643-5 "C5-" 4 X)
441 '(=cns11643-6 "C6-" 4 X)
442 '(=cns11643-7 "C7-" 4 X)
444 '(=gb12345 "G1-" 4 X)
445 '(=jis-x0208@1990 "J90-" 4 X)
446 '(=jis-x0212 "JSP-" 4 X)
448 '(=jis-x0208@1997 "J97-" 4 X)
449 '(=jis-x0208@1978 "J78-" 4 X)
450 '(=jis-x0208@1983 "J83-" 4 X)
451 '(=zinbun-oracle "ZOB-" 4 d)
452 '(=jef-china3 "JC3-" 4 X)
453 '(=daikanwa "M-" 5 d)
454 coded-charset-entity-reference-alist)))
455 (encode-coding-region (point-min)(point-max) 'utf-8-mcs-er)
457 (goto-char (point-min))
458 (while (re-search-forward "&CB\\([0-9]+\\);" nil t)
459 (setq code (string-to-int (match-string 1)))
461 (format "<img alt=\"CB%05d\" src=\"%s/cb-gaiji/%02d/CB%05d.gif\">"
463 chise-wiki-bitmap-glyphs-url
467 (goto-char (point-min))
468 (while (re-search-forward "&J\\(78\\|83\\|90\\|97\\|SP\\)-\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]\\);" nil t)
469 (setq plane (match-string 1)
470 code (string-to-int (match-string 2) 16))
472 (format "<img alt=\"J%s-%04X\" src=\"%s/JIS-%s/%02d-%02d.gif\">"
474 chise-wiki-bitmap-glyphs-url
477 (- (logand code 255) 32))
480 (goto-char (point-min))
481 (while (re-search-forward "&G\\([01]\\)-\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]\\);" nil t)
482 (setq plane (string-to-int (match-string 1))
483 code (string-to-int (match-string 2) 16))
485 (format "<img alt=\"GB%d-%04X\" src=\"%s/GB%d/%02d-%02d.gif\">"
487 chise-wiki-bitmap-glyphs-url
490 (- (logand code 255) 32))
493 (goto-char (point-min))
494 (while (re-search-forward "&C\\([1-7]\\)-\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]\\);" nil t)
495 (setq plane (string-to-int (match-string 1))
496 code (string-to-int (match-string 2) 16))
498 (format "<img alt=\"CNS%d-%04X\" src=\"%s/CNS%d/%04X.gif\">"
500 chise-wiki-bitmap-glyphs-url
504 (goto-char (point-min))
505 (while (re-search-forward "&JC3-\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]\\);" nil t)
506 (setq code (string-to-int (match-string 1) 16))
508 (format "<img alt=\"JC3-%04X\" src=\"http://kanji.zinbun.kyoto-u.ac.jp/db/CHINA3/Gaiji/%04x.gif\">"
512 (goto-char (point-min))
513 (while (re-search-forward "&ZOB-\\([0-9]+\\);" nil t)
514 (setq code (string-to-int (match-string 1)))
516 (format "<img alt=\"ZOB-%04d\" src=\"%s/ZOB-1968/%04d.png\">"
518 chise-wiki-bitmap-glyphs-url
522 (goto-char (point-min))
523 (while (re-search-forward "&\\(G-\\)?GT-\\([0-9]+\\);" nil t)
524 (setq code (string-to-int (match-string 2)))
526 (format "<img alt=\"GT-%05d\" src=\"%s?char=GT-%05d\">"
528 chise-wiki-glyph-cgi-url
532 (goto-char (point-min))
533 (while (re-search-forward "&\\(G-\\)?GT-K\\([0-9]+\\);" nil t)
534 (setq code (string-to-int (match-string 2)))
536 (format "<img alt=\"GT-K%05d\" src=\"%s?char=GT-K%05d\">"
538 chise-wiki-glyph-cgi-url
542 (goto-char (point-min))
543 (while (re-search-forward "&B-\\([0-9A-F]+\\);" nil t)
544 (setq code (string-to-int (match-string 1) 16))
546 (format "<img alt=\"B-%04X\" src=\"%s?char=B-%04X\">"
548 chise-wiki-glyph-cgi-url
552 (goto-char (point-min))
553 (while (re-search-forward "&CDP-\\([0-9A-F]+\\);" nil t)
554 (setq code (string-to-int (match-string 1) 16))
556 (format "<img alt=\"CDP-%04X\" src=\"%s?char=CDP-%04X\">"
558 chise-wiki-glyph-cgi-url
562 (goto-char (point-min))
563 (while (re-search-forward "&\\(UU\\+\\|U-\\)\\([0-9A-F]+\\);" nil t)
564 (setq code (string-to-int (match-string 2) 16))
566 (format "<img alt=\"UU+%04X\" src=\"http://www.unicode.org/cgi-bin/refglyph?24-%04X\">"
571 (goto-char (point-min))
572 (while (re-search-forward "&MCS-\\([0-9A-F]+\\);" nil t)
573 (setq code (string-to-int (match-string 1) 16))
574 (setq start (match-beginning 0)
576 (setq char (decode-char 'system-char-id code))
577 (setq variants (or (www-char-feature char '->subsumptive)
578 (www-char-feature char '->denotational)))
580 (setq ret (www-format-encode-string
581 (char-to-string (car variants))))
582 (string-match "&MCS-\\([0-9A-F]+\\);" ret))
583 (setq variants (cdr variants)))
584 (unless (string-match "&MCS-\\([0-9A-F]+\\);" ret)
586 (delete-region start end)
589 ;; (goto-char (point-min))
590 ;; (while (search-forward ">-" nil t)
591 ;; (replace-match "&GT-" t 'literal))
594 (defun www-format-props-to-string (props &optional format)
596 (setq format (plist-get props :format)))
598 (plist-get props :flag)
599 (if (plist-get props :zero-padding)
601 (if (plist-get props :len)
602 (format "%d" (plist-get props :len)))
604 ((eq format 'decimal) "d")
605 ((eq format 'hex) "x")
606 ((eq format 'HEX) "X")
607 ((eq format 'S-exp) "S")
610 (defun www-format-apply-value (object feature-name
612 &optional uri-char uri-feature
617 ((memq format '(decimal hex HEX))
619 (format (www-format-props-to-string props format)
621 (www-format-encode-string
625 ((eq format 'wiki-text)
627 (www-xml-format-list value)
628 (www-format-eval-list value object feature-name nil uri-char))
631 (www-format-encode-string
632 (format (www-format-props-to-string props format)
636 (www-format-value-as-kuten value))
637 ((eq format 'kangxi-radical)
638 (www-format-value-as-kangxi-radical value))
639 ((eq format 'space-separated-char-list)
640 (www-format-value-as-char-list value without-tags))
641 ((eq format 'space-separated-ids)
642 (www-format-value-as-ids value without-tags))
644 (www-format-encode-string (format "%s" value) without-tags)
647 (www-format-value-default value without-tags)
650 (if (or without-tags (eq (plist-get props :mode) 'peek))
652 (format "%s <a href=\"%s?char=%s&feature=%s&format=%s\"
653 ><input type=\"submit\" value=\"edit\" /></a>"
656 uri-char uri-feature format))))
658 (defun www-format-eval-feature-value (char
660 &optional format lang uri-char value)
662 (setq value (www-char-feature char feature-name)))
664 (setq format (www-feature-value-format feature-name)))
667 (www-format-apply-value
670 uri-char (www-uri-encode-feature-name feature-name))
673 (cond ((null (cdr format))
674 (setq format (car format))
675 (www-format-apply-value
677 (car format) (nth 1 format) value
678 uri-char (www-uri-encode-feature-name feature-name))
681 (www-format-eval-list format char feature-name lang uri-char)
684 (defun www-format-eval-unit (exp char feature-name
685 &optional lang uri-char value)
687 (setq value (www-char-feature char feature-name)))
689 (setq uri-char (www-uri-encode-char char)))
691 ((stringp exp) (www-format-encode-string exp))
695 ((memq (car exp) '(value decimal hex HEX ku-ten kangxi-radical
697 (if (eq (car exp) 'value)
698 (www-format-eval-feature-value char feature-name
699 (plist-get (nth 1 exp) :format)
701 (www-format-apply-value
703 (car exp) (nth 1 exp) value
704 uri-char (www-uri-encode-feature-name feature-name)))
706 ((eq (car exp) 'name)
707 (format "<a href=\"%s?feature=%s&char=%s\">%s</a>"
709 (www-uri-encode-feature-name feature-name)
711 (www-format-feature-name feature-name lang))
713 ((eq (car exp) 'link)
718 (www-format-eval-list (plist-get (nth 1 exp) :ref)
719 char feature-name lang uri-char)
720 (www-format-eval-list (nthcdr 2 exp)
721 char feature-name lang uri-char)))
727 (www-format-eval-list (nthcdr 2 exp) char feature-name
731 (defun www-format-eval-list (format-list char feature-name
732 &optional lang uri-char)
733 (if (consp format-list)
736 (www-format-eval-unit exp char feature-name lang uri-char))
738 (www-format-eval-unit format-list char feature-name lang uri-char)))
744 (defun www-xml-format-props (props)
748 (setq key (pop props)
751 (setq key (symbol-name key)))
752 (if (eq (aref key 0) ?:)
753 (setq key (substring key 1)))
755 (format "%s %s=\"%s\""
757 (www-format-encode-string
758 (format "%s" val) 'without-tags))))
761 (defun www-xml-format-unit (format-unit)
762 (let (name props children ret)
764 ((stringp format-unit)
765 (mapconcat (lambda (c)
768 ;; ((eq c ?<) "&lt;")
769 ;; ((eq c ?>) "&gt;")
771 (char-to-string c))))
772 (www-format-encode-string format-unit 'without-tags)
776 (setq name (car format-unit)
777 props (nth 1 format-unit)
778 children (nthcdr 2 format-unit))
779 (when (eq name 'link)
780 (setq ret (plist-get props :ref))
781 (unless (stringp ret)
782 (setq props (plist-remprop (copy-list props) :ref))
784 (cons (list* 'ref nil ret)
787 (format "<%s%s>%s</%s>"
790 (www-xml-format-props props)
792 (www-xml-format-list children)
795 name (www-xml-format-props props)))
798 (format "%s" format-unit)))))
800 (defun www-xml-format-list (format-list)
801 (if (atom format-list)
802 (www-xml-format-unit format-list)
803 (mapconcat #'www-xml-format-unit
810 (defun www-html-display-text (text)
814 (goto-char (point-min))
815 (while (search-forward "<" nil t)
816 (replace-match "<" nil t))
817 (goto-char (point-min))
818 (while (search-forward ">" nil t)
819 (replace-match ">" nil t))
820 (goto-char (point-min))
821 (while (re-search-forward "\\[\\[\\([^]|[]+\\)|\\([^][]+\\)\\]\\]" nil t)
823 (format "<a href=\"%s\">%s</a>"
827 (encode-coding-region (point-min)(point-max) 'utf-8-mcs-er)
828 (goto-char (point-min))
829 (while (search-forward ">-" nil t)
830 (replace-match "&GT-" nil t))
833 (defun www-html-display-paragraph (text)
835 (www-html-display-text text)
842 (defvar coded-charset-GlyphWiki-id-alist
844 (=ucs@JP "u" 4 x nil)
845 (=ucs@jis "u" 4 x nil)
846 (=ucs@gb "u" 4 x "-g")
847 (=ucs@cns "u" 4 x "-t")
848 (=ucs@ks "u" 4 x "-k")
849 (=ucs@iso "u" 4 x "-u")
850 (=ucs@unicode "u" 4 x "-us")
851 (=adobe-japan1-6 "aj1-" 5 d nil)
853 (=gt-k "gt-k" 5 d nil)
854 (=big5-cdp "cdp-" 4 x nil)
855 (=cbeta "cb" 5 d nil)
856 (=jis-x0208@1978/1pr "j78-" 4 x nil)
857 (=jis-x0208@1978/-4pr "j78-" 4 x nil)
858 (=jis-x0208@1978 "j78-" 4 x nil)
859 (=jis-x0208@1983 "j83-" 4 x nil)
860 (=jis-x0208@1990 "j90-" 4 x nil)
861 (=jis-x0212 "jsp-" 4 x nil)
862 (=jis-x0213-1@2000 "jx1-2000-" 4 x nil)
863 (=jis-x0213-1@2004 "jx1-2004-" 4 x nil)
864 (=jis-x0213-2 "jx2-" 4 x nil)
865 (=cns11643-1 "c1-" 4 x nil)
866 (=cns11643-2 "c2-" 4 x nil)
867 (=cns11643-3 "c3-" 4 x nil)
868 (=cns11643-4 "c4-" 4 x nil)
869 (=cns11643-5 "c5-" 4 x nil)
870 (=cns11643-6 "c6-" 4 x nil)
871 (=cns11643-7 "c7-" 4 x nil)
872 (=daikanwa "dkw-" 5 d nil)
873 (=jef-china3 "jc3-" 4 x nil)
875 (=ks-x1001 "k0-" 4 x nil)
878 (defun char-GlyphWiki-id (char)
879 (let ((rest coded-charset-GlyphWiki-id-alist)
883 (setq spec (pop rest))
884 (null (setq ret (char-feature char (car spec))))))
886 (format (format "%s%%0%d%s%s"
890 (or (nth 4 spec) ""))
897 (provide 'cwiki-common)
899 ;;; cwiki-common.el ends here