Hello,
after hours of frustration I finally found a way to get SKIM to work properly in Kubuntu 7.04 Feisty (32 bits) in a non-chinese session (that is your session is in your native non-CJK language, but you still want to be able to input chinese). Although this guide has only been tested for chinese, it probably works just as well for Japanese or Korean or any other CJK language.
There are already several guides on how to setup CJK input under ubuntu or Kubuntu but none of them satisfied all my requirements:
Kubuntu/KDE
SKIM
Non-CJK session
Input also works in OpenOffice.org
if your requirements are the same, this guide should work for you.
- Install chinese language support from the system settings
- go to K->System settings->Regional & Language
- Press "Install new Language", choose chinese and press install
- let the installation take place. This will take a long time since because of weird package dependencies, firefox, thunderbird and Openoffice.org will all be installed too. You can remove them later anyway
- The install is finishes, go again to K->System settings->Regional & Language
- click "add language" and pick your variation of chinese
- reorder the languages to put english (or you favorite language) on top of the list
- click apply and exit the application
- Setup scim to support your session's locale
- open Konsole (K->System->Konsole)
- type the following command to find you session's locale
this command should print something likeCode:locale | grep LANG=
your locale is the part on the right side of the = symbolCode:LANG=en_US.UTF-8- open ~/.scim/global
Code:kate ~/.scim/global- Add the following line at the end of the file
replace en_US.UTF-8 by the locale you found out in step bCode:/SupportedUnicodeLocales = en_US.UTF-8- save the file and close kate
- Setup scim to use skim
- type the following command to tell scim to use skim
Code:scim-panel-kde -d -f- Open skim's configuration dialog (right-click the skim icon in the system tray and select "configure")
- Go to Global Settings->General SCIM, change these settings as follows:
Code:Panel Program: scim-panel-kde Config Module: kconfig- Configure scim to startup with your sesion
- type the following commands
to start kate as root.Code:kdesu kate /etc/X11/Xsession.d/74custom-scim_startup- paste the following lines in kate
Code:export XMODIFIERS="@im=SCIM" export GTK_IM_MODULE="scim" export XIM_PROGRAM="scim -d" export QT_IM_MODULE="scim"- Save the document and quit kate
- Log out and log in again. (Or even reboot if you feel like it).
SCIM should now work properly for your locale.
References
SCIM/Kubuntu - Community Documentation
Kubuntu 7.04 - Japanese Input via Skim
HOWTO: Japanese Input and Fonts in Ubuntu 7.04
Bookmarks