My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
HowToCreateATableForIBusTable  
How to Create a table for ibus-table
Phase-Implementation
Updated Yesterday (22 hours ago) by byvo...@gmail.com

Steps

  1. Assume the DATADIR is /usr/share
  2. Copy ${DATADIR}/ibus-table/tables/template.txt for the template to begin with. Assume it is your-im-table.txt
  3. Make an icon for your im, assume it is your-im-table.svg.
  4. Edit the your-im-table.txt to suit your need.
  5. Fill the actual table content between BEGIN_TABlE and END_TABlE.
    1. The 1st field is "Input Key": the key sequence to produce the word/phrase
    2. The 2nd field is "Phrase": Word/phrase to be produced.
    3. The 3rd field is "Frequency": The usage frequency of that phrase. Phrases with more frequency will be in front of candidate list.
  6. Install ibus-table if you have not.
  7. Run
  8. ibus-table-create -n ${DATADIR}/your-im-table.db -s your-im.table.txt
    cp your-im-table.svg ${DATADIR}/ibus-table/icons
  9. Restart ibus-daemon.
  10. Enjoy your input method. :-)

For input method developers

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.

For packagers

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.

Comment by Chin.Cha...@gmail.com, Oct 30, 2009

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' ?

Comment by Chin.Cha...@gmail.com, Oct 30, 2009

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...

Comment by romkenij...@gmail.com, Feb 12, 2010

At ubuntu 9.10 karmic koala i needed to use ibus-table-createdb instead of ibus-table-create.

Comment by a20365354@gmail.com, Sep 2, 2011

This page is outdated. This page is not helpful for me to create a table. I haven't figured it out... yet. :(

Comment by CntRatio...@gmail.com, Sep 4, 2011

ibus-table-createdb -h

Use that.


Sign in to add a comment
Powered by Google Project Hosting