My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
HowToCreateATableForIBusTable  
How to Create a table for ibus-table
Phase-Deploy, Featured
Updated Jul 1, 2014 by maiku.fa...@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-createdb -n ${DATADIR}/ibus-table/tables/your-im-table.db -s your-im.table.txt
    cp your-im-table.svg ${DATADIR}/ibus-table/icons/
  9. Restart ibus-daemon by
  10. ibus-daemon -drx
  11. Enjoy your input method. :-)
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.

Comment by chaokuei...@gmail.com, Jul 28, 2012

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!

Comment by beh...@behold.se, Jun 16, 2014

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.

Comment by cwhuang@android-x86.org, Jun 19, 2014

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):

File "/usr/share/ibus-table/engine/table.py", line 1773, in do_process_key_event
result = self.process_key_event (key)
File "/usr/share/ibus-table/engine/table.py", line 1795, in process_key_event
return self.table_mode_process_key_event (key)
File "/usr/share/ibus-table/engine/table.py", line 2096, in table_mode_process_key_event
res = self.editor.add_input(keychar)
File "/usr/share/ibus-table/engine/table.py", line 412, in add_input
res = self.update_candidates()
File "/usr/share/ibus-table/engine/table.py", line 745, in update_candidates
auto_wildcard=self.auto_wildcard)
File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 745, in select_words
unfiltered_results = self.db.execute(sqlstr, sqlargs).fetchall()
sqlite3.OperationalError?: no such column: tabkeys

What's the problem is? Please help. Thanks!

Comment by rivi...@gmail.com, Jun 22, 2014

@beh…

Hi, thank you for the tip, it works also for French Bépo layout with < fr(bepo) >.


Sign in to add a comment
Powered by Google Project Hosting