From: handa Date: Thu, 25 Aug 2005 02:17:59 +0000 (+0000) Subject: New file. X-Git-Tag: REL-1-3-0~151 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5149866c2409cb21a066ca4747cbcdef3d9f79ae;p=m17n%2Fm17n-db.git New file. --- diff --git a/SCRIPT-LANGUAGE.tbl b/SCRIPT-LANGUAGE.tbl new file mode 100644 index 0000000..a93f857 --- /dev/null +++ b/SCRIPT-LANGUAGE.tbl @@ -0,0 +1,69 @@ +;; SCRIPT-LANGUAGE.tbl -- Languages used in each script -*- lisp -*- +;; Copyright (C) 2005 +;; 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., 59 Temple Place, Suite 330, Boston, MA +;; 02111-1307, USA. +;; +;; The file format is this: +;; (SCRIPT [ ISO639-1 | ISO639-2 ] ...) ... +;; SCRIPT: script name +;; ISO639-1: 2-letter language code of ISO639-1. +;; ISO639-2: 3-letter language code of ISO639-2. + +;;;
  • SCRIPT-LANGUAGE.tbl +;;; +;;; Table of scripts vs languages using the corresponding script. + +(arabic ar az fa ha kk ks ku ky pa ps sd ug ur) +(armenian hy) +(avesta ae) +(bengali as bn) +(cree cr) +(cylliric ug) +(cyrillic ab av az ba be bg ce cu cv kk ku kv ky mk mn os ru sr hr bs tg tk tt uk uz) +(devanagari bh hi ks mr ne sa) +(eskimo ik) +(ethiopic am ti) +(georgian ka) +(glagolitic cu) +(greek el) +(gujarati gu) +(gurmukhi pa) +(han ja zh) +(hangul ko) +(hebrew he yi) +(hiragana ja) +(javanese jv) +(kannada kn) +(katakana ja) +(khmer km) +(lao lo) +(latin aa af ak tw an ay bi bm br ca ch co cs cy da de ee en eo es et eu ff fi fj fo fr wa fy ga gd gl gn gv ha ho ht hu hz id ig ik is it iu jv kg ki kj kl kr ku kw la lb lg li ln lt lu lv mg mh mi ms mt na nd ng nl no nb nn nr nv ny oc oj om pl pt qu rm rn ro mo rw sc se sg sk sl sm sn so sq sr hr bs ss st su sv sw tl tn to tr ts ty ve vi wo xh yo za zu) +(malayalam ml) +(mongalian mn) +(myanmar my pi) +(oriya or) +(sinhala pi si) +(tamil ta) +(telugu te) +(thaana dv) +(thai pi th) +(tibetan bo dz) +(yi ii) diff --git a/THAI-GENERIC.flt b/THAI-GENERIC.flt new file mode 100644 index 0000000..736b134 --- /dev/null +++ b/THAI-GENERIC.flt @@ -0,0 +1,100 @@ +;; THAI-GENERIC.flt -- Font Layout Table for Thai (proportional font) +;; Copyright (C) 2005 +;; 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., 59 Temple Place, Suite 330, Boston, MA +;; 02111-1307, USA. + +;;;
  • THAI-GENERIC.flt +;;; +;;; For the Thai proportional fonts to draw Thai script. + +;; 1st stage: basic composition of CVT +(category + ;; C: CONSONANT + ;; V: VOWEL upper and lower + ;; A: SARA-AM + ;; T: TONE + ;; E: else + (0x0E00 0x0E5F ?E) + (0x0E01 0x0E2E ?C) + (0x0E31 ?V) + (0x0E33 ?A) + (0x0E34 0x0E3A ?V) + (0x0E47 ?V) + (0x0E48 0x0E4E ?T) + ) + +(generator + (0 + (cond + ("(C)(T)?(A)" ; SARA-AM -> NIKHAHIT+SARA-AA + (1 = 0x0E4D) (2 =) (3 0x0E32)) + ("(C)(T)(V)?" ; CTV -> CVT + (1 =) (3 =) (2 =)) + ("(C)(V)?(T)?" + (1 =) (2 =) (3 =)) + ("[^C]" + [ = ])) + *)) + +(category + ;; C: CONSONANT tall + ;; c: CONSONANT normal + ;; d: CONSONANT deep + ;; V: VOWEL upper, NIKHAHIT, and YAMAKKAN + ;; v: VOWEL lower + ;; T: TONE + ;; E: ELSE + (0x0E00 0x0E5F ?E) + (0x0E01 0x0E2E ?c) + (0x0E0D 0x0E10 ?d) + (0x0E1B ?C) + (0x0E1D ?C) + (0x0E1F ?C) + (0x0E2C ?C) + (0x0E31 ?V) + (0x0E34 0x0E37 ?V) + (0x0E38 0x0E3A ?v) + (0x0E47 ?V) + (0x0E48 0x0E4C ?T) + (0x0E4D 0x0E4E ?V)) + +(generator + (0 + (cond + ("(C)(V)(T)?" + < (1 =) (2 =) (3 =) >) + ("(C)(v)?(T)?" + < (1 =) (2 =) (3 =) >) + ("([cd])(V)(T)?" + < (1 =) (2 =) (3 =) >) + ("(c)(v)?(T)?" + < (1 =) (2 =) (3 =) >) + ("(d)(v)?(T)?" + < (1 =) (2 =) (3 =) >) + ("[VvT]" + [ = ]) + ("." + =)) + *)) + +;; Local Variables: +;; mode: lisp +;; End: