The symptoms are:
So it’s not that Smart Pinyin is missing, it’s just that SCIM refuses to use it for some reason.
The only solution I’ve come across is right at the end of this thread on Ubuntu forums:SCiM Smart Pinyin. The solution there is:
sudo apt-get remove --purge scim
This should uninstall all the packages associated with SCIM as well (scim-pinyin, scim-m17n etc.)
The overall aim here is to take off and nuke the site from orbit (it’s the only way to be sure). We’re just removing anything to do with SCIM to ensure we get rid of whatever caused the error.
sudo rm -rf /etc/scim
sudo rm -rf ~/.scim
Be extremely careful with the above commands. Check and double check them before you hit enter in terminal. If you type the wrong directory you can easily delete loads of important stuff.
And now we do a fresh new install of SCIM:
sudo apt-get install scim scim-m17n scim-pinyin
And that should get Smart Pinyin working again. This method is a real pain though, mostly because it destroys all of your table data – the words and phrases you’ve taught SCIM. Every time I do this I have to re-teach it loads of stuff, usually starting with my Chinese name (葛修遠).
If anyone is aware of a better method for restoring SCIM Smart Pinyin input then please share it in the comments, as I can’t believe this is the best way to do it.
If you wanna know more details please reffer:http://eastasiastudent.net/3622/china/mandarin/cmn-writing/scim-smart-pinyin/
Using Ctrl+Space to switch between CN and EN.
To create file: /etc/X11/Xsession.d/95xinput
To append the fellowing few lines to this file:
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
scim -d