X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=char-db-turtle.el;h=d47970fabcabec6e2cf0fe190670af547e077303;hb=4290a8740b92f212f780e1e5dc73daf5fed7bbbb;hp=506432e876ce33e94a3c8e9f121d859dc0d2d103;hpb=2faa382c9438370351e355e3aadb16cc3b04c9ab;p=chise%2Fchiset.git diff --git a/char-db-turtle.el b/char-db-turtle.el index 506432e..d47970f 100644 --- a/char-db-turtle.el +++ b/char-db-turtle.el @@ -54,9 +54,11 @@ =ucs-itaiji-004 =ucs-itaiji-005 =ucs-itaiji-006 + =ucs-itaiji-009 =ucs-itaiji-084 =ucs-var-001 =ucs-var-002 + =ucs-var-003 =ucs-var-004 =cns11643-1 =cns11643-2 =cns11643-3 =cns11643-4 =cns11643-5 =cns11643-6 =cns11643-7 @@ -67,14 +69,18 @@ =ucs@unicode =ucs@JP/hanazono =gb12345 + =ucs@cns + =ucs@gb =zinbun-oracle =>zinbun-oracle =daikanwa =ruimoku-v6 =cbeta =jef-china3 + =daikanwa/+2p =+>ucs@iso =+>ucs@unicode =+>ucs@jis =+>ucs@cns =+>ucs@ks + =+>ucs@jis/1990 =>mj =>jis-x0208 =>jis-x0213-1 =>jis-x0208@1997 @@ -89,6 +95,7 @@ =>>ucs@iso =>>ucs@unicode =>>ucs@jis =>>ucs@cns =>>ucs@ks =>>gt-k + =>>hanyo-denshi/ks ==mj ==ucs@iso ==ucs@unicode @@ -111,7 +118,10 @@ ==koseki ==daikanwa ==gt-k + ==ucs@gb + ==ucs-itaiji-003 ==ucs@JP/hanazono + ==daikanwa/+2p =>>jis-x0208 =>>jis-x0213-1 =>>jis-x0213-2 =+>jis-x0208 =+>jis-x0213-1 =+>jis-x0213-2 =+>hanyo-denshi/jt @@ -134,12 +144,15 @@ ===gt ===gt-k ===ucs@ks + ===ucs@gb =shinjigen + =shinjigen@rev =shinjigen@1ed =shinjigen/+p@rev ==shinjigen ==shinjigen@rev ==daikanwa/+p + ==shinjigen@1ed ===daikanwa/+p =>daikanwa/ho ===daikanwa/ho @@ -224,7 +237,7 @@ (defun chise-turtle-encode-char (object) (let ((ccs-list est-coded-charset-priority-list) - ccs ret) + ccs ret ret2) (if (setq ret (encode-char object '=ucs)) (chise-turtle-format-ccs-code-point '=ucs ret) (while (and ccs-list @@ -237,6 +250,20 @@ (setq ret (encode-char object ccs))) (chise-turtle-format-ccs-code-point ccs ret) ) + ((setq ret (get-char-attribute object 'ideographic-combination)) + (format "ideocomb:%s" + (mapconcat (lambda (cell) + (cond ((characterp cell) + (char-to-string cell) + ) + ((setq ret2 (find-char cell)) + (char-to-string ret2) + ) + (t + (format "%S" cell) + ))) + ret "")) + ) (t (format (if est-hide-cgi-mode "system-char-id=0x%X" @@ -493,7 +520,7 @@ (defun char-db-turtle-insert-source-list (value &optional readable) (let (lbs separator rest cell al cal key ret) - (setq lbs (concat "\n" (make-string (current-column) ?\ )) + (setq lbs (concat " ,\n" (make-string (current-column) ?\ )) separator nil) (while (consp value) (setq cell (car value)) @@ -551,7 +578,7 @@ (setq separator (format " ,%s" lbs))) (if (characterp cell) (insert (format "%-20s" (chise-turtle-encode-char cell))) - (char-db-turtle-insert-char-ref cell 'ideographic-combination)) + (char-db-turtle-insert-char-ref cell '<-formed)) (setq value (cdr value))) nil)) @@ -561,6 +588,7 @@ ) ((or (eq feature-name-base 'ideographic-combination) (eq feature-name-base '=decomposition) + (eq feature-name-base '<-formed) (string-match "^\\(->\\|<-\\)[^*]*$" (symbol-name feature-name-base))) (char-db-turtle-insert-relations value readable) ) @@ -936,7 +964,7 @@ line-separator)) (setq col (current-column)) (insert (format ":context domain:%-7s ;\n%s:target %S" - domain + (chise-turtle-uri-encode-ccs-name domain) (make-string col ?\ ) value)) (setq attributes (delq key attributes)) @@ -1156,6 +1184,7 @@ @prefix chisegg: . @prefix domain: . @prefix script: . +@prefix ideocomb: . @prefix chisebib: . @prefix ruimoku: . @prefix zob1959: .