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 (car (concord-object-get object '->image-resource)))
343 (format "<a href=\"../image-resource/%s\">%s</a>"
344 (www-uri-encode-object image-cobj)
349 (setq ret (www-format-encode-string
350 (est-format-object object 'readable)))
352 "<img alt=\"HNG\\([0-9]+\\)-\\([0-9]+\\)[a-z]?\"" ret)
356 (string-to-int (match-string 1 ret))
357 (string-to-int (match-string 2 ret)))))
359 (format "hng-card/rep.id=%s" HNG-card-id)))
361 (format "<h%d>%s%s</h%d>\n"
365 (format "<a href=\"%s\">%s</a>"
366 ;; (if est-hide-cgi-mode
367 ;; "<a href=\"../%s\">%s</a>"
368 ;; "<a href=\"%s\">%s</a>")
369 (www-uri-make-object-url object uri-object)
374 "<a href=\"../%s\">%s</a>"
380 " <a href=\"http://glyphwiki.org/wiki/%s\"><img alt=\"%s\" src=\"http://glyphwiki.org/glyph/%s.50px.png\" /></a>"
382 GlyphWiki-id GlyphWiki-id)
388 (when feature-name-to-edit
389 (princ "<form action=\"set.cgi\" method=\"GET\">\n")
391 (encode-coding-string
392 (format "<p>(%s : <input type=\"text\" name=\"%s\"
393 size=\"30\" maxlength=\"30\" value=\"%s\">)</p>
396 (decode-uri-string uri-object 'utf-8-mcs-er))
398 (when (and HNG-card-id
399 (eq genre 'character)
401 (concord-decode-object
404 (put-char-attribute object 'sources@HNG/card (list HNG-card-cobj))
405 (if (setq ret (concord-object-get
407 '->glyph-image@zinbun/takuhon))
408 (put-char-attribute object 'sources@zinbun/takuhon ret))
413 (setq feature-name-to-display
414 (www-uri-decode-feature-name uri-feature-name))
415 (setq est-eval-list-feature-items-limit nil)
417 (cons feature-name-to-display
418 (if (eq genre 'character)
419 (get-char-attribute object feature-name-to-display)
420 (concord-object-get object feature-name-to-display)))))
422 (if (eq genre 'character)
423 (char-attribute-alist object)
424 (concord-object-spec object)))))
425 (when feature-name-to-edit
426 (unless (assq base-name-to-edit object-spec)
427 (setq object-spec (cons (cons base-name-to-edit nil)
429 (dolist (cell (sort object-spec
431 (char-attribute-name<
432 (char-feature-name-sans-versions (car a))
433 (char-feature-name-sans-versions (car b))))))
434 (setq logical-feature (char-feature-name-sans-versions (car cell)))
435 (unless (memq logical-feature chise-wiki-displayed-features)
436 (push logical-feature chise-wiki-displayed-features)
438 ((and feature-name-to-edit
439 (eq (car cell) feature-name-to-edit))
440 (www-edit-display-feature-input-box
441 object feature-name-to-edit editing-format)
446 "<div class=\"feature\" style=\"line-height:150%\">\n"
449 (www-format-eval-list
450 (www-feature-format logical-feature)
452 logical-feature ; (car cell)
457 (format " <a href=\"%s?%s=%s&feature=%s&format=wiki-text\"
458 ><input type=\"submit\" value=\"note\" /></a>"
461 (www-format-encode-string uri-object)
462 (www-format-encode-string
463 (www-uri-encode-feature-name
464 (intern (format "%s*note"
465 logical-feature ; (car cell)
467 (when (and feature-name-to-edit
468 (eq base-name-to-edit (car cell)) metadata-name-to-edit)
471 (www-edit-display-feature-input-box
472 object feature-name-to-edit editing-format)
485 (when feature-name-to-edit
489 (format "<a href=\"%s?%s=%s\"
490 ><input type=\"submit\" value=\"add feature\" /></a>
494 (www-format-encode-string uri-object))))
499 (when (eq genre 'character)
500 (let ((object-str (est-format-object object))
501 encoded-object-for-form)
503 "<form action=\"http://www.chise.org/ids-find\">\n")
504 (princ (www-format-encode-string object-str))
505 (setq encoded-object-for-form
507 (insert (encode-coding-string object-str 'utf-8-jp-er))
508 (goto-char (point-min))
509 (while (search-forward ">-" nil t)
510 (replace-match "&GT-" t t)
515 " <input type=\"text\" name=\"components\"
516 size=\"30\" maxlength=\"30\" value=\"%s\" />"
517 encoded-object-for-form))
519 (www-format-encode-string
520 "を\u542Bむ\u6F22\u5B57を\u63A2す"))
521 (princ " <input type=\"submit\" value=\"search\" />\n")
525 "<form action=\"http://www.chise.org/hng-ids-find\">\n")
526 (princ (www-format-encode-string object-str))
530 " <input type=\"text\" name=\"components\"
531 size=\"30\" maxlength=\"30\" value=\"%s\" />"
532 encoded-object-for-form))
534 (www-format-encode-string
535 "を\u542Bむ HNG の\u6F22\u5B57を\u63A2す"))
536 (princ " <input type=\"submit\" value=\"search\" />\n")
545 (defun www-display-feature-desc (uri-feature-name genre uri-object
546 &optional lang simple)
547 (let ((rdf-uri-object (if est-hide-cgi-mode
549 (string-match "=" uri-object)
551 (est-uri-decode-feature-name-body
552 (substring uri-object 0 (match-beginning 0)))
554 (est-uri-decode-feature-name-body
555 (substring uri-object (match-end 0)))))
557 (feature-name (www-uri-decode-feature-name uri-feature-name))
558 (name@lang (intern (format "name@%s" lang))))
560 (encode-coding-string
562 <title>EsT feature: %s</title>
570 (if est-hide-cgi-mode
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 "<div style=\"text-align:right;\">
579 <a href=\"edit/view.cgi?feature=%s&%s=%s\">
580 <input type=\"submit\" value=\"Edit\" />
582 <input type=\"submit\" value=\"New Account\" />
585 uri-feature-name genre rdf-uri-object)
587 "<div style=\"text-align:right;\">
588 <a href=\"../view/feature/%s&%s/%s\">
589 <input type=\"submit\" value=\"Simple\" />
593 uri-feature-name genre uri-object)))
595 (format "<h1>%s</h1>\n"
596 (www-format-encode-string
597 (symbol-name feature-name))))
598 (princ (format "<p>name : %s "
599 (or (www-format-feature-name feature-name) "")))
603 " <a href=\"%s?feature=%s&property=name&format=string&%s=%s\">"
608 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
613 (www-format-encode-string
616 (or (char-feature-property feature-name name@lang) ""))))
620 " <a href=\"%s?feature=%s&property=%s&format=string&%s=%s\">"
626 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
628 (www-html-display-paragraph
630 (or (www-feature-type feature-name)
631 ;; (char-feature-property feature-name 'type)
633 (princ (format "<p>value-format : %s "
636 (or (www-feature-value-format feature-name)
644 " <a href=\"%s?feature=%s&property=value-format&format=wiki-text&%s=%s\"
650 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
653 (princ (format "<p>value-presentation-format : %s "
655 nil 'value-presentation-format
656 (or (www-feature-value-format feature-name)
664 " <a href=\"%s?feature=%s&property=value-presentation-format&format=wiki-text&%s=%s\"
670 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
673 (princ "<p>format : ")
674 (www-html-display-text
675 (decode-coding-string
677 (www-feature-format feature-name))
682 " <a href=\"%s?feature=%s&property=format&format=wiki-text&%s=%s\"
688 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
691 (www-html-display-paragraph
692 (format "description : %s"
693 (or (decode-coding-string
694 (or (char-feature-property feature-name 'description)
699 (www-html-display-paragraph
700 (format "description@%s : %s"
702 (or (char-feature-property
704 (intern (format "description@%s" lang)))
708 (defun www-batch-view ()
709 (setq terminal-coding-system 'binary)
711 (let* ((target (pop command-line-args-left))
712 (user (pop command-line-args-left))
713 (accept-language (pop command-line-args-left))
714 (mode (intern (pop command-line-args-left)))
719 (car (split-string accept-language ","))
723 (princ "Content-Type: text/html; charset=UTF-8
725 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
726 \"http://www.w3.org/TR/html4/loose.dtd\">
731 (when (string-match "^char=\\(&[^&;]+;\\)" target)
732 (setq ret (match-end 0))
735 (www-uri-encode-object
736 (www-uri-decode-object
737 'character (match-string 1 target)))
738 (substring target ret))))
740 (mapcar (lambda (cell)
741 (if (string-match "=" cell)
743 (setq genre (substring cell 0 (match-beginning 0))
744 ret (substring cell (match-end 0)))
747 (decode-uri-string genre 'utf-8-mcs-er))
749 (list (decode-uri-string cell 'utf-8-mcs-er))))
750 (split-string target "&")))
751 (setq ret (car target))
752 (cond ((eq (car ret) 'char)
753 (www-display-object-desc
754 'character (cdr ret) (cdr (assq 'feature target))
759 ((eq (car ret) 'feature)
760 (www-display-feature-desc
761 (decode-uri-string (cdr ret) 'utf-8-mcs-er)
768 (www-display-object-desc
769 (car ret) (cdr ret) (cdr (assq 'feature target))
776 (princ (format "mode=%S\n" mode))
777 (princ (format "user=%s\n" user))
778 ;; (princ (format "local user=%s\n" (user-login-name)))
779 (princ (format "lang=%S\n" lang))
780 (princ (encode-coding-string (emacs-version) 'utf-8-jp-er))
782 ;; (princ xemacs-chise-version)
788 (princ (format "%S" err)))
791 (defun www-batch-view-smart ()
792 (setq debug-on-error t)
793 (setq terminal-coding-system 'binary)
795 (let* ((est-hide-cgi-mode t)
796 (target (pop command-line-args-left))
797 (user (pop command-line-args-left))
798 (accept-language (pop command-line-args-left))
799 (mode (intern (pop command-line-args-left)))
804 (car (split-string accept-language ","))
807 ret genre feature obj-url json turtle obj)
811 ((string-match "/data\\.json$" target)
813 target (substring target 0 (match-beginning 0)))
815 ((string-match "/index\\.ttl$" target)
817 target (substring target 0 (match-beginning 0)))
819 (when (string-match "^char/\\(&[^&;]+;\\)" target)
820 (setq ret (match-end 0))
823 (www-uri-encode-object
824 (www-uri-decode-object
825 'character (match-string 1 target)))
826 (substring target ret))))
830 (if (string-match "/" cell)
832 (setq genre (substring cell 0 (match-beginning 0))
833 ret (substring cell (match-end 0)))
835 (intern (decode-uri-string genre 'utf-8-mcs-er))
837 ((string-match "/feature=" ret)
838 (list (substring ret 0 (match-beginning 0))
839 (substring ret (match-end 0)))
841 ((string-match "...$.zoom-xywh=" ret)
842 (list (substring ret 0 (match-beginning 0))
844 (substring ret (match-end 0)))
848 (list (decode-uri-string cell 'utf-8-mcs-er)))
849 ;; (setq ret (split-string cell "/"))
851 ;; (decode-uri-string (car ret) 'utf-8-mcs-er))
854 (split-string target "&")))
855 (setq ret (car target))
857 (princ "Content-Type: text/turtle; charset=UTF-8
862 (princ "Content-Type: application/json; charset=UTF-8
867 (princ "Content-Type: text/html; charset=UTF-8
869 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
870 \"http://www.w3.org/TR/html4/loose.dtd\">
874 ;; (princ (format "<p>%S, %S, %S</p>"
875 ;; (car ret)(nth 1 ret)(nth 2 ret)))
876 ;; (princ (format "// %S %S\n" ret json))
879 (setq obj (www-uri-decode-object (car ret)(nth 1 ret)))
880 (concord-turtle-insert-char-data obj)
881 (goto-char (point-min))
882 (concord-turtle-insert-prefix)
884 (encode-coding-region
885 (point-min)(point-max)
886 char-db-file-coding-system)
887 (princ (buffer-string)))
889 ((or (eq (car ret) 'char)
890 (eq (car ret) 'character))
892 (setq obj (www-uri-decode-object
893 (car ret)(nth 1 ret)))
896 ;; (princ (encode-coding-string
897 ;; (format "// %S\n" obj)
898 ;; char-db-file-coding-system))
899 (char-db-json-char-data-with-variant obj 'printable)
900 (encode-coding-region
901 (point-min)(point-max)
902 char-db-file-coding-system)
903 (princ (buffer-string))
905 (www-display-object-desc
906 'character (nth 1 ret) (nth 2 ret)
911 ((eq (car ret) 'feature)
912 (www-display-feature-desc
913 (decode-uri-string (nth 1 ret) 'utf-8-mcs-er)
915 (nth 1 (nth 1 target))
919 ;; ((eq (car ret) 'image-resource)
921 ;; ;; ((string-match "^\\.iiif=" (nth 1 ret))
922 ;; ;; (setq obj-url (decode-uri-string
923 ;; ;; (substring (nth 1 ret) (match-end 0))
924 ;; ;; 'utf-8-mcs-er))
925 ;; ;; (setq obj (concord-images-add-iiif obj-url))
926 ;; ;; (www-display-object-desc
927 ;; ;; 'image-resource
928 ;; ;; (www-uri-encode-object obj)
931 ;; ;; (eq mode 'simple))
934 ;; (princ (nth 1 ret))
935 ;; (www-display-object-desc
936 ;; 'image-resource (nth 1 ret) (nth 2 ret)
938 ;; (eq mode 'simple))
942 (www-display-object-desc
943 (car ret) (nth 1 ret) (nth 2 ret)
949 (unless (or json turtle)
951 (princ (format "mode=%S\n" mode))
952 (princ (format "user=%s\n" user))
953 ;; (princ (format "local user=%s\n" (user-login-name)))
954 (princ (format "lang=%S\n" lang))
955 (princ (encode-coding-string (emacs-version) 'utf-8-jp-er))
957 ;; (princ xemacs-chise-version)
964 (princ (format "%S" err)))
967 (provide 'cwiki-view)