https://wiki.archlinux.org/api.php?action=feedcontributions&user=Fujia&feedformat=atomArchWiki - User contributions [en]2024-03-28T11:14:33ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Gcin&diff=65822Gcin2009-03-27T15:53:33Z<p>Fujia: /* About GCIN */</p>
<hr />
<div>[[Category:Internationalization (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Gcin}}<br />
{{i18n_entry|繁體中文|GCIN (繁體中文)}}<br />
{{i18n_links_end}}<br />
<br />
{{stub}}<br />
<br />
= About GCIN =<br />
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.<br />
<br />
= Installing GCIN =<br />
pacman -S gcin<br />
<br />
=== Installing Other Input Tables ===<br />
MISSING<br />
<br />
= Configure GCIN =<br />
== Steps for XFCE with SLiM ==<br />
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.<br />
<br />
export XMODIFIERS=@im=gcin<br />
export LC_CTYPE=zh_TW.UTF-8<br />
gcin&<br />
<br />
This is what your .xinitrc file should look like. Note that the "exec startxfce4" line comes '''after''' the lines for GCIN <br />
<br />
#!/bin/sh<br />
<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
#<br />
<br />
#GCIN<br />
export XMODIFIERS=@im=gcin<br />
export LC_CTYPE=zh_TW.UTF-8<br />
gcin&<br />
<br />
exec startxfce4<br />
<br />
= Use GCIN =<br />
<br />
=== With GNOME/GTK+ 2 applications ===<br />
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).<br />
<br />
=== With other applications ===<br />
1.Set environment locale to use UTF-8, for example:<br />
export LC_CTYPE=en_US.UTF-8<br />
(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)<br />
<br />
2.Set XMODIFIERS:<br />
export XMODIFIERS=@im=gcin<br />
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:<br />
export GCIN_XIM=gcin_zh<br />
export XMODIFIERS=@im=gcin_zh<br />
Remember that gtk2 applications start one instance of gcin automatically if it doesn't exist.<br />
<br />
3.Start gcin:<br />
gcin &<br />
<br />
4.Run your applications! (If gcin is killed when your applications are running, it's likely to cause crash or other problems.)<br />
<br />
=== Additional notes for wine/crossover office ===<br />
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.<br />
<br />
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.</div>Fujiahttps://wiki.archlinux.org/index.php?title=Gcin&diff=65821Gcin2009-03-27T15:36:57Z<p>Fujia: /* About GCIN */</p>
<hr />
<div>[[Category:Internationalization (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Gcin}}<br />
{{i18n_entry|繁體中文|GCIN (繁體中文)}}<br />
{{i18n_links_end}}<br />
<br />
{{stub}}<br />
<br />
= About GCIN =<br />
GCIN is an input method server developed by Edward Liu. It supports various input methods and all Unix-like operating systems.<br />
<br />
= Installing GCIN =<br />
pacman -S gcin<br />
<br />
=== Installing Other Input Tables ===<br />
MISSING<br />
<br />
= Configure GCIN =<br />
== Steps for XFCE with SLiM ==<br />
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.<br />
<br />
export XMODIFIERS=@im=gcin<br />
export LC_CTYPE=zh_TW.UTF-8<br />
gcin&<br />
<br />
This is what your .xinitrc file should look like. Note that the "exec startxfce4" line comes '''after''' the lines for GCIN <br />
<br />
#!/bin/sh<br />
<br />
#<br />
# ~/.xinitrc<br />
#<br />
# Executed by startx (run your window manager from here)<br />
#<br />
<br />
#GCIN<br />
export XMODIFIERS=@im=gcin<br />
export LC_CTYPE=zh_TW.UTF-8<br />
gcin&<br />
<br />
exec startxfce4<br />
<br />
= Use GCIN =<br />
<br />
=== With GNOME/GTK+ 2 applications ===<br />
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).<br />
<br />
=== With other applications ===<br />
1.Set environment locale to use UTF-8, for example:<br />
export LC_CTYPE=en_US.UTF-8<br />
(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)<br />
<br />
2.Set XMODIFIERS:<br />
export XMODIFIERS=@im=gcin<br />
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:<br />
export GCIN_XIM=gcin_zh<br />
export XMODIFIERS=@im=gcin_zh<br />
Remember that gtk2 applications start one instance of gcin automatically if it doesn't exist.<br />
<br />
3.Start gcin:<br />
gcin &<br />
<br />
4.Run your applications! (If gcin is killed when your applications are running, it's likely to cause crash or other problems.)<br />
<br />
=== Additional notes for wine/crossover office ===<br />
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.<br />
<br />
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.</div>Fujia