Steps
- Assume the DATADIR is /usr/share
- Copy ${DATADIR}/ibus-table/tables/template.txt for the template to begin with. Assume it is your-im-table.txt
- Make an icon for your im, assume it is your-im-table.svg.
- Edit the your-im-table.txt to suit your need.
- Fill the actual table content between BEGIN_TABlE and END_TABlE.
- The 1st field is "Input Key": the key sequence to produce the word/phrase
- The 2nd field is "Phrase": Word/phrase to be produced.
- The 3rd field is "Frequency": The usage frequency of that phrase. Phrases with more frequency will be in front of candidate list.
- Install ibus-table if you have not.
- Run
ibus-table-createdb -n ${DATADIR}/ibus-table/tables/your-im-table.db -s your-im.table.txt
cp your-im-table.svg ${DATADIR}/ibus-table/icons/- Restart ibus-daemon by
ibus-daemon -drx
- Enjoy your input method. :-)
Should 'ibus-table-create -n ${DATADIR}/your-im-table.db -s your-im.table.txt' be 'ibus-table-create -n ${DATADIR}/ibus-table/tables/your-im-table.db -s your-im.table.txt' ?
In addition, 'ibus-table-create -n ${DATADIR}/ibus-table/tables/your-im-table.db -s your-im.table.txt' should be 'ibus-table-create -n ${DATADIR}/ibus-table/tables/your-im-table.db -s your-im-table.txt' ?
Let's spot the difference...
At ubuntu 9.10 karmic koala i needed to use ibus-table-createdb instead of ibus-table-create.
This page is outdated. This page is not helpful for me to create a table. I haven't figured it out... yet. :(
ibus-table-createdb -h
Use that.
Here is how I got boshiamy (嘸蝦米) working: 在 Fedora 17 上安裝 ibus-table 的嘸蝦米輸入法 Thanks to Yu Yuwei and the ibus + ibus-table teams for the great work!
Leaving this here mostly in case I need it again myself at some point in the future: To use a custom layout instead of the default us layout, specify "LAYOUT = xkb layout code", so e.g. "LAYOUT = se" for Swedish. A layout variant is specified using parentheses, e.g. "LAYOUT = se(dvorak)" for Swedish dvorak.
I'm using fedora 20 with ibus 1.5.7 + ibus-table 1.8.2 and boshiamy.txt from http://newtoypia.blogspot.tw/2012/07/ibus-table-boshiamy.html
But it failed to input. The .ibus/tables/debug.log shows: Connect to the database /home/cwhuang/.ibus/tables/boshiamy-user.db. Traceback (most recent call last):
sqlite3.OperationalError?: no such column: tabkeysWhat's the problem is? Please help. Thanks!
@beh…
Hi, thank you for the tip, it works also for French Bépo layout with < fr(bepo) >.