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
74 item-code page char-num glyph-image-id
75 width height image-cobj base-image x y w h)
79 (setq without-header t))
81 (when uri-feature-name-to-edit
82 (setq feature-name-to-edit
83 (www-uri-decode-feature-name uri-feature-name-to-edit))
84 (setq ret (symbol-name feature-name-to-edit))
85 (if (string-match "\\*" ret)
86 (setq base-name-to-edit (intern
87 (substring ret 0 (match-beginning 0)))
88 metadata-name-to-edit (intern
89 (substring ret (match-end 0))))
90 (setq base-name-to-edit feature-name-to-edit))
91 (when (stringp editing-format)
92 (setq editing-format (intern editing-format))))
93 (when (and (eq genre 'character)
94 (= (length uri-object) 1))
95 (setq uri-object (www-uri-encode-object object)))
100 <style type=\"text/css\">
103 .ids { vertical-align: middle; font-size: 40px; line-height: 100%%; }
104 a { text-decoration: none; }
105 .ids a { color: black; }
106 ul { margin: 0 0; color: black; }
107 li { margin: 0 0 0 2em; }
108 .feature-name { font-family: sans-serif; font-weight: bold; }
109 .feature-name a { color: black; }
113 display: inline-block;
114 border-bottom: 1px dotted black;
117 .tooltip .tooltiptext {
123 background-color: black;
133 .value .image-list img { height: 320px; vertical-align: top; }
135 .list .tooltip:hover .tooltiptext {
142 src=\"http://hng.chise.org/openseadragon/openseadragon.min.js\"></script>
144 <title>EsT %s = %s</title>
147 (decode-uri-string uri-object 'utf-8-mcs-er))
150 (when (eq genre 'character)
151 (dolist (feature (char-feature-property '$object 'additional-features))
152 (mount-char-attribute-table
153 (char-feature-name-at-domain feature '$rev=latest))))
157 (if est-hide-cgi-mode
158 "<div style=\"text-align:right;\">
159 <a href=\"../../edit/view.cgi?%s=%s\">
160 <input type=\"submit\" value=\"Edit\" />
162 "<div style=\"text-align:right;\">
163 <a href=\"edit/view.cgi?%s=%s\">
164 <input type=\"submit\" value=\"Edit\" />
166 genre rdf-uri-object)
168 "<div style=\"text-align:right;\">
169 <a href=\"../view/%s/%s\">
170 <input type=\"submit\" value=\"Simple\" />
173 (if (string-match ":" uri-object)
175 (est-uri-encode-feature-name-body
176 (substring uri-object 0 (match-beginning 0)))
178 (est-uri-encode-feature-name-body
179 (substring uri-object (match-end 0))))))))
181 (format "<input type=\"submit\" value=\"New Account\" />
182 <a href=\"./%s/index.ttl\"><input type=\"submit\" value=\"RDF (Turtle)\" /></a>
183 <a href=\"http://www.chise.org/est/rdf.cgi?%s=%s\">
184 <input type=\"submit\" value=\"XML (old RDF)\" />
190 (if (eq genre 'character)
192 <a href=\"/est/view/%s/%s/data.json\">
193 <input type=\"submit\" value=\"JSON\" />
196 (if (and (or (char-feature object '->HNG@CN/manuscript)
197 (char-feature object '->HNG@CN/printed)
198 (char-feature object '->HNG@JP/manuscript)
199 (char-feature object '->HNG@JP/printed)
200 (char-feature object '->HNG@KR)
201 (char-feature object '->HNG@MISC))
202 (setq ucs (char-ucs object))
203 (setq ret (decode-char '=ucs ucs))
205 (if (setq ucs (get-char-attribute
207 (decode-char '=ucs ucs)
210 <a href=\"https://search.hng-data.org/search/%s\">
211 <input type=\"submit\" value=\"HNG-data\" />
213 (www-uri-encode-object ret))
216 (when (setq parents (www-get-feature-value object '<-denotational))
217 (if (characterp parents)
218 (setq parents (list parents)))
219 (princ (format "<p>%s %s</p>\n<hr>\n"
220 (www-format-value-as-char-list parents)
221 (www-format-feature-name '->denotational lang))))
222 (when (setq parents (www-get-feature-value object '<-subsumptive))
223 (if (characterp parents)
224 (setq parents (list parents)))
225 (princ (format "<p>%s %s</p>\n<hr>\n"
226 (www-format-value-as-char-list parents)
227 (www-format-feature-name '->subsumptive lang))))
228 (when (eq genre 'character)
229 (setq GlyphWiki-id (char-GlyphWiki-id object)))
231 ((eq genre 'image-resource)
233 (if (setq ret (concord-object-get object '=location@iiif))
235 (car (concord-object-get object '<-image-segment)))
236 (format "<a href=\"%s...$.zoom-xywh=%d,%d,%d,%d\"
237 ><img alt=\"%s\" src=\"%s\" /></a>"
238 (www-uri-encode-object base-image)
239 (concord-object-get object 'image-offset-x)
240 (concord-object-get object 'image-offset-y)
241 (concord-object-get object 'image-width)
242 (concord-object-get object 'image-height)
244 (if (and image-selection
245 (string-match "\\([0-9]+\\),\\([0-9]+\\),\\([0-9]+\\),\\([0-9]+\\)" image-selection))
247 (setq x (string-to-int (match-string 1 image-selection))
248 y (string-to-int (match-string 2 image-selection))
249 w (string-to-int (match-string 3 image-selection))
250 h (string-to-int (match-string 4 image-selection)))
252 (concord-object-get object 'image-width)))
253 ;; (setq height (float
254 ;; (concord-object-get object 'image-height)))
255 (format "<div id=\"openseadragon1\"
256 style=\"width: 800px; height: 600px;\"></div>
258 <script type=\"text/javascript\">
260 viewer = OpenSeadragon({
261 id: \"openseadragon1\",
262 prefixUrl: \"http://hng.chise.org/openseadragon/images/\",
263 preserveViewport: true,
268 tileSources: [ \"%s/info.json\" ]
270 viewer.addHandler('open', function () {
271 var newBounds = new OpenSeadragon.Rect( %f, %f, %f, %f, 0 );
272 viewer.viewport.fitBounds(newBounds, true);
273 viewer.viewport.applyConstraints();
283 (format "<div id=\"openseadragon1\"
284 style=\"width: 800px; height: 600px;\"></div>
286 <script type=\"text/javascript\">
288 id: \"openseadragon1\",
289 prefixUrl: \"http://hng.chise.org/openseadragon/images/\",
290 preserveViewport: true,
295 tileSources: [ \"%s/info.json\" ]
300 (setq ret (concord-object-get object '=location))
301 (format "<img alt=\"%s\" src=\"%s\" />"
304 ((or (and (eq genre 'glyph-image)
306 (car (concord-object-get object '->image-resource))))
307 (and (eq genre 'character)
308 (setq ret (www-format-encode-string
309 (est-format-object object 'readable)))
311 "<img alt=\"SW-JIGUGE\\([45]\\)-\\([0-9][0-9][0-9]\\)\\([0-9][0-9]\\)"
313 (setq item-code (string-to-int (match-string 1 ret))
314 page (string-to-int (match-string 2 ret))
315 char-num (string-to-int (match-string 3 ret)))
317 (cond ((eq item-code 4)
319 (format "zinbun/toho/A024/A024%04d/char=%d"
320 (+ page 18) char-num))
324 (format "zinbun/toho/A020/A020%04d/char=%d"
325 (+ page 16) char-num))
328 (concord-decode-object '=id glyph-image-id 'glyph-image))
330 (car (concord-object-get image-cobj '->image-resource)))
332 (if (and (setq ret (concord-object-get image-cobj '=location@iiif))
334 (car (concord-object-get image-cobj '<-image-segment))))
336 (format "<a href=\"../image-resource/%s...$.zoom-xywh=%d,%d,%d,%d\"
337 ><img alt=\"%s\" src=\"%s\" /></a>"
338 (www-uri-encode-object base-image)
339 (concord-object-get image-cobj 'image-offset-x)
340 (concord-object-get image-cobj 'image-offset-y)
341 (concord-object-get image-cobj 'image-width)
342 (concord-object-get image-cobj 'image-height)
344 (setq ret (concord-object-get image-cobj '=location))
345 (princ (format "<img alt=\"%s\" src=\"%s\" />"
348 ((and (eq genre 'hng-card)
349 (setq ret (concord-object-get object '=hng-card))
350 (setq ret (symbol-name ret))
351 (string-match "\\([0-9]+\\)-\\([0-9]+\\)" ret))
354 "<img alt=\"HNG-card:%s\"
355 src=\"http://hng.chise.org/images/HNG/%03d/card/%04d.jpg\"
356 style=\"height: 480px;\" />"
358 (string-to-int (match-string 1 ret))
359 (string-to-int (match-string 2 ret))))
362 (car (concord-object-get object '->image-resource)))
363 (format "<a href=\"../image-resource/%s\">%s</a>"
364 (www-uri-encode-object image-cobj)
369 (setq ret (www-format-encode-string
370 (est-format-object object 'readable)))
372 "<img alt=\"HNG\\([0-9]+\\)-\\([0-9]+\\)[a-z]?\"" ret)
376 (string-to-int (match-string 1 ret))
377 (string-to-int (match-string 2 ret)))))
379 (format "hng-card/rep.id=%s" HNG-card-id)))
381 (format "<h%d>%s%s</h%d>\n"
385 (format "<a href=\"%s\">%s</a>"
386 ;; (if est-hide-cgi-mode
387 ;; "<a href=\"../%s\">%s</a>"
388 ;; "<a href=\"%s\">%s</a>")
389 (www-uri-make-object-url object uri-object)
394 "<a href=\"../%s\">%s</a>"
400 " <a href=\"http://glyphwiki.org/wiki/%s\"><img alt=\"%s\" src=\"http://glyphwiki.org/glyph/%s.50px.png\" /></a>"
402 GlyphWiki-id GlyphWiki-id)
408 (when feature-name-to-edit
409 (princ "<form action=\"set.cgi\" method=\"GET\">\n")
411 (encode-coding-string
412 (format "<p>(%s : <input type=\"text\" name=\"%s\"
413 size=\"30\" maxlength=\"30\" value=\"%s\">)</p>
416 (decode-uri-string uri-object 'utf-8-mcs-er))
418 (when (and HNG-card-id
419 (eq genre 'character)
421 (concord-decode-object
424 (put-char-attribute object 'sources@HNG/card (list HNG-card-cobj))
425 (if (setq ret (concord-object-get
427 '->glyph-image@zinbun/takuhon))
428 (put-char-attribute object 'sources@zinbun/takuhon ret))
433 (setq feature-name-to-display
434 (www-uri-decode-feature-name uri-feature-name))
435 (setq est-eval-list-feature-items-limit nil)
437 (cons feature-name-to-display
438 (if (eq genre 'character)
439 (get-char-attribute object feature-name-to-display)
440 (concord-object-get object feature-name-to-display)))))
442 (if (eq genre 'character)
443 (char-attribute-alist object)
444 (concord-object-spec object)))))
445 (when feature-name-to-edit
446 (unless (assq base-name-to-edit object-spec)
447 (setq object-spec (cons (cons base-name-to-edit nil)
449 (dolist (cell (sort object-spec
451 (char-attribute-name<
452 (char-feature-name-sans-versions (car a))
453 (char-feature-name-sans-versions (car b))))))
454 (setq logical-feature (char-feature-name-sans-versions (car cell)))
455 (unless (memq logical-feature chise-wiki-displayed-features)
456 (push logical-feature chise-wiki-displayed-features)
458 ((and feature-name-to-edit
459 (eq (car cell) feature-name-to-edit))
460 (www-edit-display-feature-input-box
461 object feature-name-to-edit editing-format)
466 "<div class=\"feature\" style=\"line-height:150%\">\n"
469 (www-format-eval-list
470 (www-feature-format logical-feature)
472 logical-feature ; (car cell)
477 (format " <a href=\"%s?%s=%s&feature=%s&format=wiki-text\"
478 ><input type=\"submit\" value=\"note\" /></a>"
481 (www-format-encode-string uri-object)
482 (www-format-encode-string
483 (www-uri-encode-feature-name
484 (intern (format "%s*note"
485 logical-feature ; (car cell)
487 (when (and feature-name-to-edit
488 (eq base-name-to-edit (car cell)) metadata-name-to-edit)
491 (www-edit-display-feature-input-box
492 object feature-name-to-edit editing-format)
505 (when feature-name-to-edit
509 (format "<a href=\"%s?%s=%s\"
510 ><input type=\"submit\" value=\"add feature\" /></a>
514 (www-format-encode-string uri-object))))
519 (when (eq genre 'character)
520 (let ((object-str (est-format-object object))
521 encoded-object-for-form)
523 "<form action=\"http://www.chise.org/ids-find\">\n")
524 (princ (www-format-encode-string object-str))
525 (setq encoded-object-for-form
527 (insert (encode-coding-string object-str 'utf-8-jp-er))
528 (goto-char (point-min))
529 (while (search-forward ">-" nil t)
530 (replace-match "&GT-" t t)
535 " <input type=\"text\" name=\"components\"
536 size=\"30\" maxlength=\"30\" value=\"%s\" />"
537 encoded-object-for-form))
539 (www-format-encode-string
540 "を\u542Bむ\u6F22\u5B57を\u63A2す"))
541 (princ " <input type=\"submit\" value=\"search\" />\n")
545 "<form action=\"http://www.chise.org/hng-ids-find\">\n")
546 (princ (www-format-encode-string object-str))
550 " <input type=\"text\" name=\"components\"
551 size=\"30\" maxlength=\"30\" value=\"%s\" />"
552 encoded-object-for-form))
554 (www-format-encode-string
555 "を\u542Bむ HNG の\u6F22\u5B57を\u63A2す"))
556 (princ " <input type=\"submit\" value=\"search\" />\n")
565 (defun www-display-feature-desc (uri-feature-name genre uri-object
566 &optional lang simple)
567 (let ((rdf-uri-object (if est-hide-cgi-mode
569 (string-match "=" uri-object)
571 (est-uri-decode-feature-name-body
572 (substring uri-object 0 (match-beginning 0)))
574 (est-uri-decode-feature-name-body
575 (substring uri-object (match-end 0)))))
577 (feature-name (www-uri-decode-feature-name uri-feature-name))
578 (name@lang (intern (format "name@%s" lang))))
580 (encode-coding-string
582 <title>EsT feature: %s</title>
590 (if est-hide-cgi-mode
591 "<div style=\"text-align:right;\">
592 <a href=\"../../../edit/view.cgi?feature=%s&%s=%s\">
593 <input type=\"submit\" value=\"Edit\" />
595 <input type=\"submit\" value=\"New Account\" />
598 "<div style=\"text-align:right;\">
599 <a href=\"edit/view.cgi?feature=%s&%s=%s\">
600 <input type=\"submit\" value=\"Edit\" />
602 <input type=\"submit\" value=\"New Account\" />
605 uri-feature-name genre rdf-uri-object)
607 "<div style=\"text-align:right;\">
608 <a href=\"../view/feature/%s&%s/%s\">
609 <input type=\"submit\" value=\"Simple\" />
613 uri-feature-name genre uri-object)))
615 (format "<h1>%s</h1>\n"
616 (www-format-encode-string
617 (symbol-name feature-name))))
618 (princ (format "<p>name : %s "
619 (or (www-format-feature-name feature-name) "")))
623 " <a href=\"%s?feature=%s&property=name&format=string&%s=%s\">"
628 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
633 (www-format-encode-string
636 (or (char-feature-property feature-name name@lang) ""))))
640 " <a href=\"%s?feature=%s&property=%s&format=string&%s=%s\">"
646 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
648 (www-html-display-paragraph
650 (or (www-feature-type feature-name)
651 ;; (char-feature-property feature-name 'type)
653 (princ (format "<p>value-format : %s "
656 (or (www-feature-value-format feature-name)
664 " <a href=\"%s?feature=%s&property=value-format&format=wiki-text&%s=%s\"
670 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
673 (princ (format "<p>value-presentation-format : %s "
675 nil 'value-presentation-format
676 (or (www-feature-value-format feature-name)
684 " <a href=\"%s?feature=%s&property=value-presentation-format&format=wiki-text&%s=%s\"
690 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
693 (princ "<p>format : ")
694 (www-html-display-text
695 (decode-coding-string
697 (www-feature-format feature-name))
702 " <a href=\"%s?feature=%s&property=format&format=wiki-text&%s=%s\"
708 (princ "<input type=\"submit\" value=\"edit\" /></a>\n"))
711 (www-html-display-paragraph
712 (format "description : %s"
713 (or (decode-coding-string
714 (or (char-feature-property feature-name 'description)
719 (www-html-display-paragraph
720 (format "description@%s : %s"
722 (or (char-feature-property
724 (intern (format "description@%s" lang)))
728 (defun www-batch-view ()
729 (setq terminal-coding-system 'binary)
731 (let* ((target (pop command-line-args-left))
732 (user (pop command-line-args-left))
733 (accept-language (pop command-line-args-left))
734 (mode (intern (pop command-line-args-left)))
739 (car (split-string accept-language ","))
743 (princ "Content-Type: text/html; charset=UTF-8
745 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
746 \"http://www.w3.org/TR/html4/loose.dtd\">
751 (when (string-match "^char=\\(&[^&;]+;\\)" target)
752 (setq ret (match-end 0))
755 (www-uri-encode-object
756 (www-uri-decode-object
757 'character (match-string 1 target)))
758 (substring target ret))))
760 (mapcar (lambda (cell)
761 (if (string-match "=" cell)
763 (setq genre (substring cell 0 (match-beginning 0))
764 ret (substring cell (match-end 0)))
767 (decode-uri-string genre 'utf-8-mcs-er))
769 (list (decode-uri-string cell 'utf-8-mcs-er))))
770 (split-string target "&")))
771 (setq ret (car target))
772 (cond ((eq (car ret) 'char)
773 (www-display-object-desc
774 'character (cdr ret) (cdr (assq 'feature target))
779 ((eq (car ret) 'feature)
780 (www-display-feature-desc
781 (decode-uri-string (cdr ret) 'utf-8-mcs-er)
788 (www-display-object-desc
789 (car ret) (cdr ret) (cdr (assq 'feature target))
796 (princ (format "mode=%S\n" mode))
797 (princ (format "user=%s\n" user))
798 ;; (princ (format "local user=%s\n" (user-login-name)))
799 (princ (format "lang=%S\n" lang))
800 (princ (encode-coding-string (emacs-version) 'utf-8-jp-er))
802 ;; (princ xemacs-chise-version)
808 (princ (format "%S" err)))
811 (defun www-batch-view-smart ()
812 (setq debug-on-error t)
813 (setq terminal-coding-system 'binary)
815 (let* ((est-hide-cgi-mode t)
816 (target (pop command-line-args-left))
817 (user (pop command-line-args-left))
818 (accept-language (pop command-line-args-left))
819 (mode (intern (pop command-line-args-left)))
824 (car (split-string accept-language ","))
827 ret genre feature obj-url json turtle obj)
831 ((string-match "/data\\.json$" target)
833 target (substring target 0 (match-beginning 0)))
835 ((string-match "/index\\.ttl$" target)
837 target (substring target 0 (match-beginning 0)))
839 (when (string-match "^char/\\(&[^&;]+;\\)" target)
840 (setq ret (match-end 0))
843 (www-uri-encode-object
844 (www-uri-decode-object
845 'character (match-string 1 target)))
846 (substring target ret))))
850 (if (string-match "/" cell)
852 (setq genre (substring cell 0 (match-beginning 0))
853 ret (substring cell (match-end 0)))
855 (intern (decode-uri-string genre 'utf-8-mcs-er))
857 ((string-match "/feature=" ret)
858 (list (substring ret 0 (match-beginning 0))
859 (substring ret (match-end 0)))
861 ((string-match "...$.zoom-xywh=" ret)
862 (list (substring ret 0 (match-beginning 0))
864 (substring ret (match-end 0)))
868 (list (decode-uri-string cell 'utf-8-mcs-er)))
869 ;; (setq ret (split-string cell "/"))
871 ;; (decode-uri-string (car ret) 'utf-8-mcs-er))
874 (split-string target "&")))
875 (setq ret (car target))
877 (princ "Content-Type: text/turtle; charset=UTF-8
882 (princ "Content-Type: application/json; charset=UTF-8
887 (princ "Content-Type: text/html; charset=UTF-8
889 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
890 \"http://www.w3.org/TR/html4/loose.dtd\">
894 ;; (princ (format "<p>%S, %S, %S</p>"
895 ;; (car ret)(nth 1 ret)(nth 2 ret)))
896 ;; (princ (format "// %S %S\n" ret json))
899 (setq obj (www-uri-decode-object (car ret)(nth 1 ret)))
900 (concord-turtle-insert-char-data obj)
901 (goto-char (point-min))
902 (concord-turtle-insert-prefix)
904 (encode-coding-region
905 (point-min)(point-max)
906 char-db-file-coding-system)
907 (princ (buffer-string)))
909 ((or (eq (car ret) 'char)
910 (eq (car ret) 'character))
912 (setq obj (www-uri-decode-object
913 (car ret)(nth 1 ret)))
916 ;; (princ (encode-coding-string
917 ;; (format "// %S\n" obj)
918 ;; char-db-file-coding-system))
919 (char-db-json-char-data-with-variant obj 'printable)
920 (encode-coding-region
921 (point-min)(point-max)
922 char-db-file-coding-system)
923 (princ (buffer-string))
925 (www-display-object-desc
926 'character (nth 1 ret) (nth 2 ret)
931 ((eq (car ret) 'feature)
932 (www-display-feature-desc
933 (decode-uri-string (nth 1 ret) 'utf-8-mcs-er)
935 (nth 1 (nth 1 target))
939 ;; ((eq (car ret) 'image-resource)
941 ;; ;; ((string-match "^\\.iiif=" (nth 1 ret))
942 ;; ;; (setq obj-url (decode-uri-string
943 ;; ;; (substring (nth 1 ret) (match-end 0))
944 ;; ;; 'utf-8-mcs-er))
945 ;; ;; (setq obj (concord-images-add-iiif obj-url))
946 ;; ;; (www-display-object-desc
947 ;; ;; 'image-resource
948 ;; ;; (www-uri-encode-object obj)
951 ;; ;; (eq mode 'simple))
954 ;; (princ (nth 1 ret))
955 ;; (www-display-object-desc
956 ;; 'image-resource (nth 1 ret) (nth 2 ret)
958 ;; (eq mode 'simple))
962 (www-display-object-desc
963 (car ret) (nth 1 ret) (nth 2 ret)
969 (unless (or json turtle)
971 (princ (format "mode=%S\n" mode))
972 (princ (format "user=%s\n" user))
973 ;; (princ (format "local user=%s\n" (user-login-name)))
974 (princ (format "lang=%S\n" lang))
975 (princ (encode-coding-string (emacs-version) 'utf-8-jp-er))
977 ;; (princ xemacs-chise-version)
984 (princ (format "%S" err)))
987 (provide 'cwiki-view)