New file.
[m17n/m17n-contrib.git] / im / sa-iast.mim
1 ;; sa-iast.mim -- Input method for Romanized Sanskrit/Pali using the ITRANS/ISO 15919 scheme.
2 ;; Copyright (C) 2011  William Giddings <wjgiddings@googlemail.com>
3
4 ;; This file is part of the m17n contrib; a sub-part of the m17n
5 ;; library.
6
7 ;; The m17n library is free software; you can redistribute it and/or
8 ;; modify it under the terms of the GNU Lesser General Public License
9 ;; as published by the Free Software Foundation; either version 2.1 of
10 ;; the License, or (at your option) any later version.
11
12 ;; The m17n library is distributed in the hope that it will be useful,
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 ;; Lesser General Public License for more details.
16
17 ;; You should have received a copy of the GNU Lesser General Public
18 ;; License along with the m17n library; if not, write to the Free
19 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 ;; Boston, MA 02110-1301, USA.
21
22 (input-method sa IAST )
23
24 (description "Romanized Sanskrit input method with IAST/ISO 15919 convention.
25 The table is based on 
26   <http://en.wikipedia.org/wiki/International_Alphabet_of_Sanskrit_Transliteration>
27 ")
28
29 (title "ISO 15919")
30
31 (map
32  (trans
33   ("aa" "ā")
34   ("AA" "Ā")
35   ("^a" "â")
36   ("^A" "Â")
37   ("ii" "ī")
38   ("II" "Ī")
39   ("uu" "ū")
40   ("UU" "Ū")
41   (".r" "ṛ")
42   (".R" "Ṛ")
43   (".rr" "ṝ")
44   (".RR" "Ṝ")
45   (".l" "ḷ")
46   (".L" "Ḷ")
47   (".ll" "ḹ")
48   (".LL" "Ḹ")
49   (".M" "Ṃ")
50   (".m" "ṃ")
51   (".h" "ḥ")
52   (".H" "Ḥ")
53   (";n" "ṅ")
54   (";N" "Ṅ")
55   ("~n" "ñ")
56   ("~N" "Ñ")
57   (".t" "ṭ")
58   (".T" "Ṭ")
59   (".d" "ḍ")
60   (".D" "Ḍ")
61   (".n" "ṇ")
62   (".N" "Ṇ")
63   (";s" "ś")
64   (";S" "Ś")
65   (".s" "ṣ")
66   (".S" "Ṣ")
67   ("ee" "ē")
68   ("oo" "ō")
69   (";m" "ṁ")
70   (",r" "r̥")
71   (",rr" "r̥̄")
72   ))
73
74 (state
75  (init
76   (trans)))