(require 'cwiki-common)
(defvar chise-wiki-view-url "view.cgi")
-(defvar chise-wiki-edit-url "edit/edit.cgi")
-(defvar chise-wiki-add-url "edit/add.cgi")
+(defvar chise-wiki-edit-url "edit.cgi")
+(defvar chise-wiki-add-url "add.cgi")
-(defun www-display-char-desc (uri-char &optional lang level)
+(defun www-display-char-desc (uri-char &optional lang level simple)
(unless level
(setq level 1))
(let ((char (www-uri-decode-char uri-char))
(dolist (feature (char-feature-property '$object 'additional-features))
(mount-char-attribute-table
(char-feature-name-at-domain feature '$rev=latest)))
+ (princ
+ (format
+ (if simple
+ "<div style=\"text-align:right;\">
+<a href=\"edit/view.cgi?char=%s\">
+<input type=\"submit\" value=\"Edit\" />
+</a>
+<input type=\"submit\" value=\"New Account\" />
+</div>
+<hr />\n"
+ "<div style=\"text-align:right;\">
+<a href=\"../view.cgi?char=%s\">
+<input type=\"submit\" value=\"Simple\" />
+</a>
+</div>
+<hr />\n")
+ uri-char))
(when (setq parents (www-char-feature char '<-denotational))
(princ (format "<p>%s %s</p>\n<hr>\n"
(www-format-value-as-char-list parents)
'((name) " : " (value)))
char
logical-feature ; (car cell)
- lang uri-char))
- (princ
- (format " <a href=\"%s?char=%s&feature=%s&format=wiki-text\"
+ lang uri-char
+ nil simple))
+ (unless simple
+ (princ
+ (format " <a href=\"%s?char=%s&feature=%s&format=wiki-text\"
><input type=\"submit\" value=\"note\" /></a>"
- chise-wiki-edit-url
- (www-format-encode-string uri-char)
- (www-format-encode-string
- (www-uri-encode-feature-name
- (intern (format "%s*note"
- logical-feature ; (car cell)
- ))))))
+ chise-wiki-edit-url
+ (www-format-encode-string uri-char)
+ (www-format-encode-string
+ (www-uri-encode-feature-name
+ (intern (format "%s*note"
+ logical-feature ; (car cell)
+ )))))))
(princ
(if (= level 1)
"</p>\n"
(let* ((target (pop command-line-args-left))
(user (pop command-line-args-left))
(accept-language (pop command-line-args-left))
+ (mode (intern (pop command-line-args-left)))
(lang
(intern
(car (split-string
(cond ((eq (car ret) 'char)
(www-display-char-desc
(cdr ret) ; (decode-uri-string (cdr ret) 'utf-8-mcs-er)
- lang)
+ lang nil (eq mode 'simple))
)
((eq (car ret) 'feature)
(www-display-feature-desc
))
))
(princ "\n<hr>\n")
+ (princ (format "mode=%S\n" mode))
(princ (format "user=%s\n" user))
- (princ (format "local user=%s\n" (user-login-name)))
+ ;; (princ (format "local user=%s\n" (user-login-name)))
(princ (format "lang=%S\n" lang))
- (princ emacs-version)
- (princ " CHISE ")
- (princ xemacs-chise-version)
+ (princ (emacs-version))
+ ;; (princ " CHISE ")
+ ;; (princ xemacs-chise-version)
(princ "
</body>
</html>")