(concord-assign-genre 'era@ruimoku "/usr/local/var/ruimoku/db")
(concord-assign-genre 'period@ruimoku "/usr/local/var/ruimoku/db")
(concord-assign-genre 'journal@ruimoku "/usr/local/var/ruimoku/db")
+(concord-assign-genre 'journal-name@ruimoku "/usr/local/var/ruimoku/db")
+(concord-assign-genre 'publisher@ruimoku "/usr/local/var/ruimoku/db")
+(concord-assign-genre 'publisher-name@ruimoku "/usr/local/var/ruimoku/db")
(mount-char-attribute-table 'instance@ruimoku/bibliography/title)
;; (mount-char-attribute-table 'instance@ruimoku/bibliography/content*note)
ret)
(let ((type (www-feature-type feature-name)))
(cond ((eq type 'relation)
- 'space-separated-char-list)
+ 'space-separated)
((eq type 'structure)
'space-separated-ids)
((eq type 'stext)
(= (charset-chars feature-name) 94))
'("0x" (HEX)
" (" (decimal) ") <" (ku-ten) "> " (prev-char) (next-char))
- '("0x" (HEX) " (" (decimal) ") " (prev-char) (next-char))))))
+ '("0x" (HEX) " (" (decimal) ") " (prev-char) (next-char))))
+ 'space-separated))
(defun char-feature-name-at-domain (feature-name domain)
(if domain
(defun www-uri-decode-feature-name (uri-feature)
(let (feature)
+ (setq uri-feature (decode-uri-string uri-feature 'utf-8-mcs-er))
(cond
((string-match "^from\\." uri-feature)
(intern (format "<-%s" (substring uri-feature (match-end 0))))
?>)
(substring uri-feature (match-end 0))))
)
+ ((string-match "^o\\." uri-feature)
+ (intern (format "=+>%s" (substring uri-feature (match-end 0))))
+ )
((string-match "^a\\." uri-feature)
(intern (format "=>%s" (substring uri-feature (match-end 0))))
)
(defun www-uri-encode-feature-name (feature-name)
(setq feature-name (symbol-name feature-name))
(cond
+ ((string-match "^=\\+>\\([^=>]+\\)" feature-name)
+ (concat "o." (substring feature-name (match-beginning 1)))
+ )
((string-match "^=\\([^=>]+\\)" feature-name)
(concat "rep." (substring feature-name (match-beginning 1)))
)
=daikanwa
=gt =gt-k
=>>jis-x0208 =>>jis-x0213-1
+ =+>jis-x0208@1978
=>jis-x0208 =>jis-x0213-1
=>>gt
+ =>ucs@iso =>ucs@unicode
+ =>ucs@jis =>ucs@cns =>ucs@ks
=ruimoku-v6
=big5
=big5-cdp))
))))
(format "rep.id:%s" (concord-object-id object))))
-(defun est-format-object (object)
+(defun est-format-object (object &optional readable)
(if (characterp object)
(char-to-string object)
- (format "%s" (concord-object-id object))))
+ (let ((ret (or (if readable
+ (or (concord-object-get object 'name)
+ (concord-object-get object '=name)
+ (concord-object-get object 'title)))
+ (concord-object-id object))))
+ (format "%s" ret))))
(defun www-uri-make-object-url (object &optional uri-object)
(format "%s?%s=%s"
t 'literal))
(goto-char (point-min))
- (while (re-search-forward "&J\\(78\\|83\\|90\\|97\\|SP\\)-\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]\\);" nil t)
- (setq plane (match-string 1)
- code (string-to-int (match-string 2) 16))
+ (while (re-search-forward "&\\(o-\\)?J\\(78\\|83\\|90\\|97\\|SP\\)-\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]\\);" nil t)
+ (setq plane (match-string 2)
+ code (string-to-int (match-string 3) 16))
(replace-match
(format "<img alt=\"J%s-%04X\" src=\"%s/JIS-%s/%02d-%02d.gif\"
style=\"%s\">"
t 'literal))
(goto-char (point-min))
- (while (re-search-forward "&\\(G-\\)?GT-\\([0-9]+\\);" nil t)
+ (while (re-search-forward "&\\(G-\\|g2-\\)?GT-\\([0-9]+\\);" nil t)
(setq code (string-to-int (match-string 2)))
(replace-match
(format "<img alt=\"GT-%05d\" src=\"%s?char=GT-%05d\"
t 'literal))
(goto-char (point-min))
- (while (re-search-forward "&\\(UU\\+\\|U-\\)\\([0-9A-F]+\\);" nil t)
- (setq code (string-to-int (match-string 2) 16))
+ (while (re-search-forward "&\\(A-\\)?\\(UU\\+\\|U-\\)\\([0-9A-F]+\\);" nil t)
+ (setq code (string-to-int (match-string 3) 16))
(replace-match
(format "<img alt=\"UU+%04X\" src=\"http://www.unicode.org/cgi-bin/refglyph?24-%04X\"
style=\"vertical-align:middle\">"