Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SCIM problems.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Wed May 19, 2004 5:07 pm    Post subject: SCIM problems. Reply with quote

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
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Wed May 19, 2004 11:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Thu May 20, 2004 12:30 am    Post subject: Reply with quote

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
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Thu May 20, 2004 12:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum