X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=FORMATS%2FDir.txt;h=0105c6bac4a0d7a18d04fcf756decd1466167b0d;hb=485c2e43cbe365458c8c0110a33eedbe6d115f45;hp=08e5f8762e7d94e28a7669bc9d336b00fcd7cb86;hpb=2bf4876487e8c2fc6c709df6d6f81503525fb5fd;p=m17n%2Fm17n-db.git diff --git a/FORMATS/Dir.txt b/FORMATS/Dir.txt index 08e5f87..0105c6b 100644 --- a/FORMATS/Dir.txt +++ b/FORMATS/Dir.txt @@ -1,4 +1,4 @@ -/* Copyright (C) 2003, 2004 +/* Copyright (C) 2003, 2004, 2005 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number H15PRO112 See the end for copying conditions. */ @@ -16,16 +16,57 @@ initialization time. The plist format of this file is as follows: @verbatim MDB-DIR ::= DEFINITION * -DEFINITION ::= '(' TAG [ TAG [ TAG [ TAG ] ] ] FILE ')' +DEFINITION ::= '(' TAG0 [ TAG1 [ TAG2 [ TAG3 ] ] ] FILE [ VERSION ]')' -TAG ::= SYMBOL +TAGn ::= SYMBOL FILE ::= MTEXT + +VERSION ::= MTEXT +@endverbatim + +If TAG0 is neither `charset' nor `char-table', and TAGn (n > 0) is a +symbol `*', FILE can contain a wildcard charater, and all files +matching FILE accoding to the rules used by the shell are the target +of database files. In that case, each file must contain +SELF-DEFINITION which is a plist element providing the actual TAGn +values by the form: + +@verbatim +SELF-DEFINITION ::= '(' TAG0 TAG1 TAG2 TAG3 [ VERSION ] ')' +@endverbatim + +For instance, if a database directory contains these files: + +@verbatim +zh-py.mim: +(input-method zh py) + +ko-han2.mim: +(input-method ko han2) @endverbatim + +these lines in "mdb.dir": + +@verbatim +(input-method zh py "zh-py.mim") +(input-method ko han2 "ko-han2.mim") +@endverbatim + +can be shortened to this single line: + +@verbatim +(input-method * "*.mim") +@endverbatim + +VERSION is a required version number of the m17n library. The format +is "XX.YY.ZZ" where XX is a major version number, YY is a minor +version number, and ZZ is a patch level. + */ /* -Copyright (C) 2003, 2004 +Copyright (C) 2003, 2004, 2005 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number H15PRO112 @@ -44,6 +85,6 @@ 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., 59 Temple Place, Suite 330, Boston, MA -02111-1307, USA. +Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. */