2 ;; Input Method for Telugu Apple Keyboard Layout
4 ;; Copyright (c) 2006, Chaitanya Kamisetty <chaitanya@atc.tcs.co.in>
6 ;; This file is part of the m17n contrib; a sub-part of the m17n
9 ;; This library is free software; you can redistribute it and/or
10 ;; modify it under the terms of the GNU Lesser General Public
11 ;; License as published by the Free Software Foundation; either
12 ;; version 2.1 of the License, or (at your option) any later version.
14 ;; This library is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ;; Lesser General Public License for more details.
19 ;; You should have received a copy of the GNU Lesser General Public
20 ;; License along with this library; if not, write to the Free Software
21 ;; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 (input-method te apple)
26 (description "Apple keyboard layout for Telugu")
148 ;;consonants occuring after a halant
150 ("j" (delete @-) "క")
151 ("J" (delete @-) "ఖ")
152 ("x" (delete @-) "గ")
153 ("X" (delete @-) "ఘ")
154 ("R" (delete @-) "ఙ")
155 ("m" (delete @-) "చ")
156 ("M" (delete @-) "ఛ")
157 ("/" (delete @-) "జ")
158 ("?" (delete @-) "ఝ")
159 ("T" (delete @-) "ఞ")
160 ("z" (delete @-) "ట")
161 ("Z" (delete @-) "ఠ")
162 ("c" (delete @-) "డ")
163 ("C" (delete @-) "ఢ")
164 ("L" (delete @-) "ణ")
165 ("s" (delete @-) "త")
166 ("S" (delete @-) "థ")
167 ("d" (delete @-) "ద")
168 ("D" (delete @-) "ధ")
169 ("l" (delete @-) "న")
170 (":" (delete @-) "ఫ")
171 ("v" (delete @-) "బ")
172 ("V" (delete @-) "భ")
173 ("b" (delete @-) "మ")
174 ("n" (delete @-) "య")
175 ("k" (delete @-) "ర")
176 ("a" (delete @-) "ల")
177 ("f" (delete @-) "వ")
178 ("F" (delete @-) "శ")
179 ("\"" (delete @-) "ష")
180 ("'" (delete @-) "స")
181 ("B" (delete @-) "హ")
182 ("A" (delete @-) "ళ")
183 ("K" (delete @-) "ఱ")
184 ("Y" (delete @-) "క్ష")
185 ("U" (delete @-) "శ్రీ")
188 ;; halant occuring after a dependent vowel
190 ("h" (delete @-) "్" )
191 ("H" (delete @-) "్" )
204 ((BackSpace) (undo)))
208 (init (consonants (shift first))
212 (a_matra (shift second_a))
213 (dependent_vowels (set current_vowel @-) (shift second_b))
214 (halant (shift third_a))
219 (halant (shift third_a))
222 ;;state when consonant+dependent vowel occurs
224 ;;move the dependent vowel to the end and add halant to the base consonant
225 (halant_after_vowel (insert current_vowel) (shift fourth))
226 (consonants (set current_vowel 0) (shift first))
229 ;;consonant when followed by halant
231 (consonants (shift third_b))
234 ;;state when cosonant+halant+consonant occurs
235 ;;further composition of halant+consonant is achieved with third_a and third_b states
236 ;;this is required as dependent and independent vowels have same keys and have to be
237 ;;identified by the context
239 (halant (shift third_a))
240 (consonants (shift first))
244 ;;delete the dependent vowel and add at the end after the consonant
245 (halant_consonants (insert current_vowel) (shift second_b))