*** empty log message ***
[m17n/m17n-db.git] / ispell.mim
1 ;; ispell.mim -- English input method with spell checker (ISPELL).
2 ;; Copyright (C) 2003, 2004
3 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
4 ;;   Registration Number H15PRO112
5
6 ;; This file is part of the m17n library.
7
8 ;; The m17n library is free software; you can redistribute it and/or
9 ;; modify it under the terms of the GNU Lesser General Public License
10 ;; as published by the Free Software Foundation; either version 2.1 of
11 ;; the License, or (at your option) any later version.
12
13 ;; The m17n library is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 ;; Lesser General Public License for more details.
17
18 ;; You should have received a copy of the GNU Lesser General Public
19 ;; License along with the m17n library; if not, write to the Free
20 ;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 ;; 02111-1307, USA.
22
23 ;;; <li> ispell.mim
24 ;;;
25 ;;; Input method for English using ISPELL as a spell checker.  It uses
26 ;;; the loadable module libmimx-ispell.so to communicate with ISPELL
27 ;;; program.  You can check the spelll of typed word by TAB key.  Not
28 ;;; for an actual use, but for demonstrating what can be done by the
29 ;;; m17n input method.
30
31 (title "ISPELL")
32
33 (map
34  (alpha
35   ("A" "A") ("B" "B") ("C" "C") ("D" "D") ("E" "E") ("F" "F") ("G" "G")
36   ("H" "H") ("I" "I") ("J" "J") ("K" "K") ("L" "L") ("M" "M") ("N" "N")
37   ("O" "O") ("P" "P") ("Q" "Q") ("R" "R") ("S" "S") ("T" "T") ("U" "U")
38   ("V" "V") ("W" "W") ("X" "X") ("Y" "Y") ("Z" "Z")
39   ("a" "a") ("b" "b") ("c" "c") ("d" "d") ("e" "e") ("f" "f") ("g" "g")
40   ("h" "h") ("i" "i") ("j" "j") ("k" "k") ("l" "l") ("m" "m") ("n" "n")
41   ("o" "o") ("p" "p") ("q" "q") ("r" "r") ("s" "s") ("t" "t") ("u" "u")
42   ("v" "v") ("w" "w") ("x" "x") ("y" "y") ("z" "z"))
43  (ispell
44   ((Tab) (call libmimx-ispell ispell_word init select)))
45
46  (change
47   ((Left) (select @-))
48   ((Right) (select @+))))
49
50 (module
51  (libmimx-ispell ispell_word init fini))
52
53 (state
54  (init
55   (alpha (shift alpha)))
56
57  (alpha
58   (alpha)
59   (ispell))
60
61  (select
62   (change)))
63
64 ;; Local Variables:
65 ;; mode: lisp
66 ;; End: