1 ;; -*- coding: utf-8-mcs-er -*-
2 (require 'cwiki-format)
3 (require 'char-db-json)
4 (require 'concord-turtle-dump)
6 (defvar chise-wiki-view-url "view.cgi")
7 (defvar chise-wiki-edit-url "edit.cgi")
8 (defvar chise-wiki-add-url "add.cgi")
10 (defun www-edit-display-feature-input-box (char feature-name
11 &optional format value)
13 (setq char (or (concord-decode-object '=id char 'feature)
14 (concord-make-object 'feature char))))
16 (setq format 'default))
18 (setq value (www-get-feature-value char feature-name)))
19 (if (and (symbolp value)
20 (eq format 'wiki-text))
21 (setq value (list (list value))))
23 (format "<p><input type=\"text\" name=\"feature-name\"
24 size=\"32\" maxlength=\"256\" value=\"%s\">"
26 (princ (encode-coding-string " \u2190 " 'utf-8-mcs-er))
28 (format "%s<input type=\"text\" name=\"%s\"
29 size=\"64\" maxlength=\"256\" value=\"%s\">
30 <input type=\"submit\" value=\"set\" /></p>
32 (if (or (eq format 'HEX)(eq format 'hex))
36 (mapconcat (lambda (c)
38 ;; ((eq c ?<) "&lt;")
39 ;; ((eq c ?>) "&gt;")
40 ((eq c ?\u0022) """)
43 (est-format-list value format nil nil " ")
47 (defun www-display-object-desc (genre uri-object &optional uri-feature-name
50 uri-feature-name-to-edit editing-format)
53 (let ((object (www-uri-decode-object genre uri-object))
54 (est-eval-list-feature-items-limit est-eval-list-feature-items-limit)
55 (est-view-url-prefix (if uri-feature-name
58 (rdf-uri-object (if est-hide-cgi-mode
59 (if (string-match "=" uri-object)
61 (est-uri-decode-feature-name-body
62 (substring uri-object 0 (match-beginning 0)))
64 (est-uri-decode-feature-name-body
65 (substring uri-object (match-end 0))))
67 feature-name-to-display feature-name-to-edit
68 base-name-to-edit metadata-name-to-edit
70 logical-feature chise-wiki-displayed-features
72 GlyphWiki-id HNG-card HNG-card-id HNG-card-cobj ret object-spec
73 item-code page char-num glyph-image-id
74 width height image-cobj base-image x y w h)
78 (setq without-header t))
80 (when uri-feature-name-to-edit
81 (setq feature-name-to-edit
82 (www-uri-decode-feature-name uri-feature-name-to-edit))
83 (setq ret (symbol-name feature-name-to-edit))
84 (if (string-match "\\*" ret)
85 (setq base-name-to-edit (intern
86 (substring ret 0 (match-beginning 0)))
87 metadata-name-to-edit (intern
88 (substring ret (match-end 0))))
89 (setq base-name-to-edit feature-name-to-edit))
90 (when (stringp editing-format)
91 (setq editing-format (intern editing-format))))
92 (when (and (eq genre 'character)
93 (= (length uri-object) 1))
94 (setq uri-object (www-uri-encode-object object)))
99 <style type=\"text/css\">
102 .ids { vertical-align: middle; font-size: 40px; line-height: 100%%; }
103 a { text-decoration: none; }
104 .ids a { color: black; }
105 ul { margin: 0 0; color: black; }
106 li { margin: 0 0 0 2em; }
107 .feature-name { font-family: sans-serif; font-weight: bold; }
108 .feature-name a { color: black; }
112 display: inline-block;
113 border-bottom: 1px dotted black;
116 .tooltip .tooltiptext {
122 background-color: black;
132 .value .image-list img { height: 320px; vertical-align: top; }
134 .list .tooltip:hover .tooltiptext {
141 src=\"http://hng.chise.org/openseadragon/openseadragon.min.js\"></script>
143 <title>EsT %s = %s</title>
146 (decode-uri-string uri-object 'utf-8-mcs-er))
149 (when (eq genre 'character)
150 (dolist (feature (char-feature-property '$object 'additional-features))
151 (mount-char-attribute-table
152 (char-feature-name-at-domain feature '$rev=latest))))
156 (if est-hide-cgi-mode
157 "<div style=\"text-align:right;\">
158 <a href=\"../../edit/view.cgi?%s=%s\">
159 <input type=\"submit\" value=\"Edit\" />
161 "<div style=\"text-align:right;\">
162 <a href=\"edit/view.cgi?%s=%s\">
163 <input type=\"submit\" value=\"Edit\" />
165 genre rdf-uri-object)
167 "<div style=\"text-align:right;\">
168 <a href=\"../view/%s/%s\">
169 <input type=\"submit\" value=\"Simple\" />
172 (if (string-match ":" uri-object)
174 (est-uri-encode-feature-name-body
175 (substring uri-object 0 (match-beginning 0)))
177 (est-uri-encode-feature-name-body
178 (substring uri-object (match-end 0))))))))
180 (format "<input type=\"submit\" value=\"New Account\" />
181 <a href=\"./%s/index.ttl\"><input type=\"submit\" value=\"RDF (Turtle)\" /></a>
182 <a href=\"http://www.chise.org/est/rdf.cgi?%s=%s\">
183 <input type=\"submit\" value=\"XML (old RDF)\" />
189 (if (eq genre 'character)
191 <a href=\"/est/view/%s/%s/data.json\">
192 <input type=\"submit\" value=\"JSON\" />
194 genre rdf-uri-object)
196 (when (setq parents (www-get-feature-value object '<-denotational))
197 (if (characterp parents)
198 (setq parents (list parents)))
199 (princ (format "<p>%s %s</p>\n<hr>\n"
200 (www-format-value-as-char-list parents)
201 (www-format-feature-name '->denotational lang))))
202 (when (setq parents (www-get-feature-value object '<-subsumptive))
203 (if (characterp parents)
204 (setq parents (list parents)))
205 (princ (format "<p>%s %s</p>\n<hr>\n"
206 (www-format-value-as-char-list parents)
207 (www-format-feature-name '->subsumptive lang))))
208 (when (eq genre 'character)
209 (setq GlyphWiki-id (char-GlyphWiki-id object)))
211 ((eq genre 'image-resource)
213 (if (setq ret (concord-object-get object '=location@iiif))
215 (car (concord-object-get object '<-image-segment)))
216 (format "<a href=\"%s...$.zoom-xywh=%d,%d,%d,%d\"
217 ><img alt=\"%s\" src=\"%s\" /></a>"
218 (www-uri-encode-object base-image)
219 (concord-object-get object 'image-offset-x)
220 (concord-object-get object 'image-offset-y)
221 (concord-object-get object 'image-width)
222 (concord-object-get object 'image-height)
224 (if (and image-selection
225 (string-match "\\([0-9]+\\),\\([0-9]+\\),\\([0-9]+\\),\\([0-9]+\\)" image-selection))
227 (setq x (string-to-int (match-string 1 image-selection))
228 y (string-to-int (match-string 2 image-selection))
229 w (string-to-int (match-string 3 image-selection))
230 h (string-to-int (match-string 4 image-selection)))
232 (concord-object-get object 'image-width)))
233 ;; (setq height (float
234 ;; (concord-object-get object 'image-height)))
235 (format "<div id=\"openseadragon1\"
236 style=\"width: 800px; height: 600px;\"></div>
238 <script type=\"text/javascript\">
240 viewer = OpenSeadragon({
241 id: \"openseadragon1\",
242 prefixUrl: \"http://hng.chise.org/openseadragon/images/\",
243 preserveViewport: true,
248 tileSources: [ \"%s/info.json\" ]
250 viewer.addHandler('open', function () {
251 var newBounds = new OpenSeadragon.Rect( %f, %f, %f, %f, 0 );
252 viewer.viewport.fitBounds(newBounds, true);
253 viewer.viewport.applyConstraints();
263 (format "<div id=\"openseadragon1\"
264 style=\"width: 800px; height: 600px;\"></div>
266 <script type=\"text/javascript\">
268 id: \"openseadragon1\",
269 prefixUrl: \"http://hng.chise.org/openseadragon/images/\",
270 preserveViewport: true,
275 tileSources: [ \"%s/info.json\" ]
280 (setq ret (concord-object-get object '=location))
281 (format "<img alt=\"%s\" src=\"%s\" />"
284 ((or (and (eq genre 'glyph-image)
286 (car (concord-object-get object '->image-resource))))
287 (and (eq genre 'character)
288 (setq ret (www-format-encode-string
289 (est-format-object object 'readable)))
291 "<img alt=\"SW-JIGUGE\\([45]\\)-\\([0-9][0-9][0-9]\\)\\([0-9][0-9]\\)"
293 (setq item-code (string-to-int (match-string 1 ret))
294 page (string-to-int (match-string 2 ret))
295 char-num (string-to-int (match-string 3 ret)))
297 (cond ((eq item-code 4)
299 (format "zinbun/toho/A024/A024%04d/char=%d"
300 (+ page 18) char-num))
304 (format "zinbun/toho/A020/A020%04d/char=%d"
305 (+ page 16) char-num))
308 (concord-decode-object '=id glyph-image-id 'glyph-image))
310 (car (concord-object-get image-cobj '->image-resource)))
312 (if (and (setq ret (concord-object-get image-cobj '=location@iiif))
314 (car (concord-object-get image-cobj '<-image-segment))))
316 (format "<a href=\"../image-resource/%s...$.zoom-xywh=%d,%d,%d,%d\"
317 ><img alt=\"%s\" src=\"%s\" /></a>"
318 (www-uri-encode-object base-image)
319 (concord-object-get image-cobj 'image-offset-x)
320 (concord-object-get image-cobj 'image-offset-y)
321 (concord-object-get image-cobj 'image-width)
322 (concord-object-get image-cobj 'image-height)
324 (setq ret (concord-object-get image-cobj '=location))
325 (princ (format "<img alt=\"%s\" src=\"%s\" />"
328 ((and (eq genre 'hng-card)
329 (setq ret (concord-object-get object '=hng-card))
330 (setq ret (symbol-name ret))
331 (string-match "\\([0-9]+\\)-\\([0-9]+\\)" ret))
334 "<img alt=\"HNG-card:%s\"
335 src=\"http://hng.chise.org/images/HNG/%03d/card/%04d.jpg\"
336 style=\"height: 480px;\" />"
338 (string-to-int (match-string 1 ret))
339 (string-to-int (match-string 2 ret))))
342 (setq ret (www-format-encode-string
343 (est-format-object object 'readable)))
345 "<img alt=\"HNG\\([0-9]+\\)-\\([0-9]+\\)[a-z]?\"" ret)
349 (string-to-int (match-string 1 ret))
350 (string-to-int (match-string 2 ret)))))
352 (format "hng-card/rep.id=%s" HNG-card-id)))
354 (format "<h%d>%s%s</h%d>\n"
358 (format "<a href=\"%s\">%s</a>"
359 ;; (if est-hide-cgi-mode
360 ;; "<a href=\"../%s\">%s</a>"
361 ;; "<a href=\"%s\">%s</a>")
362 (www-uri-make-object-url object uri-object)
367 "<a href=\"../%s\">%s</a>"
373 " <a href=\"http://glyphwiki.org/wiki/%s\"><img alt=\"%s\" src=\"http://glyphwiki.org/glyph/%s.50px.png\" /></a>"
375 GlyphWiki-id GlyphWiki-id)
381 (when feature-name-to-edit
382 (princ "<form action=\"set.cgi\" method=\"GET\">\n")
384 (encode-coding-string
385 (format "<p>(%s : <input type=\"text\" name=\"%s\"
386 size=\"30\" maxlength=\"30\" value=\"%s\">)</p>
389 (decode-uri-string uri-object 'utf-8-mcs-er))
391 (when (and HNG-card-id
392 (eq genre 'character)
394 (concord-decode-object
397 (put-char-attribute object 'sources@HNG/card (list HNG-card-cobj))
398 (if (setq ret (concord-object-get
400 '->glyph-image@zinbun/takuhon))
401 (put-char-attribute object 'sources@zinbun/takuhon ret))
406 (setq feature-name-to-display
407 (www-uri-decode-feature-name uri-feature-name))
408 (setq est-eval-list-feature-items-limit nil)
410 (cons feature-name-to-display
411 (if (eq genre 'character)
412 (get-char-attribute object feature-name-to-display)
413 (concord-object-get object feature-name-to-display)))))
415 (if (eq genre 'character)
416 (char-attribute-alist object)
417 (concord-object-spec object)))))
418 (when feature-name-to-edit
419 (unless (assq base-name-to-edit object-spec)
420 (setq object-spec (cons (cons base-name-to-edit nil)
422 (dolist (cell (sort object-spec
424 (char-attribute-name<
425 (char-feature-name-sans-versions (car a))
426 (char-feature-name-sans-versions (car b))))))
427 (setq logical-feature (char-feature-name-sans-versions (car cell)))
428 (unless (memq logical-feature chise-wiki-displayed-features)
429 (push logical-feature chise-wiki-displayed-features)
431 ((and feature-name-to-edit
432 (eq (car cell) feature-name-to-edit))
433 (www-edit-display-feature-input-box
434 object feature-name-to-edit editing-format)
439 "<div class=\"feature\" style=\"line-height:150%\">\n"
442 (www-format-eval-list
443 (www-feature-format logical-feature)
445 logical-feature ; (car cell)
450 (format " <a href=\"%s?%s=%s&feature=%s&format=wiki-text\"
451 ><input type=\"submit\" value=\"note\" /></a>"
454 (www-format-encode-string uri-object)
455 (www-format-encode-string
456 (www-uri-encode-feature-name
457 (intern (format "%s*note"
458 logical-feature ; (car cell)
460 (when (and feature-name-to-edit
461 (eq base-name-to-edit (car cell)) metadata-name-to-edit)
464 (www-edit-display-feature-input-box
465 object feature-name-to-edit editing-format)
478 (when feature-name-to-edit
482 (format "<a href=\"%s?%s=%s\"
483 ><input type=\"submit\" value=\"add feature\" /></a>
487 (www-format-encode-string uri-object))))
492 (when (eq genre 'character)
493 (let ((object-str (est-format-object object))
494 encoded-object-for-form)
496 "<form action=\"http://www.chise.org/ids-find\">\n")
497 (princ (www-format-encode-string object-str))
498 (setq encoded-object-for-form
500 (insert (encode-coding-string object-str 'utf-8-jp-er))
501 (goto-char (point-min))
502 (while (search-forward ">-" nil t)
503 (replace-match "&GT-" t t)
508 " <input type=\"text\" name=\"components\"
509 size=\"30\" maxlength=\"30\" value=\"%s\" />"
510 encoded-object-for-form))
512 (www-format-encode-string
513 "を\u542Bむ\u6F22\u5B57を\u63A2す"))
514 (princ " <input type=\"submit\" value=\"search\" />\n")
518 "<form action=\"http://www.chise.org/hng-ids-find\">\n")
519 (princ (www-format-encode-string object-str))
523 " <input type=\"text\" name=\"components\"
524 size=\"30\" maxlength=\"30\" value=\"%s\" />"
525 encoded-object-for-form))
527 (www-format-encode-string
528 "を\u542Bむ HNG の\u6F22\u5B57を\u63A2す"))
529 (princ " <input type=\"submit\" value=\"search\" />\n")
538 (defun www-display-feature-desc (uri-feature-name genre uri-object
539 &optional lang simple)
540 (let ((rdf-uri-object (if est-hide-cgi-mode
542 (string-match "=" uri-object)
544 (est-uri-decode-feature-name-body
545 (substring uri-object 0 (match-beginning 0)))
547 (est-uri-decode-feature-name-body
548 (substring uri-object (match-end 0)))))
550 (feature-name (www-uri-decode-feature-name uri-feature-name))
551 (name@lang (intern (format "name@%s" lang))))
553 (encode-coding-string
555 <title>EsT feature: %s</title>
563 (if est-hide-cgi-mode
564 "<div style=\"text-align:right;\">
565 <a href=\"../../../edit/view.cgi?feature=%s&%s=%s\">
566 <input type=\"submit\" value=\"Edit\" />
568 <input type=\"submit\" value=\"New Account\" />
571 "<div style=\"text-align:right;\">
572 <a href=\"edit/view.cgi?feature=%s&%s=%s\">
573 <input type=\"submit\" value=\"Edit\" />
575 <input type=\"submit\" value=\"New Account\" />
578 uri-feature-name genre rdf-uri-object)
580 "<div style=\"text-align:right;\">
581 <a href=\"../view/feature/%s&%s/%s\">
582 <input type=\"submit\" value=\"Simple\" />
586 uri-feature-name genre uri-object)))
588 (format "<h1>%s</h1>\n"
589 (www-format-encode-string
590 (symbol-name feature-name))))
591 (princ (format "<p>name : %s "
592 (or (www-format-feature-name feature-name) "")))
596 " <a href=\"%s?feature=%s&property=name&format=string&%s=%s\">"
601 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
606 (www-format-encode-string
609 (or (char-feature-property feature-name name@lang) ""))))
613 " <a href=\"%s?feature=%s&property=%s&format=string&%s=%s\">"
619 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
621 (www-html-display-paragraph
623 (or (www-feature-type feature-name)
624 ;; (char-feature-property feature-name 'type)
626 (princ (format "<p>value-format : %s "
629 (or (www-feature-value-format feature-name)
637 " <a href=\"%s?feature=%s&property=value-format&format=wiki-text&%s=%s\"
643 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
646 (princ (format "<p>value-presentation-format : %s "
648 nil 'value-presentation-format
649 (or (www-feature-value-format feature-name)
657 " <a href=\"%s?feature=%s&property=value-presentation-format&format=wiki-text&%s=%s\"
663 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
666 (princ "<p>format : ")
667 (www-html-display-text
668 (decode-coding-string
670 (www-feature-format feature-name))
675 " <a href=\"%s?feature=%s&property=format&format=wiki-text&%s=%s\"
681 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
684 (www-html-display-paragraph
685 (format "description : %s"
686 (or (decode-coding-string
687 (or (char-feature-property feature-name 'description)
692 (www-html-display-paragraph
693 (format "description@%s : %s"
695 (or (char-feature-property
697 (intern (format "description@%s" lang)))
701 (defun www-batch-view ()
702 (setq terminal-coding-system 'binary)
704 (let* ((target (pop command-line-args-left))
705 (user (pop command-line-args-left))
706 (accept-language (pop command-line-args-left))
707 (mode (intern (pop command-line-args-left)))
712 (car (split-string accept-language ","))
716 (princ "Content-Type: text/html; charset=UTF-8
718 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
719 \"http://www.w3.org/TR/html4/loose.dtd\">
724 (when (string-match "^char=\\(&[^&;]+;\\)" target)
725 (setq ret (match-end 0))
728 (www-uri-encode-object
729 (www-uri-decode-object
730 'character (match-string 1 target)))
731 (substring target ret))))
733 (mapcar (lambda (cell)
734 (if (string-match "=" cell)
736 (setq genre (substring cell 0 (match-beginning 0))
737 ret (substring cell (match-end 0)))
740 (decode-uri-string genre 'utf-8-mcs-er))
742 (list (decode-uri-string cell 'utf-8-mcs-er))))
743 (split-string target "&")))
744 (setq ret (car target))
745 (cond ((eq (car ret) 'char)
746 (www-display-object-desc
747 'character (cdr ret) (cdr (assq 'feature target))
752 ((eq (car ret) 'feature)
753 (www-display-feature-desc
754 (decode-uri-string (cdr ret) 'utf-8-mcs-er)
761 (www-display-object-desc
762 (car ret) (cdr ret) (cdr (assq 'feature target))
769 (princ (format "mode=%S\n" mode))
770 (princ (format "user=%s\n" user))
771 ;; (princ (format "local user=%s\n" (user-login-name)))
772 (princ (format "lang=%S\n" lang))
773 (princ (encode-coding-string (emacs-version) 'utf-8-jp-er))
775 ;; (princ xemacs-chise-version)
781 (princ (format "%S" err)))
784 (defun www-batch-view-smart ()
785 (setq debug-on-error t)
786 (setq terminal-coding-system 'binary)
788 (let* ((est-hide-cgi-mode t)
789 (target (pop command-line-args-left))
790 (user (pop command-line-args-left))
791 (accept-language (pop command-line-args-left))
792 (mode (intern (pop command-line-args-left)))
797 (car (split-string accept-language ","))
800 ret genre feature obj-url json turtle obj)
804 ((string-match "/data\\.json$" target)
806 target (substring target 0 (match-beginning 0)))
808 ((string-match "/index\\.ttl$" target)
810 target (substring target 0 (match-beginning 0)))
812 (when (string-match "^char/\\(&[^&;]+;\\)" target)
813 (setq ret (match-end 0))
816 (www-uri-encode-object
817 (www-uri-decode-object
818 'character (match-string 1 target)))
819 (substring target ret))))
823 (if (string-match "/" cell)
825 (setq genre (substring cell 0 (match-beginning 0))
826 ret (substring cell (match-end 0)))
828 (intern (decode-uri-string genre 'utf-8-mcs-er))
830 ((string-match "/feature=" ret)
831 (list (substring ret 0 (match-beginning 0))
832 (substring ret (match-end 0)))
834 ((string-match "...$.zoom-xywh=" ret)
835 (list (substring ret 0 (match-beginning 0))
837 (substring ret (match-end 0)))
841 (list (decode-uri-string cell 'utf-8-mcs-er)))
842 ;; (setq ret (split-string cell "/"))
844 ;; (decode-uri-string (car ret) 'utf-8-mcs-er))
847 (split-string target "&")))
848 (setq ret (car target))
850 (princ "Content-Type: text/turtle; charset=UTF-8
855 (princ "Content-Type: application/json; charset=UTF-8
860 (princ "Content-Type: text/html; charset=UTF-8
862 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
863 \"http://www.w3.org/TR/html4/loose.dtd\">
867 ;; (princ (format "<p>%S, %S, %S</p>"
868 ;; (car ret)(nth 1 ret)(nth 2 ret)))
869 ;; (princ (format "// %S %S\n" ret json))
872 (setq obj (www-uri-decode-object (car ret)(nth 1 ret)))
873 (concord-turtle-insert-char-data obj)
874 (goto-char (point-min))
875 (concord-turtle-insert-prefix)
877 (encode-coding-region
878 (point-min)(point-max)
879 char-db-file-coding-system)
880 (princ (buffer-string)))
882 ((or (eq (car ret) 'char)
883 (eq (car ret) 'character))
885 (setq obj (www-uri-decode-object
886 (car ret)(nth 1 ret)))
889 ;; (princ (encode-coding-string
890 ;; (format "// %S\n" obj)
891 ;; char-db-file-coding-system))
892 (char-db-json-char-data-with-variant obj 'printable)
893 (encode-coding-region
894 (point-min)(point-max)
895 char-db-file-coding-system)
896 (princ (buffer-string))
898 (www-display-object-desc
899 'character (nth 1 ret) (nth 2 ret)
904 ((eq (car ret) 'feature)
905 (www-display-feature-desc
906 (decode-uri-string (nth 1 ret) 'utf-8-mcs-er)
908 (nth 1 (nth 1 target))
912 ;; ((eq (car ret) 'image-resource)
914 ;; ;; ((string-match "^\\.iiif=" (nth 1 ret))
915 ;; ;; (setq obj-url (decode-uri-string
916 ;; ;; (substring (nth 1 ret) (match-end 0))
917 ;; ;; 'utf-8-mcs-er))
918 ;; ;; (setq obj (concord-images-add-iiif obj-url))
919 ;; ;; (www-display-object-desc
920 ;; ;; 'image-resource
921 ;; ;; (www-uri-encode-object obj)
924 ;; ;; (eq mode 'simple))
927 ;; (princ (nth 1 ret))
928 ;; (www-display-object-desc
929 ;; 'image-resource (nth 1 ret) (nth 2 ret)
931 ;; (eq mode 'simple))
935 (www-display-object-desc
936 (car ret) (nth 1 ret) (nth 2 ret)
942 (unless (or json turtle)
944 (princ (format "mode=%S\n" mode))
945 (princ (format "user=%s\n" user))
946 ;; (princ (format "local user=%s\n" (user-login-name)))
947 (princ (format "lang=%S\n" lang))
948 (princ (encode-coding-string (emacs-version) 'utf-8-jp-er))
950 ;; (princ xemacs-chise-version)
957 (princ (format "%S" err)))
960 (provide 'cwiki-view)