pacman -S gcin
Installing Other Input Tables
With GNOME/GTK+ 2 applications:
gcin provides a gtk input module, thus all gtk2-based applications are directly supported, there is no need to configure anything after installation (it's not XIM, and gcin is automatically started when needed).
With other applications: (tested with KDE/Qt 3 and Java/Swing)
1.Set environment locale to use UTF-8, for example:
(the LC_CTYPE locale for gcin and for the applications must match; if LC_CTYPE is not set, LANG is used)
gcin use the name "xcin" by default, and you can change this by the environment variable GCIN_XIM in order to run multiple gcin instances, for example:
export GCIN_XIM=xcin_zh export XMODIFIERS=@im=xcin_zh
Remember that gtk2 applications start one instance of gcin automatically if it doesn't exist.
4.Run your applications!
1.If gcin is killed when your applications are running, it's likely to cause crash or other problems. (this doesn't affect any gtk2 programs)
2.Some older versions of gcin require you to use the locale "zh_TW" for non-gtk2 applications. (fixed since at least gcin 1.1.6)
3.If you run wine or crossover office, it's better to use windows 2000 emulation instead of windows 98, and you have to start gcin and wine/cxoffice with at least LC_CTYPE=zh_TW.utf8, otherwise wine wouldn't be able to show chinese correctly. Also, in IE6 with windows 98 emulation, LC_CTYPE isn't enough if you want to input chinese on the web-pages - you have to set either LANG or LC_ALL to zh_TW.utf8, which slows down wine a lot (however you can always type chinese in the location bar or other places and paste it).