How to use fcitx/iBus to input Romanized Pali and Sanskrit in Ubuntu

Updated on May 6, 2014 for Ubuntu 14.04

If you use fcitx input, you can install fcitx-m17n

sudo apt-get install fcitx-m17n

Open fcitx Configuration, under "addon," choose "Enable deprecated input method."

Choose IAST (m17n) Sanskrit keyboard under fcitx configuration.

For iBus, following these steps:

Step 1. Install iBus-m17n

sudo apt-get install iBus-m17n

Step 2: Open "iBus References" and add input "Sanskrit IAST (m17n)"

Use Sanskrit IAST:

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 = Ṣ

If you have any problems in Libreoffice, you may use different methods:
http://thanhsiang.org/faqing/node/174

=============OLD Post 2010===============
Step 1. Install iBus-m17n

sudo apt-get install iBus-m17n

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: Restart iBus and set IBus Preferences (System->Preferences->Keyboard Input Methods). Your new transliteration input method (t-sa-translit) should be available under the "Other" category.

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 Devanagari Input:

In iBus, under Hindi input, choose itrans
In Fictx, select Hindi itrans.

For other method, see:
http://thanhsiang.org/faqing/node/147

The '.t' diacritic

Hello!

Great work. Thank you for sharing!

I have one problem though. The '.t' diacritic always shows up under the letter before the 't'. Is there a workaround?

Thanks!

Sanskrit IAST (m17n)works

Sanskrit IAST (m17n)works without problem for me. It also works great in Ubuntu 12.04.

I see. I've played with it a

I see. I've played with it a bit and I've noticed it's only in LibreOffice. In other input windows it looks fine.

I'm on Linux Mint 14, using LibreOffice 4.0.

I think, it is the problem of

I think, it is the problem of your iBus setting. Go to IBus Preferences, under "Advanced", un-select "Share the same input method among all applications."

I've tried selected and

I've tried selected and un-selected and they are still misaligned. Some of other letter's diacritics are a bit misaligned also but no as much as .t. Maybe it has something to do with the combination of IBus with LibreOffice 4.0.

Any way, thanks for the suggestion!

Anan

Hi,
I have installed everything as for your instructions and could type in Devanagari in open office in Ubuntu 10.1
however i could not type in Kile, when i type it shows the devanagari letters and as soon as I press space bar to type next work previous word gets erased.
its really frustrating to do that, for now the work around is that I type in office and later paste it in kile.
I would appreciate your help

Thank
-A

For Ubuntu 10.4 or 10.10, you

For Ubuntu 10.4 or 10.10, you can use iBus, see here:
http://thanhsiang.org/faqing/node/139

Can't find 'sa-translit.mim' file

Hi, thank you so much for this!

I use Debian Lenny. I downloaded and installed 'scim-m17n' but unfortunately, for some reason, in my '/usr/share/m17n' directory there's no such file as: 'sa-translit.mim'. So I still can't type in Pali.

Does anyone know how I could solve this problem?

Thank you very much!

Zac.

You need to create the file.

You need to create the file.

created the file, but still can't type in pali

Hello there! It's been a while since my last post. I'd given up typing in Pali, but now I'm back again.

Sorry, friend, only now did I get the idea! I have to create the file! I'd never done that before. Thanks for that!

However, when I pasted the content of the new file in the terminal, some characters (all characters containing a dot) didn't appear. They appeared only as those little "squares" (unrecognized characters). I suppose that's ok, though. It's probably happening only at the terminal.

Step 3 ["Your new transliteration input method (t-sa-translit) should be available under the "Other" category"] is also fine here.

Anyway, I still can't type in Pali, unfortunately. Can anyone help me try to understand what it is that I'm missing, please?

I'm running Debian Lenny.

Thank you so much!
Zac.

Use openoffice to type Pali

See here;
thanhsiang.org/faqing/node/147

It works!!

Hi there!
It finally works. I followed the instructions at the link you provided me above, and that was it.
Works like a charm!
Thank VERY VERY much for your help!
Zac.