X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fchiset.git;a=blobdiff_plain;f=char-db-turtle.el;h=7334165eabfa04b50eb046c3e2314ec7ea2bd399;hp=8c3147bb29efb71e46cd3d741449a47919d1a837;hb=HEAD;hpb=d78ba9f4f11155c00eeffa6755f3613676ba6b58 diff --git a/char-db-turtle.el b/char-db-turtle.el index 8c3147b..7334165 100644 --- a/char-db-turtle.el +++ b/char-db-turtle.el @@ -1,6 +1,6 @@ ;;; char-db-turtle.el --- Character Database utility -*- coding: utf-8-er; -*- -;; Copyright (C) 2017 MORIOKA Tomohiko. +;; Copyright (C) 2017, 2018 MORIOKA Tomohiko. ;; Author: MORIOKA Tomohiko ;; Keywords: CHISE, Character Database, RDF, Turtle, ISO/IEC 10646, UCS, Unicode, MULE. @@ -55,12 +55,19 @@ =ucs-itaiji-005 =ucs-itaiji-006 =ucs-itaiji-007 + =ucs-itaiji-008 =ucs-itaiji-009 + =ucs-itaiji-010 + =ucs-itaiji-011 =ucs-itaiji-084 =ucs-var-001 =ucs-var-002 =ucs-var-003 =ucs-var-004 + =ucs-var-005 + =ucs-var-006 + =ucs-var-008 + =ucs-var-010 =cns11643-1 =cns11643-2 =cns11643-3 =cns11643-4 =cns11643-5 =cns11643-6 =cns11643-7 =gb2312 @@ -86,6 +93,7 @@ =>jis-x0208 =>jis-x0213-1 =>jis-x0208@1997 =>ucs@iwds-1 + =>ucs@cognate =>ucs@component =>iwds-1 =>ucs@iso @@ -95,6 +103,7 @@ =>gt-k =>>ucs@iso =>>ucs@unicode =>>ucs@jis =>>ucs@cns =>>ucs@ks + =>>mj =>>gt-k =>>hanyo-denshi/ks ==mj @@ -120,7 +129,12 @@ ==daikanwa ==gt-k ==ucs@gb + ==ucs-itaiji-001 + ==ucs-itaiji-002 ==ucs-itaiji-003 + ==ucs-itaiji-005 + ==ucs-itaiji-006 + ==ucs-var-002 ==ucs@JP/hanazono ==daikanwa/+2p =>>jis-x0208 =>>jis-x0213-1 =>>jis-x0213-2 @@ -133,7 +147,12 @@ =jis-x0208@1983 =jis-x0208@1978 =>ucs-itaiji-001 =>ucs-itaiji-002 + =>ucs-itaiji-003 + =>ucs-itaiji-004 =>ucs-itaiji-005 + =>ucs-itaiji-006 + =>ucs-itaiji-007 + =>ucs-itaiji-001@iwds-1 ==>ucs@bucs =big5 =>cbeta @@ -207,6 +226,8 @@ "._.") ((eq c ?=) ".:.") + ((eq c ?|) + "._cmp_.") (t (char-to-string c)))) (www-uri-encode-feature-name feature-name) @@ -226,6 +247,8 @@ "ideo:simplified-form-of") ((eq '<-vulgar feature-name) "ideo:vulgar-form-of") + ((eq '<-wrong feature-name) + "ideo:wrong-form-of") ((eq '<-original feature-name) "ideo:original-form-of") ((eq '<-ancient feature-name) @@ -471,7 +494,7 @@ ) (defun char-db-turtle-insert-metadata (name value) - (let (col indent) + (let (col indent ret) (insert (format "%-7s " name)) (cond ((or (eq name :sources) @@ -484,6 +507,16 @@ (insert (format " ,\n%schisebib:%s" indent (chise-turtle-uri-encode-ccs-name source)))) nil) + ((eq name :references) + (setq ret (car value)) + (setq ret (plist-get (nth 1 ret) :ref)) + (setq col (current-column)) + (setq indent (make-string col ?\ )) + (insert (format "<%s>" ret)) + (dolist (refspec (cdr value)) + (setq ret (plist-get (nth 1 refspec) :ref)) + (insert (format " ,\n%s<%s>" indent ret))) + nil) (t (insert (format "%S" value)) nil))))