From ArchWiki
Revision as of 01:50, 23 February 2010 by Pointone (talk | contribs) (rm "gcin" from headings; implied; consistency; use i18n template)
Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Gcin#)


Gcin is a new generation of Chinese input method server developed by Edward Liu. Gcin supports various input methods and works under most Unix-like operating systems. It's one of the most popular Chinese input engine in Taiwan.


pacman -S gcin

Installing Other Input Tables



Steps for XFCE with SLiM

Add the following lines to ~/.xinitrc before executing your XFCE. If you want all the users of your system to use gcin, place these lines in your /etc/profile.

export XMODIFIERS=@im=gcin
export LC_CTYPE=zh_TW.UTF-8

This is what your .xinitrc file should look like. Note that the "exec startxfce4" line comes after the lines for GCIN


# ~/.xinitrc
# Executed by startx (run your window manager from here)

export XMODIFIERS=@im=gcin
export LC_CTYPE=zh_TW.UTF-8

exec startxfce4


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

1.Set environment locale to use UTF-8, for example:

export LC_CTYPE=en_US.UTF-8

(You must set the LC_CTYPE locale even if it's as same as LANG, otherewise gcin may not be activated in non-gtk2 programs that use x input)


export XMODIFIERS=@im=gcin

gcin use the name "gcin" 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=gcin_zh
export XMODIFIERS=@im=gcin_zh

Remember that gtk2 applications start one instance of gcin automatically if it doesn't exist.

3.Start gcin:

gcin &

4.Run your applications! (If gcin is killed when your applications are running, it's likely to cause crash or other problems.)

Additional notes for wine/crossover office

1.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.

2.In wine+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.