How to install the input methods in the ibus?

300 views
Skip to first unread message

dave wong

unread,
Oct 31, 2012, 2:25:42 PM10/31/12
to ibus-user
Hi there,

I'm using Slackware and ibus is definitely new to me.

I've installed ibus, ibus-table. But I've found the input method in
the preference is empty. Then I want to install ibus-table-chinese.I
did the 'tar' and can't find a ./configure in the tar.gz. What can
I do now?

Ma Xiaojun

unread,
Oct 31, 2012, 2:38:54 PM10/31/12
to ibus...@googlegroups.com
On 10/31/12 1:25 PM, dave wong wrote:
> I've installed ibus, ibus-table. But I've found the input method in
> the preference is empty. Then I want to install ibus-table-chinese.I
> did the 'tar' and can't find a ./configure in the tar.gz. What can
> I do now?

It should be using CMake with some Fedora crap.

I recommend you to install table(s) you want manually.

ibus-table-createdb -s your-im-table.txt
cp your-im-table.db /usr/share/ibus-table/tables/
# Check your-im-table.txt to see which icon it is using
cp your-im-icon /usr/share/ibus-table/icons/


dave wong

unread,
Oct 31, 2012, 8:00:09 PM10/31/12
to ibus-user
Hi there,

Thanks for your reply.

I've got error message when tried to make the db as follows:

» ibus-table-createdb -s cangjie3.txt
Traceback (most recent call last):
File "/usr/local/share/ibus-table/engine/tabcreatedb.py", line 329,
in <module>
main ()
File "/usr/local/share/ibus-table/engine/tabcreatedb.py", line 262,
in main
db.add_phrases ( phrases )
File "/usr/local/share/ibus-table/engine/tabsqlitedb.py", line 429,
in add_phrases
map (self.add_phrase, phrases, [database]*len(phrases),
[False]*len(phrases) )
File "/usr/local/share/ibus-table/engine/tabsqlitedb.py", line 495,
in add_phrase
phrase))
File "/usr/lib64/python2.7/re.py", line 177, in findall
return _compile(pattern, flags).findall(string)
File "/usr/lib64/python2.7/re.py", line 242, in _compile
raise error, v # invalid expression
sre_constants.error: bad character range

Any idea what's wrong?

Thanks.

dave wong

unread,
Oct 31, 2012, 8:26:10 PM10/31/12
to ibus-user
Oh...btw, I see 2 db (quick3.db, cantonese.db) in /usr../tables/
locations already, I suppose they are default inputs, right? But I
don't see these 2 input methods in my preferences!!!

Ma Xiaojun

unread,
Oct 31, 2012, 8:41:10 PM10/31/12
to ibus...@googlegroups.com
Wait a minute, how did you install IBus and ibus-table?

IBus and IBus engines like ibus-table are not supposed to be work well
with non /usr prefix.
There is an issue already:
http://code.google.com/p/ibus/issues/detail?id=1513

dave wong

unread,
Oct 31, 2012, 9:29:56 PM10/31/12
to ibus-user
Since I am running Slackware, I installed ibus(1.3.9) from
SlackBuild:
http://slackbuilds.org/repository/14.0/misc/ibus/

Then I downloaded ibus-table and ibus-table-chinese from here!

My machine is running Slackware 14 x86_64 version with linux kernel
3.6.3. I am not sure what you meant "non /usr prefix" though.

So my machine is not able to use ibus?

Ma Xiaojun

unread,
Oct 31, 2012, 9:58:12 PM10/31/12
to ibus...@googlegroups.com
On 10/31/12 8:29 PM, dave wong wrote:
> Since I am running Slackware, I installed ibus(1.3.9) from
> SlackBuild:
> http://slackbuilds.org/repository/14.0/misc/ibus/

That's a bit old.
Current stable release is 1.4.2 while active development is towards 1.4.99.

> Then I downloaded ibus-table and ibus-table-chinese from here!

"here" is http://code.google.com/p/ibus/downloads/list right?

> My machine is running Slackware 14 x86_64 version with linux kernel
> 3.6.3. I am not sure what you meant "non /usr prefix" though.

"non /usr prefix" means prefix that is not /usr .
You should do the following when compiling ibus-table:
./autogen.sh --prefix=/usr
make
make install

If you do not specify prefix, the default one is /usr/local, which is
"non /usr prefix".

dave wong

unread,
Oct 31, 2012, 10:29:04 PM10/31/12
to ibus-user
Thanks. Now I can see the selection in my preference. But when I try
to type in Chinese, the popup window is empty and no chinese words I
can choose from.
I tried to rebuild the cangjie.db again, I've got the similar error
messages:

root@# ibus-table-createdb -s cangjie3.txt
Traceback (most recent call last):
  File "/usr/share/ibus-table/engine/tabcreatedb.py", line 329, in
<module>
    main ()
  File "/usr/share/ibus-table/engine/tabcreatedb.py", line 262, in
main
    db.add_phrases ( phrases )
  File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 429, in
add_phrases
    map (self.add_phrase, phrases, [database]*len(phrases),
[False]*len(phrases) )
  File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 495, in
add_phrase
    phrase))
  File "/usr/lib64/python2.7/re.py", line 177, in findall
    return _compile(pattern, flags).findall(string)
  File "/usr/lib64/python2.7/re.py", line 242, in _compile
    raise error, v # invalid expression
sre_constants.error: bad character range

The db has only 72K in size.

Is there any cangjie3.db I can download so I don't have to build
myself?

Thanks dude.

Ma Xiaojun

unread,
Nov 1, 2012, 4:11:49 AM11/1/12
to ibus...@googlegroups.com
On 10/31/12 9:29 PM, dave wong wrote:
> I tried to rebuild the cangjie.db again, I've got the similar error
> messages:
>
> root@# ibus-table-createdb -s cangjie3.txt
> Traceback (most recent call last):
> File "/usr/share/ibus-table/engine/tabcreatedb.py", line 329, in
> <module>
> main ()
> File "/usr/share/ibus-table/engine/tabcreatedb.py", line 262, in
> main
> db.add_phrases ( phrases )
> File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 429, in
> add_phrases
> map (self.add_phrase, phrases, [database]*len(phrases),
> [False]*len(phrases) )
> File "/usr/share/ibus-table/engine/tabsqlitedb.py", line 495, in
> add_phrase
> phrase))
> File "/usr/lib64/python2.7/re.py", line 177, in findall
> return _compile(pattern, flags).findall(string)
> File "/usr/lib64/python2.7/re.py", line 242, in _compile
> raise error, v # invalid expression
> sre_constants.error: bad character range

It sounds like I need to study this issue further.
What source version you are using?

> The db has only 72K in size.
>
> Is there any cangjie3.db I can download so I don't have to build
> myself?

I think you can find some DEB or RPM, extract them, cp the db files out
and drop other craps.

dave wong

unread,
Nov 1, 2012, 1:13:19 PM11/1/12
to ibus-user
Alright. Thank dude.

The source was downloaded from your webpage and it was ibus-table-
chinese-1.4.0.20121008-Source.tar.gz!

Ma Xiaojun

unread,
Nov 25, 2012, 2:51:33 PM11/25/12
to ibus...@googlegroups.com
On Sun, Nov 25, 2012 at 6:11 AM, VRan Liu <gli...@gmail.com> wrote:
> I compile and install ibus-table with commands:
>
> ./autogen.sh --prefix=/usr
> make
> sudo make install
>
> and copy wubi.db to /usr/share/ibus-table/tables/,
> but I still can't see wubi input method in ibus-setup.
> where is the problem? It's only can be install from official deb?

You need to restart your IBus by 'ibus-daemon -drx', we know this issue already.
http://code.google.com/p/ibus/issues/detail?id=1514

And you better copy corresponding icon to /usr/share/ibus-table/icons also.

VRan

unread,
Nov 25, 2012, 9:02:18 PM11/25/12
to ibus...@googlegroups.com
sorry, I already do that, it's not work


Rgd,
VRan



--
You received this message because you are subscribed to the Google
Groups "ibus-user" group.
iBus project web page: http://code.google.com/p/ibus/
iBus project group: http://groups.google.com/group/ibus-user?hl=en

Reply all
Reply to author
Forward
0 new messages