annotate leim/quail/thai.el @ 26459:1ef9d70dfb0f

* dabbrev.el (dabbrev-filter-elements): Use the new backquote syntax.
author Sam Steingold <sds@gnu.org>
date Mon, 15 Nov 1999 18:59:00 +0000
parents dd39cae4cf0f
children cd1cb9bf30e1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
1 ;;; quail/thai.el --- Quail package for inputting Thai characters
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
2
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
4 ;; Licensed to the Free Software Foundation.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
5
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
6 ;; Keywords: multilingual, input method, Thai
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
7
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
13 ;; any later version.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
14
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
18 ;; GNU General Public License for more details.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
24
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
25 ;;; Code:
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
26
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
27 (require 'quail)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
28 (require 'thai-util)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
29
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30 (eval-and-compile
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
32 (defvar thai-keyboard-mapping-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
33 '((kesmanee
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
34 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; control codes
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
35 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; control codes
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
36 0 "#" ",TF(B" ",Tr(B" ",Ts(B" ",Tt(B" "0,TQi1(B" ",T'(B" ; SPC .. '
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
37 ",Tv(B" ",Tw(B" ",Tu(B" ",Ty(B" ",TA(B" ",T"(B" ",Tc(B" ",T=(B" ; ( .. /
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
38 ",T((B" ",TE(B" "/" "_" ",T@(B" ",T6(B" ",TX(B" ",TV(B" ; 0 .. 7
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
39 ",T$(B" ",T5(B" ",T+(B" ",TG(B" ",T2(B" ",T*(B" ",TL(B" ",TF(B" ; 8 .. ?
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
40 ",Tq(B" ",TD(B" ",TZ(B" ",T)(B" ",T/(B" ",T.(B" ",Tb(B" ",T,(B" ; @ .. G
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
41 ",Tg(B" ",T3(B" ",Tk(B" ",TI(B" ",TH(B" ",Tn(B" ",Tl(B" ",TO(B" ; H .. O
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
42 ",T-(B" ",Tp(B" ",T1(B" ",T&(B" ",T8(B" ",Tj(B" ",TN(B" "\"" ; P .. W
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
43 ")" ",Tm(B" "(" ",T:(B" ",T_(B" ",TE(B" ",TY(B" ",Tx(B" ; X .. _
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
44 ",T#(B" ",T?(B" ",TT(B" ",Ta(B" ",T!(B" ",TS(B" ",T4(B" ",T`(B" ; ` .. g
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
45 ",Ti(B" ",TC(B" ",Th(B" ",TR(B" ",TJ(B" ",T7(B" ",TW(B" ",T9(B" ; h .. o
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
46 ",TB(B" ",Tf(B" ",T>(B" ",TK(B" ",TP(B" ",TU(B" ",TM(B" ",Td(B" ; p .. w
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
47 ",T;(B" ",TQ(B" ",T<(B" ",T0(B" ",To(B" "." ",T%(B" 0] ; x .. DEL
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
48 nil nil)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
49
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
50 (pattachote
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
51 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; control codes
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
52 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; control codes
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
53 0 "+" ",T1(B" "/" "," "?" "_" ",T"(B" ; SPC .. '
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
54 "(" ")" "." "%" ",TP(B" ",Tq(B" ",T((B" ",T>(B" ; ( .. /
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
55 ",Tp(B" "=" ",Tr(B" ",Ts(B" ",Tt(B" ",Tu(B" ",TY(B" ",Tw(B" ; 0 .. 7
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56 ",Tx(B" ",Ty(B" ",T&(B" ",Td(B" ",T?(B" ",Tv(B" ",T2(B" ",TL(B" ; 8 .. ?
19458
196438eb86d1 (thai-keyboard-mapping-alist): Some entry corrected.
Kenichi Handa <handa@m17n.org>
parents: 19409
diff changeset
57 "\"" ",Tk(B" ",TQ(B" ",T0(B" ",TS(B" ",Tf(B" ",T3(B" ",Tl(B" ; @ .. G
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
58 ",TW(B" ",T+(B" ",T<(B" ",T*(B" ",Tb(B" ",TN(B" ",TH(B" ",T6(B" ; H .. O
19465
10d0ae6abbea (thai-keyboard-mapping-alist): Some entry corrected.
Kenichi Handa <handa@m17n.org>
parents: 19458
diff changeset
59 ",T2(B" ",Tj(B" ",T-(B" ",T8(B" ",TI(B" ",T=(B" ",T@(B" ",TD(B" ; P .. W
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60 ",T.(B" ",TV(B" ",T.(B" ",Tc(B" ",TZ(B" ",T2(B" ",TX(B" "-" ; X .. _
19458
196438eb86d1 (thai-keyboard-mapping-alist): Some entry corrected.
Kenichi Handa <handa@m17n.org>
parents: 19409
diff changeset
61 ",T#(B" ",Ti(B" ",TT(B" ",TE(B" ",T'(B" ",TB(B" ",T!(B" ",TQ(B" ; ` .. g
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 ",TU(B" ",TA(B" ",TR(B" ",T9(B" ",T`(B" ",TJ(B" ",T$(B" ",TG(B" ; h .. o
19465
10d0ae6abbea (thai-keyboard-mapping-alist): Some entry corrected.
Kenichi Handa <handa@m17n.org>
parents: 19458
diff changeset
63 ",Ta(B" ",Tg(B" ",TM(B" ",T7(B" ",TC(B" ",T4(B" ",TK(B" ",T5(B" ; p .. w
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 ",T;(B" ",Th(B" ",T:(B" ",TO(B" ",Tm(B" ",TF(B" ",T%(B" 0] ; x .. DEL
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65 nil nil)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
66 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
67 "Alist of Thai keyboard types vs. corresponding mapping tables.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
68 Each element is a list of:
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
69 KEYBOARD-TYPE, ASCII-THAI-TABLE, CONSONANT-MAP-TEMPLATE,
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
70 and VOWEL-UPPER-LOWER-TEMPLATE.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
71
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
72 KEYBOARD-TYPE is a symbol, one of kesmanee or pattachote.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
73
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
74 ASCII-THAI-TABLE is a vector indexed by an ASCII key code
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
75 and the value is the one-char string of Thai character
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
76 assigned at the location of ASCII key on the specific Thai keyboard.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
77 The value is 0 if no Thai character is assigned at the location.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
78
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
79 CONSONANT-MAP-TEMPLATE is a template of a cdr part of a Quail map when
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
80 a consonant is entered.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
81
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
82 VOWEL-UPPER-LOWER-TEMPLATE is a template of a cdr part of a Quail map
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
83 when a vowel upper or a vowel lower is entered.")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
84
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
85 (defmacro thai-keyboard-info (keyboard-type)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
86 `(assq ,keyboard-type thai-keyboard-mapping-alist))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
87
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
88 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
89
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
90 (defvar thai-current-keyboard-type nil
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
91 "Thai Keyboard type which Quail is assuming currently.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
92 This variable is used in Quail internally only.")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
93
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
94 ;; Template of a cdr part of a Quail map when a consonant is entered.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
95 (defvar thai-consonant-alist nil)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
96 ;; Template of a cdr part of a Quail map when a vowel upper or a vowel
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
97 ;; lower is entered.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
98 (defvar thai-vowel-upper-lower-alist nil)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
99
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
100 ;; Return a Quail map corresponding to KEY of length LEN.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
101 ;; The car part of the map is a translation generated automatically.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
102 ;; The cdr part of the map is a copy of ALIST.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
103 (defun thai-generate-quail-map (key len alist)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
104 (let ((str "")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
105 (idx 0))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
106 (while (< idx len)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
107 (setq str (concat str (aref (nth 1 (thai-keyboard-info
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
108 thai-current-keyboard-type))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
109 (aref key idx)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
110 idx (1+ idx)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
111 (cons (string-to-char (compose-string str)) (copy-alist alist))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
112
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
113 ;; Return a Quail map corresponding to KEY of length LEN when Thai
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
114 ;; tone mark is entered.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
115 (defun thai-tone-input (key len)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
116 (thai-generate-quail-map key len nil))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
117
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
118 ;; Return a Quail map corresponding to KEY of length LEN when Thai
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
119 ;; vowel upper or vowel lower is entered.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
120 (defun thai-vowel-upper-lower-input (key len)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
121 (thai-generate-quail-map
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
122 key len
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
123 (nth 3 (thai-keyboard-info thai-current-keyboard-type))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
124
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
125 ;; Define RULES in Quail map. In addition, create
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
126 ;; `thai-consonant-alist-KEYBOARD-TYPE' and
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
127 ;; `thai-vowel-upper-lower-alist-KEYBOARD-TYPE'.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
128
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
129 ;; The general composing rules are as follows:
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
130 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
131 ;; T
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
132 ;; V T V T
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
133 ;; CV -> C, CT -> C, CVT -> C, Cv -> C, CvT -> C
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
134 ;; v v
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
135 ;;
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
136 ;; where C: consonant, V: vowel upper, v: vowel lower, T: tone mark.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
137
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
138 (defmacro thai-quail-define-rules (keyboard-type &rest rules)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
139 (let ((l rules)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
140 consonant-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
141 vowel-upper-lower-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
142 rule trans ch c-set)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
143 (while l
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
144 (setq rule (car l))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
145 (setq trans (nth 1 rule))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
146 (if (consp trans)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
147 (setq trans (car trans)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
148 (setq c-set (char-category-set (string-to-char trans)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
149 (cond ((or (aref c-set ?2)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
150 (aref c-set ?3))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
151 (setq consonant-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
152 (cons (cons (string-to-char (car rule))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
153 'thai-vowel-upper-lower-input)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
154 consonant-alist)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
155 ((aref c-set ?4)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
156 (setq consonant-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
157 (cons (cons (string-to-char (car rule))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
158 'thai-tone-input)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
159 consonant-alist)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
160 vowel-upper-lower-alist
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
161 (cons (cons (string-to-char (car rule))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
162 'thai-tone-input)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
163 vowel-upper-lower-alist))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
164 (setq l (cdr l)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
165 `(progn
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
166 (quail-define-rules ,@rules)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
167 (setcar (nthcdr 2 (thai-keyboard-info ,keyboard-type))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
168 ',consonant-alist)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
169 (setcar (nthcdr 3 (thai-keyboard-info ,keyboard-type))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
170 ',vowel-upper-lower-alist))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
171
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
172 ;; Return an alist which can be a cdr part of a Quail map
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
173 ;; corresponding to the current key when Thai consonant is entered.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
174 (defun thai-consonant-input (key len)
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
175 (let ((quail-package-name (quail-name)))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
176 (setq thai-current-keyboard-type
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
177 (cond ((string= quail-package-name "thai-pattachote") 'pattachote)
19409
c816908e9589 (thai-consonant-input): Typo fixed.
Kenichi Handa <handa@m17n.org>
parents: 18673
diff changeset
178 ((string= quail-package-name "thai-kesmanee") 'kesmanee)
c816908e9589 (thai-consonant-input): Typo fixed.
Kenichi Handa <handa@m17n.org>
parents: 18673
diff changeset
179 (t (error "Invalid Quail package %s" quail-package-name))))
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
180 (copy-alist (nth 2 (thai-keyboard-info thai-current-keyboard-type)))))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
181
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
182 ;; Thai Kesmanee keyboard support.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
183
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
184 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
185 "thai-kesmanee" "Thai" ",T!!(B>" t
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
186 "Thai Kesmanee input method with TIS620 keyboard layout
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
187
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
188 The difference from the ordinal Thai keyboard:
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
189 ',T_(B' and ',To(B' are assigned to '\\' and '|' respectively,
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
190 ',T#(B' and ',T%(B' are assigned to '`' and '~' respectively,
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
191 Don't know where to assign characters ',Tz(B' and ',T{(B'."
19722
dd39cae4cf0f For each package, pass t for the SIMPLE
Kenichi Handa <handa@m17n.org>
parents: 19465
diff changeset
192 nil t t nil t nil nil nil nil nil t)
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
193
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
194 (thai-quail-define-rules 'kesmanee
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
195 ("1" (",TE(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
196 ("!" "#")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
197 ("2" "/")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
198 ("@" ",Tq(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
199 ("3" "_")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
200 ("#" ",Tr(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
201 ("4" (",T@(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
202 ("$" ",Ts(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
203 ("5" (",T6(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
204 ("%" ",Tt(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
205 ("6" ",TX(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
206 ("^" ",TY(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
207 ("7" ",TV(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
208 ("&" "0,TQi1(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
209 ("8" (",T$(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
210 ("*" ",Tu(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
211 ("9" (",T5(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
212 ("\(" ",Tv(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
213 ("0" (",T((B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
214 ("\)" ",Tw(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
215 ("-" (",T"(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
216 ("_" ",Tx(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
217 ("=" (",T*(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
218 ("+" ",Ty(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
219 ("\\" ",T_(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
220 ("|" ",To(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
221 ("`" (",T#(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
222 ("~" (",T%(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
223 ("q" ",Tf(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
224 ("Q" ",Tp(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
225 ("w" ",Td(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
226 ("W" "\"")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
227 ("e" ",TS(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
228 ("E" (",T.(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
229 ("r" (",T>(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
230 ("R" (",T1(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
231 ("t" ",TP(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
232 ("T" (",T8(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
233 ("y" ",TQ(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
234 ("Y" ",Tm(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
235 ("u" ",TU(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
236 ("U" ",Tj(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
237 ("i" (",TC(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
238 ("I" (",T3(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
239 ("o" (",T9(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
240 ("O" ",TO(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
241 ("p" (",TB(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
242 ("P" (",T-(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
243 ("\[" (",T:(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
244 ("{" (",T0(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
245 ("\]" (",TE(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
246 ("}" ",")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
247
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
248 ("a" (",T?(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
249 ("A" ",TD(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
250 ("s" (",TK(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
251 ("S" (",T&(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
252 ("d" (",T!(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
253 ("D" (",T/(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
254 ("f" (",T4(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
255 ("F" ",Tb(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
256 ("g" ",T`(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
257 ("G" (",T,(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
258 ("h" ",Ti(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
259 ("H" ",Tg(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
260 ("j" ",Th(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
261 ("J" ",Tk(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
262 ("k" ",TR(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
263 ("K" (",TI(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
264 ("l" (",TJ(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
265 ("L" (",TH(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
266 ("\;" (",TG(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
267 (":" (",T+(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
268 ("'" (",T'(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
269 ("\"" ".")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
270
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
271 ("z" (",T<(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
272 ("Z" "(")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
273 ("x" (",T;(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
274 ("X" ")")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
275 ("c" ",Ta(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
276 ("C" (",T)(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
277 ("v" (",TM(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
278 ("V" (",TN(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
279 ("b" ",TT(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
280 ("B" ",TZ(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
281 ("n" ",TW(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
282 ("N" ",Tl(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
283 ("m" (",T7(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
284 ("M" ",Tn(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
285 ("," (",TA(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
286 ("<" (",T2(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
287 ("." ",Tc(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
288 (">" (",TL(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
289 ("/" (",T=(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
290 ("?" ",TF(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
291 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
292
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
293
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
294 ;; Thai Pattachote keyboard support.
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
295
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
296 (quail-define-package
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
297 "thai-pattachote" "Thai" ",T!;(B>" t
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
298 "Thai Pattachote input method with TIS620 keyboard layout"
19722
dd39cae4cf0f For each package, pass t for the SIMPLE
Kenichi Handa <handa@m17n.org>
parents: 19465
diff changeset
299 nil t t nil t nil nil nil nil nil t)
18673
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
300
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
301 (thai-quail-define-rules 'pattachote
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
302 ("1" "=")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
303 ("!" "+")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
304 ("2" ",Tr(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
305 ("@" "\"")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
306 ("3" ",Ts(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
307 ("#" "/")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
308 ("4" ",Tt(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
309 ("$" ",")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
310 ("5" ",Tu(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
311 ("%" "?")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
312 ("6" ",TY(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
313 ("^" ",TX(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
314 ("7" ",Tw(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
315 ("&" "_")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
316 ("8" ",Tx(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
317 ("*" ".")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
318 ("9" ",Ty(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
319 ("(" "(")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
320 ("0" ",Tp(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
321 (")" ")")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
322 ("-" ",Tq(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
323 ("_" "-")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
324 ("=" ",Tv(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
325 ("+" "%")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
326 ("\\" ",TZ(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
327 ("|" ",Tm(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
328 ("`" (",T#(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
329 ("~" (",T%(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
330
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
331 ("q" ",Tg(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
332 ("Q" ",Tj(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
333 ("w" (",T5(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
334 ("W" ",TD(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
335 ("e" (",TB(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
336 ("E" ",Tf(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
337 ("r" (",TM(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
338 ("R" (",T-(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
339 ("t" (",TC(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
340 ("T" (",TI(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
341 ("y" ",Th(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
342 ("Y" ",TV(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
343 ("u" (",T4(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
344 ("U" (",T=(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
345 ("i" (",TA(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
346 ("I" (",T+(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
347 ("o" (",TG(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
348 ("O" (",T6(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
349 ("p" ",Ta(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
350 ("P" (",T2(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
351 ("\[" ",Tc(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
352 ("{" ",TO(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
353 ("\]" (",T2(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
354 ("}" ",TF(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
355
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
356 ("a" ",Ti(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
357 ("A" ",Tk(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
358 ("s" (",T7(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
359 ("S" (",T8(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
360 ("d" (",T'(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
361 ("D" ",TS(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
362 ("f" (",T!(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
363 ("F" (",T3(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
364 ("g" ",TQ(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
365 ("G" ",Tl(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
366 ("h" ",TU(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
367 ("H" ",TW(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
368 ("j" ",TR(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
369 ("J" (",T<(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
370 ("k" (",T9(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
371 ("K" (",T*(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
372 ("l" ",T`(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
373 ("L" ",Tb(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
374 (";" ",Td(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
375 (":" (",T&(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
376 ("'" (",T"(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
377 ("\"" (",T1(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
378
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
379 ("z" (",T:(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
380 ("Z" (",T.(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
381 ("x" (",T;(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
382 ("X" (",T.(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
383 ("c" (",TE(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
384 ("C" (",T0(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
385 ("v" (",TK(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
386 ("V" (",T@(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
387 ("b" ",TT(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
388 ("B" ",TQ(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
389 ("n" (",T$(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
390 ("N" (",TH(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
391 ("m" (",TJ(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
392 ("M" (",TN(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
393 ("," ",TP(B")
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
394 ("<" (",T?(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
395 ("." (",T((B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
396 (">" (",T2(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
397 ("/" (",T>(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
398 ("?" (",TL(B" . thai-consonant-input))
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
399 )
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
400
751941736224 Initial revision
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
401 ;;; quail/thai.el ends here