Use GCIN and gnome-shell on Gentoo

Despite the common usage of input method is iBus, GCIN is still my favorite one for Chinese. But with the upgrading of GNOME 3 (gtk3) and in Gentoo, there are notes should be wrote down.

1. The GCIN package is not provided officially by Gentoo’s portage tree. But with hard works of gentoo communities in gentoo-zh (from gentoo-taiwan and gentoo-china), we can use GCIN via layman:

# layman -L
# layman -a gentoo-zh

2. Add gtk3 use flag for GCIN in /etc/portage/package.use:
# echo 'app-i18n/gcin gtk3' > /etc/portage/package.use
3. Some note to make GCIN works is listing in Linux/X window gcin 無法使用的檢查事項.For example:
a) My own configuration for environment variable declare is in ~/.xprofile:

export GTK_IM_MODULE=gcin
export QT_IM_MODULE=gcin
export XMODIFIERS=@im=gcin

b) To install GCIN’s module in gtk2/3 on x86 (i686) Gentoo OS:

# gtk-query-immodules-2.0 > /etc/gtk-2.0/i686-pc-linux-gnu/gtk.immodules
# gtk-query-immodules-3.0 --update-cache

[20120209 edit]
The latest version since 2.7.1 disable the En input method (IM) for switching by default. And for my newly installed gentoo box, I cannot switch IM if the default method is set as En.

It is not convenient when I set other IMs as default, because I need to change to En by pressing an additional shift key or ctrl-space hotkey.

Help from GCIN forum by coolcd, the solution is to close the default attribute after IM launch. The setting is to un-check the box in gcin-tools for:

Default input method and toggle key > Toggle on input mode by default (non-XIM only)

After restart GCIN, the IM mode by default is En that like most IME done.

Enjoy it. 🙂

2 Replies to “Use GCIN and gnome-shell on Gentoo”

  1. As a:

    – lover of Gentoo (been playing with Gentoo on / off for a long, long time, though I currently use Debian)
    – Chinese (a student of Chinese for 16 years, primarily Mandarin, studied in both traditional and simplified, but with some Cantonese a long time ago and some amazing experiences with ancient Chinese recently),
    – Gnome 3 (and GCIN, dear god is GCIN good)

    Thanks for posting info like this – we need more good information about implementing Chinese language support in Linux, because GCIN can be really, really powerful (and Windows 7 Pro doesn’t support any Chinese IME by default). I had a hard drive failure last week and have had to replace everything, including my Chinese / English integrated Debian environment, in which I did all my Ancient Chinese and modern Chinese homework.

    This post would have Chinese if I could get Gnome 3 to integrate with GCIN. Soon. Soon.

    Bookmarking your blog.

Leave a Reply

Your email address will not be published. Required fields are marked *