(gnus-score-customize): Don't use `format' on `error' arguments.
[bpt/emacs.git] / lisp / language / thai-word.el
CommitLineData
504f06a2
EZ
1;;; thai-word.el -- find Thai word boundaries
2
675ae7bc
KH
3;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
4;; National Institute of Advanced Industrial Science and Technology (AIST)
5;; Registration Number H14PRO021
504f06a2
EZ
6
7;; Author: Kenichi HANDA <handa@etl.go.jp>
8
9;; Keywords: thai, word break, emacs
10
11;; This program is free software; you can redistribute it and/or modify
12;; it under the terms of the GNU General Public License as published by
13;; the Free Software Foundation; either version 2, or (at your option)
14;; any later version.
15
16;; This program is distributed in the hope that it will be useful,
17;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;; GNU General Public License for more details.
20
21;; You should have received a copy of the GNU General Public License
22;; along with GNU Emacs; see the file COPYING. If not, write to
23;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24
25;; The used Thai word list has been taken from IBM's ICU4J project
26;; (file `thai6.ucs', version 1.4, converted to TIS encoding, with
27;; removal of three incorrect entries) to which the following license
28;; applies:
29;;
30;; COPYRIGHT AND PERMISSION NOTICE
31;;
32;;
33;; Copyright (c) 1995-2001 International Business Machines
34;; Corporation and others
35;;
36;; All rights reserved.
37;;
38;;
39;; Permission is hereby granted, free of charge, to any person
40;; obtaining a copy of this software and associated documentation
41;; files (the "Software"), to deal in the Software without
42;; restriction, including without limitation the rights to use,
43;; copy, modify, merge, publish, distribute, and/or sell copies of
44;; the Software, and to permit persons to whom the Software is
45;; furnished to do so, provided that the above copyright notice(s)
46;; and this permission notice appear in all copies of the Software
47;; and that both the above copyright notice(s) and this permission
48;; notice appear in supporting documentation.
49;;
50;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
51;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
52;; OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
53;; NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE
54;; COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE
55;; FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
56;; OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
57;; PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
58;; TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
59;; PERFORMANCE OF THIS SOFTWARE.
60;;
61;; Except as contained in this notice, the name of a copyright
62;; holder shall not be used in advertising or otherwise to promote
63;; the sale, use or other dealings in this Software without prior
64;; written authorization of the copyright holder.
65
66
67;; This file implements an algorithm to find Thai word breaks using a
68;; dictionary. It is based on the C program `cttex' written by
69;; Vuthichai Ampornaramveth <vuthi@nii.ac.jp>.
70
71
72;; Table of Thai words. It is a nested alist (see `nested-alist-p'),
73;; which means that you can easily index the list character by
74;; character.
75
675ae7bc
KH
76(defvar thai-word-table
77 (let ((table (list 'thai-words)))
78 (dolist (elt
79 ;;; The following is indented as this to minimize this file size.
504f06a2
EZ
80