Updated on Nov. 5, 2008. It works with Ubuntu 8.10
Step 1. Install scim-m17n
sudo aptitude install scim-m17n m17n-lib-bin
Step 2: create a new input method file for Transliteration
sudo gedit /usr/share/m17n/sa-translit.mim
The following is the complete content of the file which can be easily copied and pasted and tweaked according to your taste. Save it, before closing the file:
;;; <li> sa-translit.mim
;;;
;;; Input method for Sanskrit transliteration using the ITRANS scheme.
(input-method t sa-translit)
(title "sa-translit")
(map
(trans
("aa" "ā")
("AA" "Ā")
("ii" "ī")
("II" "Ī")
("uu" "ū")
("UU" "Ū")
(".r" "ṛ")
(".R" "Ṛ")
(".rr" "ṝ")
(".RR" "Ṝ")
(".l" "ḷ")
(".L" "Ḷ")
(".ll" "ḹ")
(".LL" "Ḹ")
(".M" "ṁ")
(".m" "ṃ")
(".h" "ḥ")
(".H" "Ḥ")
(";n" "ṅ")
(";N" "Ṅ")
("~n" "ñ")
("~N" "Ñ")
(".t" "ṭ")
(".T" "Ṭ")
(".d" "ḍ")
(".D" "Ḍ")
(".n" "ṇ")
(".N" "Ṇ")
(";s" "ś")
(";S" "Ś")
(".s" "ṣ")
(".S" "Ṣ")
))
(state
(init
(trans)))
Step 3: Enter the name of our new input file in the m17n database file.
Logout your desktop and re-login. Your new transliteration input method (t-sa-translit) should be available under the "Other" category.
Modified from amerikkanu's post "Sanskrit input (Devanagari and transliteration)", for detail visit:
http://ubuntuforums.org/showthread.php?t=646207
ITRANS Method
aa = ā
AA = Ā
ii = ī
II = Ī
uu = ū
UU = Ū
.r = ṛ
.R = Ṛ
.rr = ṝ
.RR = Ṝ
.l = ḷ
.L = Ḷ
.ll = ḹ
.LL = Ḹ
.M = ṁ
.m = ṃ
.h = ḥ
.H = Ḥ
;n = ṅ
;N = Ṅ
~n = ñ
~N = Ñ
.t = ṭ
.T = Ṭ
.d = ḍ
.D = Ḍ
.n = ṇ
.N = Ṇ
;s = ś
;S = Ś
.s = ṣ
.S = Ṣ
For other method, see: http://thanhsiang.org/faqing/node/24