IBus (Intelligent Input Bus) is an open source input framework for Linux and Unix.
Except for the basic IBus framework, one or more engines should be installed. For example:
emerge --ask ibus ibus-pinyin
Have a look at the eix output for more available engines:
eix -c ibus -I app-i18n
For graphical toolkit integration, app-i18n/ibus offers gtk (this refers to gtk+:2) and gtk3 useflags, and there is a separate app-i18n/ibus-qt package for Qt (including KDE) as well. Don't forget to install this latest package if you are a KDE/QT user
You can use app-i18n/im-chooser for selecting your preferred input method. As for now all im-chooser packages are marked unstable, though.
If nothing starts (no ibus daemon) when you log in, you can use put this in your .xprofile file:
export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus ibus-daemon -drx
You can finely tune the installation by running