

Pāli Input Method on Ubuntu Linux
source link: http://siongui.github.io/2012/05/23/pali-input-method-on-ubuntu-linux/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Pāli Input Method on Ubuntu Linux
May 23, 2012
The blog post [1] discusses how to create an input method for romanized Pāli, but it doesn't give references for tweaking the mim file, i.e., tweaking the input method. Also, the blog post [1] seems to come from the thread [2].
The blog post is good, but I need another feature that when I type the key combination "alt + a", ā will show up. The same for other vowels. After some investigation, removing Sanskrit part, and making necessary modifications, the following is my mim file (tested on Ubuntu 12.04).
pali-translit.mim | repository | view raw
;; pali-translit.mim ;; ;; Input method for Pali transliteration using the ITRANS scheme. (input-method t pali-translit) (title "pali-translit") (map (trans ("aa" "ā") ((A-a) "ā") ("AA" "Ā") ((A-A) "Ā") ("ii" "ī") ((A-i) "ī") ("II" "Ī") ((A-I) "Ī") ("uu" "ū") ((A-u) "ū") ("UU" "Ū") ((A-U) "Ū") (".l" "ḷ") (".L" "Ḷ") (".M" "ṁ") (".m" "ṃ") (";n" "ṅ") (";N" "Ṅ") ("~n" "ñ") ("~N" "Ñ") (".t" "ṭ") (".T" "Ṭ") (".d" "ḍ") (".D" "Ḍ") (".n" "ṇ") (".N" "Ṇ") )) (state (init (trans)))
References:
[3]Data format of the m17n database
[4]ITRANS
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK