help with chinese input on debian lenny

59 views
Skip to first unread message

paynito

unread,
Oct 11, 2008, 8:20:28 AM10/11/08
to Shanghai Linux Users Group
debian lenny Xfce

~$ locale
LANG=zh_CN.GB2312
LANGUAGE=POSIX
LC_CTYPE=zh_CN.GB2312
LC_NUMERIC=POSIX
LC_TIME=POSIX
LC_COLLATE=POSIX
LC_MONETARY=POSIX
LC_MESSAGES=POSIX
LC_PAPER=POSIX
LC_NAME=POSIX
LC_ADDRESS=POSIX
LC_TELEPHONE=POSIX
LC_MEASUREMENT=POSIX
LC_IDENTIFICATION=POSIX
LC_ALL=
-----
scim is installed and launches on cntrl-space
I type ni hao and see the chinese characters, but all iceweasel sees
is DC:C


this is all in my ~/.bashrc

export XIM_PROGRAM=Chinput
export XIM=Chinput
export XMODIFIERS="@im=Chinput"

help!

Do I need to change those 3 to scim instead of Chinput?

I think I typed scim but when I did
$ cat .scim/global
/DefaultKeyboardLayout = US_Default
user@67B3BCC255974B3:~$ scim -d
Smart Common Input Method 1.4.7

Launching a SCIM process with x11...
Loading socket Config module ...
Creating backend ...
Loading x11 FrontEnd module ...
Failed to launch SCIM.
user@67B3BCC255974B3:~$ chinput & mozilla &
[1] 3564
[2] 3565
user@67B3BCC255974B3:~$ Chinput Version 3.0.2 -- XIM Server
Distributed under the terms of the GNU General Public License (GPL)
/home/user/.pyinput/sysfrequency.tab file can't open
Chinput ................................................[OK]

[1]- Done chinput
[2]+ Done mozilla


------
the line $ chinput & mozilla &
maybe that changed my ~/.bashrc to chinput instead of scim

anyway I'm confused

I want the system to be English but be able to type Chinese sometimes.
now the system is Chinese
wenzhang in terminal
but File in iceweasel
and I can type lovely characters in the scim window but can't make
them appear in iceweasel or google searches

-paynito in XinSong

Lofton H Alley Jr

unread,
Oct 11, 2008, 8:39:59 AM10/11/08
to shang...@googlegroups.com
I think you have some serious issues here, but .... well, if locale is
set as below, and bashrc is set as indicated then how do you input
"locale" in xterm? that measn it is using another locale with bash,
which is trying to use the .bashrc as well?
So, you are confused as well as your machine, suggestion, reload the
affected files from backup and start again because your config is messed up.

Brandon Payne

unread,
Oct 12, 2008, 2:00:48 AM10/12/08
to shang...@googlegroups.com
got it working
I think the magic bullet was this
http://www.sudu.cn/info/html/edu/linux/20080102/281752.html

解决方法:
1. 打开脚本文档/usr/lib/iceweasel/iceweasel  必须使用root权限编辑.
2. 找到以下内容:
MOZ_DIST_BIN="/usr/lib/iceweasel"
MOZ_PROGRAM="${MOZ_DIST_BIN}/firefox-bin"
在这两句话的下面添加以下内容:
XMODIFIERS=@im=SCIM
GTK_IM_MODULE=scim-bridge
export XMODIFIERS GTK_IM_MODULE
3. 保存后重新启动iceweasel 测试在地址栏输入中文,成功.
Reply all
Reply to author
Forward
0 new messages