LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-10-2004, 05:04 PM   #1
LaoNiu
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian
Posts: 16

Rep: Reputation: 0
Unhappy SCIM only works in ZH LOCALE


I wish to: keeping my system s language as english, have the ability to do some text input in chinese when the need arises.
So I set out to install SCIM (scim.freedesktop.org) which seems the modern and elegant solution!
I found many nice tutorials , everyone shares roughly the same advice:
http://www.jiawen.net/linuxbits.html (Mandrake)
and
http://nic-nac-project.de/~murj/blog...system/catid/5
Described most what I want to do:
http://www.erning.net/en_US/archives/000003.html (Fedora)

What I'd rather not have to do: http://www.linuxquestions.org/questi...highlight=SCIM

http://gerrit-worldwide.de/chinesischlinux2_eng.html#5 (Mandrake)<--is well-detailed

The only troublesome part is when it comes to specifying your locale info -
that seems to be very distribution-dependant

it has to remain as it was - the usual en_GB.UTF-8 for me -
everywhere except for

LC_CTYPE which must become = to zh_CN.UTF-8 for simplified chinese,

and the following lines of magic (which i understand must be ""exported"" to the environment) for SCIM to be able to do its job:

CONSOLE_NOT_LOCALIZED=yes
XIM_PROGRAM=scim
XMODIFIERS="@im=scim"

Question 1: I must be doing this wrong because every distro seems to have a different way about it , and I havent found The Debian Way for this.

Why do I think this is what Im doing wrong?
Because when I log into the gdm having chosen "Language" as Chinese, then
the SCIM works like a charm, whereas if I use the English language it only offers me the "English" input method, which is of little use

I installed SCIM with the .deb packages, I'm using Gnome on Sarge, my kernel is 2.4.21 in case that matters..and: I made the locale settings by putting the following in my
~/.bashrc:
<-------SNIP----------->
XIM=scim
export XIM

XMODIFIERS="@im=scim"
export XMODIFIERS


LC_CTYPE="zh_CN.UTF-8"
export LC_CTYPE

CONSOLE_NOT_LOCALIZED="yes"
export CONSOLE_NOT_LOCALIZED
<------SNIP------------>

What puzzles me most is that when I login with language "English", SCIM starts at login then I cant kill it. When i start with Chinese language, it doesnt launch by itself at login, and I start it from a console and there it works fine.
It s very difficult to have 2 usable SCIM's running at the same time, so since I cant kill the one that autolaunches when i login in with english language, I cant really test ...

Question 2:

what kind of configuration file for X, gnome or whatever in my debian sarge ,
can cause this language-dependant launching-or-not-of-an-app-at-login ??
i really want to find out where that auto-launch line is so I can remove it!

Thanks
 
Old 11-25-2004, 11:34 AM   #2
kozaki
Member
 
Registered: Jun 2004
Location: France, UE
Distribution: Arch Linux, Bodhi, Debian, Mageia, OpenMediaVault, Q4OS
Posts: 133

Rep: Reputation: 20
I have precisely the same prob on a Mandrake Linux OS, despite RTFMs & trying for hours to find the correct configuration.
So i'd say this is not a 100% distro-related problem.

Laoniu please have a look at this updated post
 
Old 11-26-2004, 09:03 AM   #3
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Rep: Reputation: 15
老牛,我不是用debian, 不过我成功将scim启动在我的suse里。

在 .bashrc 里加上,

export LC_CTYPE="zh_CN.gb2312"

就可以了。
如果要在英文的菜单里谁时启动scim就按 control - space。
这就是用scim打的。
 
Old 11-27-2004, 02:53 PM   #4
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
good advice damienduff, and you can also use zh_CN.UTF-8 for LC_CTYPE with SCIM. I am not an expert, but I would imagine that Unicode allows you to switch between traditional Chinese/Korean/Japanese etc. in the same document if so required...

jdw
 
Old 11-28-2004, 02:11 AM   #5
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Rep: Reputation: 15
hi JDW,
appreciate ur help few mths back when i was trying to make xcin work.
i finally found the above solution tat is so simple n beautiful on the internet with a little bit of luck.

i m guessing
export LC_CTYPE="zh_CN.gb2312" or export LC_CTYPE="zh_TW.Big5"
will work on xcin as well, no need to create a separate chinese account.

Last edited by damienduff; 11-28-2004 at 02:13 AM.
 
Old 11-28-2004, 02:50 PM   #6
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
SCIM only works in ZH LOCALE

Hi,

Yeah, I made a separate user account just for convenience, but seeing your post gave me the idea to set up an alias in ~/.bashrc, as follows :-

alias scim="export LC_CTYPE=zh_CN.UTF-8; export XMODIFIERS=@im=SCIM; scim -d"

Now when I type "scim" at the command line everything works just fine with a minimum hassle factor...

cheers,

jdw
 
Old 05-04-2005, 02:30 AM   #7
heister
LQ Newbie
 
Registered: Dec 2003
Location: Malaysia
Distribution: debian
Posts: 10

Rep: Reputation: 0
http://yienbin.diong.org/?post=5
take a look at this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
locale: Cannot Set LC_ALL to default locale: No such file or directory. asym Linux - General 11 10-24-2018 05:54 PM
How to change the locale by setting the system default locale letdoit Slackware 6 08-18-2011 03:34 AM
"locale not supported by Xlib, locale set to C" Irad Linux - Software 3 06-25-2006 03:59 PM
SCIM chinese input works selectively (Mandrake 10) houshuang Linux - Software 50 05-10-2005 12:02 AM
new debian user. need help with scim and locale. damienduff Debian 2 04-05-2005 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration