Sunday, March 02, 2008

 

install chinese pinyin input on linux

src:
http://nic-nac-project.de/~murj/blog/item/view-and-input-chinese-charactors-in-an-english-system
http://www.ubuntuforums.org/showthread.php?p=124214#post124214

"sudo apt-get install scim scim-chinese scim-gtk2-immodule scim-tables-zh xfonts-intl-chinese xfonts-intl-chinese-big ttf-arphic-gbsn00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp ttf-arphic-bsmi00lp locales"
"sudo dpkg-reconfigure locales"
among others add en_US UTF-8, fr_FR UTF-8, zh_CN GB2312, zh_CN.GBK GBK and zh_CN.UTF-8 UTF-8
Very important: prior to run scim, run "export XMODIFIERS=@im=SCIM" (case sensitive) then call "skim &" and press Ctrl+Space (default keys) to have the toolbar popup.

Even if it's not working properly right know, add the following text to ~/.xsession:
scim -d
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=SCIM

Then do "chmod +x ~/.xsession" and restart your computer.
Scim should be automatically loaded and the toolbar should pop up once you run an application.
Good luck!

ps: it's important to write "SCIM" in capital letter with XMODIFIERS, otherwise you will get multiple "QInputContext: no input method context available" annoying error msgs in your shell !!

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?