View previous topic :: View next topic |
Author |
Message |
nonhuman Apprentice
Joined: 30 Sep 2002 Posts: 236 Location: Washington DC
|
Posted: Wed May 19, 2004 5:07 pm Post subject: SCIM problems. |
|
|
I'm trying to get SCIM working for Chinese input. I'm using the Kahakai wm. I followed the howto exactly. However, hitting ctrl-space only brings up the SCIM panel if I'm in xterm. It doesn't seem to work in other programs like gedit. Is there something extra that has to be done? _________________ "Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen |
|
Back to top |
|
|
Hauser l33t
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
Posted: Wed May 19, 2004 11:35 pm Post subject: |
|
|
This is how I get my Chinese input working (I didn't follow the how-to you mentioned).
Make sure you have enabled the following options in the kernel:
Simplified Chinese charset (CP936, GB2312)
Native Language Support-->Traditional Chinese charset (Big5)
Make sure you have included 'nls' and 'cjk' in your USE flags.
Create ~/.xinitrc as follows:
Code: |
export LC_CTYPE=zh_TW.Big5
(export LC_CTYPE=zh_CN) #if you want to use Simplified Chinese.
export XMODIFIERS="@im=SCIM"
export XIM=SCIM
export XIM_PROGRAM=SCIM
scim -d
exec startkde
|
If you have Chinese windows, edit your fstab entry like this:
/dev/hdaX /mnt/win vfat iocharset=cp950,noauto,umask=022 0 0 (Traditional Chinese)
/dev/hdaX /mnt/win vfat iocharset=cp936,noauto,umask=022 0 0 (Simplified Chinese)
That's about it. Of course, if you want your Chinese fonts look nicer, I suggest you copy over those Chinese fonts from your windows. _________________ AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl
Do I like to compile everything?
Positive definite! |
|
Back to top |
|
|
nonhuman Apprentice
Joined: 30 Sep 2002 Posts: 236 Location: Washington DC
|
Posted: Thu May 20, 2004 12:30 am Post subject: |
|
|
I got it work. The problem was just that the LANG variable needed to be set to Chinese, and I hadn't done that. It's rather annoying that I have to run my programs in Chinese in order to type in Chinese.
Does anyone happen to know if there's a way to get a different Russian input method than the Yawerty one? I find it much easier to type with the actual Russian keyboard layout. _________________ "Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen |
|
Back to top |
|
|
nonhuman Apprentice
Joined: 30 Sep 2002 Posts: 236 Location: Washington DC
|
Posted: Thu May 20, 2004 12:45 am Post subject: |
|
|
Actually, I was wrong. All I had to do was set my LC_CTYPE and now it works even if my LANG isn't Chinese. Excellent. _________________ "Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen |
|
Back to top |
|
|
|