*** empty log message ***
authorhanda <handa>
Mon, 16 Feb 2009 05:19:31 +0000 (05:19 +0000)
committerhanda <handa>
Mon, 16 Feb 2009 05:19:31 +0000 (05:19 +0000)
Makefile.am
bootstrap.sh
mdb.dir [deleted file]
mdb.rng [new file with mode: 0644]
mdb.xml [new file with mode: 0644]

index 10e4837..280314f 100644 (file)
@@ -30,7 +30,7 @@ pkgdata_DATA = \
        mdb.xml mdb.rng
 
 EXTRA_DIST = config.rpath mkinstalldirs m4/ChangeLog \
-       mdb.dir \
+       mdb.xml \
        ${MISC_TABLE} \
        BLOCK.tab \
        ${UNIDATA} \
index 91ef76d..af586af 100755 (executable)
@@ -28,7 +28,7 @@ automake -a
 echo "Running autoconf..."
 autoconf
 echo "Producing po/POTFILES.in"
-ls MIM/*.mim > po/POTFILES.in
+ls MIM/*.mimx > po/POTFILES.in
 echo "The remaining steps to install this packge are:"
 echo "  % ./configure"
 echo "  % make"
diff --git a/mdb.dir b/mdb.dir
deleted file mode 100644 (file)
index 687f0b5..0000000
--- a/mdb.dir
+++ /dev/null
@@ -1,159 +0,0 @@
-;; mdb.dir -- The m17n database directory                      -*- lisp -*-
-;; Copyright (C) 2003, 2004, 2005, 2006
-;;   National Institute of Advanced Industrial Science and Technology (AIST)
-;;   Registration Number H15PRO112
-
-;; This file is part of the m17n database; a sub-part of the m17n
-;; library.
-
-;; The m17n library is free software; you can redistribute it and/or
-;; modify it under the terms of the GNU Lesser General Public License
-;; as published by the Free Software Foundation; either version 2.1 of
-;; the License, or (at your option) any later version.
-
-;; The m17n library is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-;; Lesser General Public License for more details.
-
-;; You should have received a copy of the GNU Lesser General Public
-;; License along with the m17n library; if not, write to the Free
-;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-;; Boston, MA 02110-1301, USA.
-
-;; General format: (TAG0 TAG1 [ TAG2 [ TAG3 ] ] FILE)
-;;     TAG0..TAG3 must be symbol.
-;;     FILE must be string of the form "...".
-;; This file must contain only ASCII characters.
-
-;;; @page m17nDBData Data provided by the m17n database
-;;; <ul>
-;;; <li> @ref charprop-list
-;;; <li> @ref mim-list
-;;; <li> @ref flt-list
-;;; <li> @ref fontset-list
-;;; <li> @ref misc-list
-;;; </ul>
-;;;
-;;; @section charprop-list Character Property
-;;; <ul>
-
-;;; <li> CATEGORY.tab
-;;;
-;;; Unicode general category for each character that is available as
-;;; #Mcategory property.
-(char-table symbol category "CATEGORY.tab")
-
-;;; <li> COMBINE.tab
-;;;
-;;; Unicode combining class for each character that is available as
-;;; #Mcombining_class property.
-(char-table integer combining-class "COMBINE.tab")
-
-;;; <li> BIDI.tab
-;;;
-;;; Unicode BIDI category for each character that is available as
-;;; #Mbidi_category property.
-(char-table symbol bidirectional-category "BIDI.tab")
-
-;;; <li> CASE-S.tab
-;;;
-;;; Unicode case-folding mapping of each character that is available as
-;;; #Msimple_case_folding property.
-(char-table integer simple-case-folding "CASE-S.tab")
-
-;;; <li> CASE-C.tab
-;;;
-;;; Unicode complicated case-folding mapping of each character that is
-;;; available as #Mcomplicated_case_folding property.
-(char-table mtext complicated-case-folding "CASE-C.tab")
-
-;;; <li> NAME.tab
-;;;
-;;; Unicode character name for each character that is available as
-;;; #Mname property.
-(char-table string name "NAME.tab")
-
-;;; <li> SCRIPT.tab
-;;;
-;;; Unicode script name for each character that is available as
-;;; #Mscript property.
-(char-table symbol script "SCRIPT.tab")
-
-;;; <li> CASED.tab
-;;;
-;;; Unicode properties for case operations.  Integer value 1 means
-;;; cased (D47, Unicode 4.0, p.89), 2 means case-ignorable (D47a,
-;;; Unicode 4.1.0), and 3 means both.  Available as #Mcased property.
-(char-table integer cased "CASED.tab")
-
-;;; <li> SOFT-DOTTED.tab
-;;;
-;;; Unicode property for case operations.  Available as #Msoft_dotted
-;;; property.
-(char-table symbol soft-dotted "SOFT-DOTTED.tab")
-
-;;; <li> CASE-MAPPING.tab
-;;;
-;;; Unicode case mapping of each character that is available as
-;;; #Mcase_mapping property.
-(char-table plist case-mapping "CASE-MAPPING.tab")
-
-;;; <li> BLOCKS.tab
-;;;
-;;; Unicode fallback script name for each character that is available
-;;; as #Mblock property.  Generated manually by referring UCD
-;;; Blocks.txt.
-;;;
-(char-table symbol block "BLOCK.tab")
-
-;;; </ul>
-
-;;; @section mim-list Input method
-;;;
-;;; See @ref mdbIM for the format of these files.
-;;; <ul>
-;; The actual tags and filename are defined in each file with extension "mim".
-(input-method * "*.mim")
-;;; </ul>
-
-;;; @section flt-list Font Layout Table
-;;;
-;;; See @ref mdbFLT for the format of these files.
-;;; <ul>
-;; The actual tags and filename are defined in each file with extension "flt".
-(font layouter * "*.flt")
-;;; </ul>
-
-;;; @section fontset-list Fontset
-;;;
-;;; See @ref mdbFontset for the format of these files.
-;;; <ul>
-(fontset default "default.fst")
-(fontset xfont "xfont.fst")
-(fontset truetype "truetype.fst")
-(fontset generic "generic.fst")
-;;; </ul>
-
-;;; @section misc-list The other data
-;;; <ul>
-(font encoding "FONTENC.tbl")
-(font resize "FONTSIZE.tbl")
-
-(charset-list "CHARSET.tbl")
-
-(coding-list "CODING.tbl")
-
-(locale codeset "LOCALE.cs")
-(locale alias "LOCALE.ali")
-
-(char-table integer linebreak "LINEBREAK.tab")
-
-(language name * "*.lnm")
-
-(standard language iso639 "LANGUAGE.tbl")
-(standard script otf "SCRIPT-OTF.tbl")         ;obsolete
-(unicode script language "SCRIPT-LANGUAGE.tbl")        ;obsolete
-(standard script unicode "SCRIPT.tbl")
-
-;;; </ul>
diff --git a/mdb.rng b/mdb.rng
new file mode 100644 (file)
index 0000000..c9e2669
--- /dev/null
+++ b/mdb.rng
@@ -0,0 +1,225 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The m17n database directory -->
+<grammar ns="http://www.m17n.org/mdb" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+  <start>
+    <element name="database">
+      <element name="doxygen">
+        <element name="page">
+          <attribute name="id">
+            <data type="token"/>
+          </attribute>
+          <text/>
+          <zeroOrMore>
+            <element name="section">
+              <attribute name="id">
+                <data type="ID"/>
+              </attribute>
+              <text/>
+            </element>
+          </zeroOrMore>
+        </element>
+      </element>
+      <zeroOrMore>
+        <element name="item">
+          <optional>
+            <attribute name="key1">
+              <data type="token"/>
+            </attribute>
+          </optional>
+          <optional>
+            <attribute name="key2">
+              <data type="token"/>
+            </attribute>
+          </optional>
+          <optional>
+            <attribute name="key3">
+              <data type="token"/>
+            </attribute>
+          </optional>
+          <attribute name="sectionid">
+            <data type="IDREF"/>
+          </attribute>
+          <optional>
+            <element name="description">
+              <text/>
+            </element>
+          </optional>
+          <choice>
+            <group>
+              <attribute name="key0">
+                <value>char-table</value>
+              </attribute>
+              <element name="source">
+                <element name="filename">
+                  <data type="string"/>
+                </element>
+              </element>
+            </group>
+            <group>
+              <attribute name="key0">
+                <choice>
+                  <data type="token">
+                    <param name="maxLength">9</param>
+                  </data>
+                  <data type="token">
+                    <param name="minLength">11</param>
+                  </data>
+                  <data type="token">
+                    <param name="pattern">[^c][^h][^a][^r][^\-][^t][^a][^b][^l][^e]</param>
+                  </data>
+                </choice>
+              </attribute>
+              <element name="source">
+                <element name="filename">
+                  <data type="string"/>
+                </element>
+                <choice>
+                  <element name="format">
+                    <value>plist</value>
+                  </element>
+                  <group>
+                    <element name="format">
+                      <value>xml</value>
+                    </element>
+                    <element name="schema">
+                      <attribute name="type">
+                        <choice>
+                          <value>dtd</value>
+                          <value>xml-schema</value>
+                          <value>relaxng</value>
+                          <value>schematron</value>
+                        </choice>
+                      </attribute>
+                      <element name="schema-filename">
+                        <data type="string"/>
+                      </element>
+                    </element>
+                  </group>
+                </choice>
+              </element>
+            </group>
+          </choice>
+          <optional>
+            <element name="properties">
+              <optional>
+                <ref name="version"/>
+              </optional>
+              <optional>
+                <ref name="font"/>
+              </optional>
+            </element>
+          </optional>
+        </element>
+      </zeroOrMore>
+    </element>
+  </start>
+  <define name="version">
+    <element name="version">
+      <element name="major-version">
+        <data type="integer">
+          <param name="pattern">[0-9][0-9]</param>
+        </data>
+      </element>
+      <element name="minor-version">
+        <data type="integer">
+          <param name="pattern">[0-9][0-9]</param>
+        </data>
+      </element>
+      <element name="patch-level">
+        <data type="integer">
+          <param name="pattern">[0-9][0-9]</param>
+        </data>
+      </element>
+    </element>
+  </define>
+  <define name="font">
+    <element name="font">
+      <optional>
+        <attribute name="foundry">
+          <data type="token"/>
+        </attribute>
+        <attribute name="family">
+          <data type="token"/>
+        </attribute>
+        <optional>
+          <attribute name="weight">
+            <data type="token"/>
+          </attribute>
+          <optional>
+            <attribute name="style">
+              <data type="token"/>
+            </attribute>
+            <optional>
+              <attribute name="stretch">
+                <data type="token"/>
+              </attribute>
+              <optional>
+                <attribute name="adstyle">
+                  <data type="token"/>
+                </attribute>
+              </optional>
+            </optional>
+          </optional>
+        </optional>
+      </optional>
+      <attribute name="registry">
+        <data type="token"/>
+      </attribute>
+      <optional>
+        <ref name="otf-specification"/>
+      </optional>
+      <optional>
+        <element name="lang-specification">
+          <data type="token">
+            <param name="minLength">2</param>
+            <param name="maxLength">3</param>
+          </data>
+        </element>
+      </optional>
+    </element>
+  </define>
+  <define name="otf-specification">
+    <element name="otf">
+      <attribute name="script"/>
+      <optional>
+        <attribute name="langsys"/>
+      </optional>
+      <optional>
+        <element name="gsub-features">
+          <oneOrMore>
+            <choice>
+              <element name="positive">
+                <data type="string">
+                  <param name="length">4</param>
+                </data>
+              </element>
+              <element name="negative">
+                <data type="string">
+                  <param name="length">4</param>
+                </data>
+              </element>
+            </choice>
+          </oneOrMore>
+        </element>
+      </optional>
+      <optional>
+        <element name="gpos-features">
+          <oneOrMore>
+            <choice>
+              <element name="positive">
+                <data type="string">
+                  <param name="length">4</param>
+                </data>
+              </element>
+              <element name="negative">
+                <data type="string">
+                  <param name="length">4</param>
+                </data>
+              </element>
+            </choice>
+          </oneOrMore>
+        </element>
+      </optional>
+    </element>
+  </define>
+</grammar>
diff --git a/mdb.xml b/mdb.xml
new file mode 100644 (file)
index 0000000..8c84697
--- /dev/null
+++ b/mdb.xml
@@ -0,0 +1,206 @@
+<?xml version='1.0'?>
+
+<database xmlns="http://www.m17n.org/mdb">
+
+<!--   mdb.dir  The m17n database directory    
+;; Copyright (C) 2003, 2004, 2005, 2006
+;;   National Institute of Advanced Industrial Science and Technology (AIST)
+;;   Registration Number H15PRO112 
+
+;; This file is part of the m17n database; a sub-part of the m17n
+;; library.
+
+;; The m17n library is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU Lesser General Public License
+;; as published by the Free Software Foundation; either version 2.1 of
+;; the License, or (at your option) any later version.
+
+;; The m17n library is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; Lesser General Public License for more details.
+
+;; You should have received a copy of the GNU Lesser General Public
+;; License along with the m17n library; if not, write to the Free
+;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
+
+;; General format: (TAG0 TAG1 [ TAG2 [ TAG3 ] ] FILE)
+;;     TAG0..TAG3 must be symbol.
+;;     FILE must be string of the form "...".
+;; This file must contain only ASCII characters. -->
+<doxygen>
+  <page id="m17nDBData">
+    Data provided by the m17n database
+    <section id="charprop">
+      Character Property
+    </section>
+    <section id="mim">
+      Input method 
+      See @ref mdbIM for the format of these files.
+    </section>
+    <section id="flt">
+      Font Layout Table
+      See @ref mdbFLT for the format of these files.
+    </section>
+    <section id="fontset">
+      Fontset
+      See @ref mdbFontset for the format of these files.
+    </section>
+    <section id="misc">
+      The other data
+    </section>
+  </page>
+</doxygen>
+
+<!-- charprop -->
+
+<item  key0="char-table" key1="symbol" key2="category" sectionid="charprop">
+  <description>Unicode general category for each character that is available as
+  #Mcategory property.</description>
+  <source><filename>CATEGORY.tab</filename></source>
+</item>
+
+<item key0="char-table" key1="integer" key2="combining-class" sectionid="charprop">
+  <description>Unicode combining class for each character that is available as
+  #Mcombining_class property.</description>
+  <source><filename>COMBINE.tab</filename></source>
+</item>
+
+<item key0="char-table" key1="symbol" key2="bidirectional-category" sectionid="charprop">
+  <description>Unicode BIDI category for each character that is available as
+  #Mbidi_category property.</description>
+  <source><filename>BIDI.tab</filename></source>
+</item>
+
+<item key0="char-table" key1="integer" key2="simple-case-folding" sectionid="charprop">
+  <description>Unicode case-folding mapping of each character that is available as
+  #Msimple_case_folding property.</description>
+  <source><filename>CASE-S.tab</filename></source>
+</item>
+
+<item key0="char-table" key1="mtext" key2="complicated-case-folding" sectionid="charprop">
+  <description>Unicode complicated case-folding mapping of each character that is
+  available as #Mcomplicated_case_folding property.</description>
+  <source><filename>CASE-C.tab</filename></source>
+</item>
+
+<item key0="char-table" key1="string" key2="name" sectionid="charprop">
+  <description>Unicode character name for each character that is available as
+  #Mname property.</description>
+  <source><filename>NAME.tab</filename></source>
+</item>
+
+<item key0="char-table" key1="symbol" key2="script" sectionid="charprop">
+  <description>Unicode script name for each character that is available as
+  #Mscript property.</description>
+  <source><filename>SCRIPT.tab</filename></source>
+</item>
+
+<item key0="char-table" key1="integer" key2="cased" sectionid="charprop">
+  <description>Unicode properties for case operations.  Integer value 1 means
+  cased (D47, Unicode 4.0, p.89), 2 means case-ignorable (D47a,
+  Unicode 4.1.0), and 3 means both.  Available as #Mcased property.</description>
+  <source><filename>CASED.tab</filename></source>
+</item>
+
+<item key0="char-table" key1="symbol" key2="soft-dotted" sectionid="charprop"> 
+  <description>Unicode property for case operations.  Available as #Msoft_dotted
+  property.</description>
+  <source><filename>SOFT-DOTTED.tab</filename></source>
+</item>
+
+<item key0="char-table" key1="plist" key2="case-mapping" sectionid="charprop">
+  <description>Unicode case mapping of each character that is available as
+  #Mcase_mapping property. </description>
+  <source><filename>CASE-MAPPING.tab</filename></source>
+</item>
+
+<item key0="char-table" key1="symbol" key2="block" sectionid="charprop">
+  <description>Unicode fallback script name for each character that is available
+  as #Mblock property.  Generated manually by referring UCD
+  Blocks.txt.</description>
+  <source><filename>BLOCK.tab</filename></source>
+</item>
+
+<!-- mim -->
+
+<item key0="input-method" key1="*" sectionid="mim">
+  <description>The actual tags and filename are defined in each file with extension "mim". </description>
+  <source>
+    <filename>*.mimx</filename>
+    <format>xml</format>
+    <schema type="relaxng">
+      <schema-filename>mim.rng</schema-filename>
+    </schema>
+  </source>
+</item>
+
+<!-- flt -->
+<item key0="font" key1="layouter" key2="*" sectionid="flt">
+  <description>The actual tags and filename are defined in each file with extension "flt".</description>
+  <source><filename>*.flt</filename><format>plist</format></source>
+</item>
+
+<!-- fontset -->
+
+<item key0="fontset" key1="default" sectionid="fontset">
+  <source><filename>default.fst</filename><format>plist</format></source>
+</item>
+<item key0="fontset" key1="xfont" sectionid="fontset">
+  <source><filename>xfont.fst</filename><format>plist</format></source>
+</item>
+<item key0="fontset" key1="truetype" sectionid="fontset">
+  <source><filename>truetype.fst</filename><format>plist</format></source>
+</item>
+<item key0="fontset" key1="generic" sectionid="fontset">
+  <source><filename>generic.fst</filename><format>plist</format></source>
+</item>
+
+<!-- misc -->
+<item key0="font" key1="encoding" sectionid="misc">
+  <source><filename>FONTENC.tbl</filename><format>plist</format></source>
+</item>
+<item key0="font" key1="resize" sectionid="misc">
+  <source><filename>FONTSIZE.tbl</filename><format>plist</format></source>
+</item>
+
+<item key0="charset-list" sectionid="misc">
+  <source><filename>CHARSET.tbl</filename><format>plist</format></source>
+</item>
+
+<item key0="coding-list" sectionid="misc">
+  <source><filename>CODING.tbl</filename><format>plist</format></source>
+</item>
+
+<item key0="locale" key1="codeset" sectionid="misc">
+  <source><filename>LOCALE.cs</filename><format>plist</format></source>
+</item>
+<item key0="locale" key1="alias" sectionid="misc">
+  <source><filename>LOCALE.ali</filename><format>plist</format></source>
+</item>
+
+<item key0="char-table" key1="integer" key2="linebreak" sectionid="misc">
+  <source><filename>LINEBREAK.tab</filename></source>
+</item>
+
+<item key0="language" key1="name" key2="*" sectionid="misc">
+  <source><filename>*.lnm</filename><format>plist</format></source>
+</item>
+
+<item key0="standard" key1="language" key2="iso639" sectionid="misc">
+  <source><filename>LANGUAGE.tbl</filename><format>plist</format></source>
+</item>
+<item key0="standard" key1="script" key2="otf" sectionid="misc"> <!--  ;obsolete-->
+  <source><filename>SCRIPT-OTF.tbl</filename><format>plist</format></source>
+</item>
+<item key0="unicode" key1="script" key2="language" sectionid="misc">  <!--     ;obsolete-->
+  <source><filename>SCRIPT-LANGUAGE.tbl</filename><format>plist</format></source>
+</item>
+<item key0="standard" key1="script" key2="unicode" sectionid="misc">
+  <source><filename>SCRIPT.tbl</filename><format>plist</format></source>
+</item>
+
+</database>
+
+