Input Farsi / Persian on Latin keyboard

Asked by Dennis Schridde on 2012-11-07

I have a computer with a german keyboard (i.e. latin characters) and want to input Persian/Farsi characters. Since I do not know the Farsi keyboard layout very well, I would like to use an input method, that is able to transliterate latin phonetics to Farsi characters. I imagine pressing a magic key combination to switch into a compose-mode, and then typing something like "sh" to get "ش", or "p" to get "‏پ".

Is that possible with Ubuntu?

I tried to add Persian language support to Ubuntu (KDE Systemsettings / Regional Support / Language), but cannot figure out how to add an input method of the sort I described (I only find keyboard settings for the layout - which is not what I want to change).

Since I read on Wikipedia about IBus (and it being the default foreign input method in Ubuntu since a while), I tried to "apt-get install ibus ibus-qt4 ibus-m17n", and configured it according to [1] (using "Persian / Isiri - m17n" as the input method in ibus-setup). This allowed me to switch into Farsi mode using Ctrl+Space, but when I type, it just seems to have changed the keyboard layout to Farsi - I cannot combose the Farsi characters using a transliteration method as described above. I assume I am using the wrong IBus engine...?

[1] http://greenmang0.wordpress.com/2010/10/15/ibus-now-write-in-your-mother-tongue-%E0%A4%AE%E0%A4%BE%E0%A4%A4%E0%A5%83%E0%A4%AD%E0%A4%BE%E0%A4%B7%E0%A5%87%E0%A4%A4-%E0%A4%B2%E0%A4%BF%E0%A4%B9%E0%A4%BE/

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubuntu-meta Edit question
Assignee:
No assignee Edit question
Solved by:
Dennis Schridde
Solved:
2012-11-07
Last query:
2012-11-07
Last reply:
2012-11-07

You can use a keyboard indicator to switch easily

Dennis Schridde (devurandom) said : #2

The keyboard indicator (I assume you mean the systray icon enabled by KDE Systemsettings / Input Devices / Keyboard / Layout) only allows to switch keyboard layouts. I do not want to switch the layout entirely to a regular Arabic keyboard layout, because I do not know it and have only latin (german) letters printed on my keyboard.

---

I found a page explaining how to do this for Arabic (using the Buckwalter keyboard layout) [1] - is there anything similar for Persian?

[1] http://askubuntu.com/questions/46679/is-there-an-anglicized-transliteration-ime-for-typing-arabic

Dennis Schridde (devurandom) said : #3

P.S: Buckwalter is also a bit weird. Most awesome would probably be something were punctuation characters would go untranslated, instead of having their positions changed to the positions on the arabic keyboard. Further, the Qalam romanisation / transliteration seems most appealing to me.

Please also note, that I am searching for a transliteration input method and not for transcription as I mistakenly wrote earlier.

Dennis Schridde (devurandom) said : #4

I created a transliteration input method for m17n to solve my problem: https://savannah.nongnu.org/bugs/?37687

Dennis Schridde (devurandom) said : #5

Maybe even more interesting: My conversion of abovementioned m17n map to an IBus-Table (with a few improvements): http://code.google.com/p/ibus/issues/detail?id=1544