OSDN Git Service

dict.xsd, dict.xml: 屬性 annotation を定義
authorHiroshi Moriyama <hiroshi@kvd.biglobe.ne.jp>
Sun, 26 Dec 2010 16:07:45 +0000 (01:07 +0900)
committerHiroshi Moriyama <hiroshi@kvd.biglobe.ne.jp>
Sun, 26 Dec 2010 16:20:27 +0000 (01:20 +0900)
surface要素にannotation屬性を定義した。變換候補と一緒に表示される短い
註釋などに、この値が利用されることを想定してゐる。

dict.xml
dict.xsd

index 130ba2b..4319229 100644 (file)
--- a/dict.xml
+++ b/dict.xml
@@ -410,6 +410,7 @@ THE SOFTWARE.</license>
       <word>
          <surfaces>
             <surface><stem>叮嚀</stem></surface>
+            <surface annotation="「叮嚀」の代用表記"><stem>丁寧</stem></surface>
          </surfaces>
          <readings>
             <kana><stem>ていねい</stem></kana>
index 9d87d57..5cdce27 100644 (file)
--- a/dict.xsd
+++ b/dict.xsd
@@ -86,6 +86,7 @@
             <xs:element ref="stem"/>
             <xs:element ref="suffix" minOccurs="0" maxOccurs="1"/>
          </xs:sequence>
+         <xs:attribute name="annotation" type="xs:string" use="optional"/>
       </xs:complexType>
    </xs:element>