Mercurial > emacs
annotate leim/quail/lao.el @ 37790:3d716c9eaa3f
*** empty log message ***
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 17 May 2001 19:21:54 +0000 |
parents | cd1cb9bf30e1 |
children | 519983161a46 |
rev | line source |
---|---|
18673 | 1 ;;; quail/lao.el --- Quail package for inputting Lao characters |
2 | |
3 ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN. | |
4 ;; Licensed to the Free Software Foundation. | |
5 | |
6 ;; Keywords: multilingual, input method, Lao | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
24 | |
25 ;;; Code: | |
26 | |
27 (require 'quail) | |
28 (require 'lao-util) | |
29 | |
26881
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
30 (defun quail-lao-update-translation (control-flag) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
31 (if (integerp control-flag) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
32 ;; Non-composable character typed. |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
33 (setq quail-current-str |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
34 (buffer-substring (overlay-start quail-overlay) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
35 (overlay-end quail-overlay)) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
36 unread-command-events |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
37 (string-to-list |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
38 (substring quail-current-key control-flag))) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
39 (setq quail-current-str |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
40 (compose-string (quail-lookup-map-and-concat quail-current-key)))) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
41 control-flag) |
18673 | 42 |
26881
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
43 (defconst lao-key-alist |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
44 '(("!" . "1") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
45 ("\"" . "=") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
46 ("#" . "3") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
47 ("$" . "4") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
48 ("&" . "5") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
49 ("%" . "(1l(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
50 ("'" . "(1'(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
51 ("(" . "7") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
52 (")" . "8") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
53 ("*" . "6") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
54 ("+" . ["(1mh(B"]) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
55 ("," . "(1A(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
56 ("-" . "(1*(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
57 ("." . "(1c(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
58 ("/" . "(1=(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
59 ("0" . "(1"(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
60 ("1" . "(1B(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
61 ("2" . "(1?(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
62 ("3" . "(1b(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
63 ("4" . "(16(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
64 ("5" . "(1X(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
65 ("6" . "(1Y(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
66 ("7" . "(1$(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
67 ("8" . "(15(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
68 ("9" . "(1((B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
69 (":" . "%") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
70 (";" . "(1G(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
71 ("<" . "(1}(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
72 ("=" . "(1m(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
73 (">" . "$") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
74 ("?" . ")") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
75 ("@" . "2") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
76 ("A" . ["(1Qi(B"]) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
77 ("B" . ["(1Vi(B"]) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
78 ("C" . "(1O(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
79 ("D" . ".") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
80 ("E" . ["(1Si(B"]) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
81 ("F" . ",") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
82 ("G" . ":") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
83 ("H" . "(1j(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
84 ("I" . "(1N(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
85 ("J" . "(1k(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
86 ("K" . "!") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
87 ("L" . "?") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
88 ("M" . "(1f(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
89 ("N" . ["(1Wi(B"]) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
90 ("O" . "(1|(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
91 ("P" . "(1](B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
92 ("Q" . ["(1[i(B"]) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
93 ("R" . "_") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
94 ("S" . ";") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
95 ("T" . "+") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
96 ("U" . ["(1Ui(B"]) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
97 ("V" . "x") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
98 ("W" . "0") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
99 ("X" . "(") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
100 ("Y" . ["(1Ti(B"]) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
101 ("Z" . "\"") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
102 ("[" . "(1:(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
103 ("]" . "(1E(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
104 ("^" . "(1\(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
105 ("_" . "9") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
106 ("`" . "(1'(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
107 ("a" . "(1Q(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
108 ("b" . "(1V(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
109 ("c" . "(1a(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
110 ("d" . "(1!(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
111 ("e" . "(1S(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
112 ("f" . "(14(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
113 ("g" . "(1`(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
114 ("h" . "(1i(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
115 ("i" . "(1C(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
116 ("j" . "(1h(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
117 ("k" . "(1R(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
118 ("l" . "(1J(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
119 ("m" . "(17(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
120 ("n" . "(1W(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
121 ("o" . "(19(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
122 ("p" . "(1-(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
123 ("q" . "(1[(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
124 ("r" . "(1>(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
125 ("s" . "(1K(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
126 ("t" . "(1P(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
127 ("u" . "(1U(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
128 ("v" . "(1M(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
129 ("w" . "(1d(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
130 ("x" . "(1;(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
131 ("y" . "(1T(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
132 ("z" . "(1<(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
133 ("{" . "-") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
134 ("|" . ["(1K\(B"]) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
135 ("}" . "/") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
136 ("~" . "(1l(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
137 ("\\0" . "(1p(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
138 ("\\1" . "(1q(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
139 ("\\2" . "(1r(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
140 ("\\3" . "(1s(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
141 ("\\4" . "(1t(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
142 ("\\5" . "(1u(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
143 ("\\6" . "(1v(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
144 ("\\7" . "(1w(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
145 ("\\8" . "(1x(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
146 ("\\9" . "(1y(B") |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
147 )) |
18673 | 148 |
26881
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
149 (defconst lao-consonant-key-alist nil) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
150 (defconst lao-semivowel-key-alist nil) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
151 (defconst lao-vowel-key-alist nil) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
152 (defconst lao-voweltone-key-alist nil) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
153 (defconst lao-tone-key-alist nil) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
154 (defconst lao-other-key-alist nil) |
18673 | 155 |
26881
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
156 (let ((tail lao-key-alist) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
157 elt phonetic-type) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
158 (while tail |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
159 (setq elt (car tail) tail (cdr tail)) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
160 (if (stringp (cdr elt)) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
161 (setq phonetic-type (get-char-code-property (aref (cdr elt) 0) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
162 'phonetic-type)) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
163 (setq phonetic-type (get-char-code-property (aref (aref (cdr elt) 0) 0) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
164 'phonetic-type)) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
165 (aset (cdr elt) 0 (compose-string (aref (cdr elt) 0)))) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
166 (cond ((eq phonetic-type 'consonant) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
167 (setq lao-consonant-key-alist (cons elt lao-consonant-key-alist))) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
168 ((memq phonetic-type '(vowel-upper vowel-lower)) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
169 (if (stringp (cdr elt)) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
170 (setq lao-vowel-key-alist (cons elt lao-vowel-key-alist)) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
171 (setq lao-voweltone-key-alist |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
172 (cons elt lao-voweltone-key-alist)))) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
173 ((eq phonetic-type 'tone) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
174 (setq lao-tone-key-alist (cons elt lao-tone-key-alist))) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
175 ((eq phonetic-type 'semivowel-lower) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
176 (setq lao-semivowel-key-alist (cons elt lao-semivowel-key-alist))) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
177 (t |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
178 (setq lao-other-key-alist (cons elt lao-other-key-alist)))))) |
18673 | 179 |
180 (quail-define-package | |
19261
84a9af170661
Change title string of input method "Lao".
Kenichi Handa <handa@m17n.org>
parents:
18673
diff
changeset
|
181 "lao" "Lao" "(1E(B" t |
18673 | 182 "Lao input method simulating Lao keyboard layout based on Thai TIS620" |
26881
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
183 nil t t t t nil nil nil 'quail-lao-update-translation nil t) |
18673 | 184 |
26881
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
185 (quail-install-map |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
186 (quail-map-from-table |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
187 '((base-state (lao-consonant-key-alist . svt-state) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
188 lao-vowel-key-alist |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
189 lao-voweltone-key-alist |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
190 lao-tone-key-alist |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
191 lao-other-key-alist) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
192 (svt-state (lao-semivowel-key-alist . v-state) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
193 (lao-vowel-key-alist . t-state) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
194 lao-voweltone-key-alist) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
195 (v-state (lao-vowel-key-alist . t-state)) |
cd1cb9bf30e1
Rewritten for new composition.
Kenichi Handa <handa@m17n.org>
parents:
19722
diff
changeset
|
196 (t-state lao-tone-key-alist)))) |
18673 | 197 |
198 ;;; quail/lao.el ends here |