LordOfThePigs
May 23rd, 2007, 03:15 AM
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
locale | grep LANG=
this command should print something like
LANG=en_US.UTF-8
your locale is the part on the right side of the = symbol
open ~/.scim/global
kate ~/.scim/global
Add the following line at the end of the file
/SupportedUnicodeLocales = en_US.UTF-8
replace en_US.UTF-8 by the locale you found out in step b
save the file and close kate
Setup scim to use skim
type the following command to tell scim to use skim
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:
Panel Program: scim-panel-kde
Config Module: kconfig
Configure scim to startup with your sesion
type the following commands
kdesu kate /etc/X11/Xsession.d/74custom-scim_startup
to start kate as root.
paste the following lines in kate
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 (https://help.ubuntu.com/community/SCIM/Kubuntu?action=show)
Kubuntu 7.04 - Japanese Input via Skim (http://ubuntuforums.org/showthread.php?t=428431)
HOWTO: Japanese Input and Fonts in Ubuntu 7.04 (http://ubuntuforums.org/showthread.php?t=396135)
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
locale | grep LANG=
this command should print something like
LANG=en_US.UTF-8
your locale is the part on the right side of the = symbol
open ~/.scim/global
kate ~/.scim/global
Add the following line at the end of the file
/SupportedUnicodeLocales = en_US.UTF-8
replace en_US.UTF-8 by the locale you found out in step b
save the file and close kate
Setup scim to use skim
type the following command to tell scim to use skim
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:
Panel Program: scim-panel-kde
Config Module: kconfig
Configure scim to startup with your sesion
type the following commands
kdesu kate /etc/X11/Xsession.d/74custom-scim_startup
to start kate as root.
paste the following lines in kate
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 (https://help.ubuntu.com/community/SCIM/Kubuntu?action=show)
Kubuntu 7.04 - Japanese Input via Skim (http://ubuntuforums.org/showthread.php?t=428431)
HOWTO: Japanese Input and Fonts in Ubuntu 7.04 (http://ubuntuforums.org/showthread.php?t=396135)