forked from phuang/ibus
-
Notifications
You must be signed in to change notification settings - Fork 208
HowToCreateATableForIBusTable
abiiget7 edited this page May 13, 2025
·
5 revisions
How to Create a table for ibus-table
Phase-Deploy, Featured
- Assume the
DATADIRis/usr/share. - Copy
${DATADIR}/ibus-table/tables/template.txtfor the template to begin with. Assume it isyour-im-table.txt. - Make an icon for your im, assume it is
your-im-table.svg. - Edit the
your-im-table.txtto suit your need. - Fill the actual table content between
BEGIN_TABlEandEND_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-tableif 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/ ```</pre> - Restart
ibus-daemonbyibus-daemon -drx ```</pre> - Open
ibus-setup, add your newly created input method then enjoy!
It is recommended to split database building and index creating, as it makes distro packagers' life easier.
Use -o option of ibus-table-create to build database without creating index;
use -i option of ibus-table-create to create index without building database.
Install the database file which is built by ibus-table-create -o,
and create index with ibus-table-create -i in your post-install script script.