How to add a custom keyboard layout to IBus / m17n on Linux

Asked by Peter Brum

Using various suggestions and advice found on fora related to the topic, I designed my own custom layout for IBus / m17n on Linux Mint 18, which is a *.mim file. The keyboard is designed for Sanskrit and other Asian languages, and the file begins with "sa-", as all standard files which Sanskrit, but the file and keyboard have their unique names (starting with "sa-" though).
My question now is how can I add this keyboard to the system / IBus.
I copied to file to the directory /usr/share/m17n. But the keyboard and the language is invisible to IBus.
How should I proceed? What else should I do so that I can see the keyboard in lanuguage IBUS PREFERENCES engine?
I have spent a couple of days reading different fora on the subject, but can’t find an answer.
Any help?
I would greatly appreciate a step-by-step advice. I’m new to Linux, so any advice will be greatly appreciated: what else should I do beside copying the new keyboard to the respective directory? Any other step?
I’m posting this query here because my problem does not concern exclusive the system, Ubuntu, but rather details of an application which runs in different platforms of Linux, INCLUDING Ubuntu and etc.(e.g. Mint). Even though I personally use Mint 18.3, both my query and the reply can be useful both to Ubuntu users and others. I tried to get the answer at the respective Mint forum, but there's no response. My problem is not necessarily about particular commands (these may differ in Ubuntu and Mint) about about a general sequence of steps required to run such a new custom keybord in IBus.
Thank you

Question information

English Edit question
Ubuntu ibus-m17n Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

This website is for and about official Canonical issues of Ubuntu.

Linux Mint is totally off-topic here,

You should go to

Can you help with this problem?

Provide an answer of your own, or ask Peter Brum for more information if necessary.

To post a message you must log in.