1. Use Synaptic to remove scim-* completely.
2. Remove previously installed SCIM files/data using terminal:
sudo rm -rf /usr/bin/scim
sudo rm -rf /usr/local/bin/scim
sudo rm -rf /etc/scim
sudo rm ~/.scim
sudo rm /root/.scim
3. Reinstall SCIM through System - Administration - Language Support.
基本等同于
sudo apt-get install language-pack-gnome-zh language-pack-gnome-zh-base language-pack-zh language-pack-zh-base language-support-zh
sudo apt-get install scim scim-chinese scim-pinyin
4. If Pinyin not found in scim setup-> IMEngine, then download scim-pinyin, scim-tables,
./configure
make
sudo make install
奇怪的是 sudo apt-get install scim-pinyin 无法成功
5. 如安装之后在firefox和google的输入框还是无法敲中文。可以如下处理:
im-switch -s scim -z default #设置 scim 为缺省输入法
logout and login again. In order to achieve this, you may need to install:
im-switch scim-qtimm
6. 有可能会遇到修改文件名时不能输入,在firefox中不能光标跟随,在gaim,pidgin,amsn,emesene,eva,gtalk等聊天软件不能输入文字等等的问题.解决方法如下:
修改 /etc/X11/xinit/xinput.d/scim
改成这样:
#GTK_IM_MODULE=xim
#QT_IM_MODULE=xim
GTK_IM_MODULE=scim
QT_IM_MODULE=scim
重启动,应该可以了
========
附:查看缺省语言
locale
say en_US is the locale, then using command:
im-switch -z en_US -s scim # set scim default
另:
我现在从windows xp 主机向 ubuntu 机器上传文件,用的ssh ftp client。上传的中文文件名在ssh ftp client中正常,但在ubuntu 下用ls 显示依旧是乱码(view encoding already changed to chn in terminal)。如果用
ls *.pdf | grep pdf
则可正常显示。 可能是ssh不支持编码转换。
设置LC_ALL和其它属性:
sudo gedit /etc/environment
在编辑器里,将内容修改如下(默认使用中文界面):
LANGUAGE="zh_CN:zh:en_US:en"
LANG=zh_CN.UTF-8
英文界面,将内容修改如下:
LANGUAGE="en_US:en"
LANG=en_US.UTF-8
保存,关闭编辑器
ubuntu 8.04 scim problem
Ubuntu 升级到8.04后,在Kile编辑状态或终端时,有时键盘输入失灵(但箭头键还能用),需要转到其他窗口有一番动作后回来才能用。上网search了一下,觉得是scim的问题。将之关闭则问题消失,但有时又要输入中文,唉,麻烦。解决方案 1: 换用 scim-bridge 改善 scim 在 Ubuntu 中的表现
经实验: scim-bridge 未解决问题. ;-(
scim-bridge作为客户端用socket和scim通讯, 是用 C 代替了 C++ 编写的,可以解决原来 scim 和 acroread / realplay / vmplayer 等包不兼容的问题。
sudo gedit /etc/X11/xinit/xinput.d/scim
将GTK_IM_MODULE=xim
改成GTK_IM_MODULE="scim-bridge"
然后Restart system. 或者手工启动
scim -d
解决方案 2:
im-switch -s scim -z default
修改 /etc/X11/xinit/xinput.d/scim
改成这样:
#GTK_IM_MODULE=xim
#QT_IM_MODULE=xim
GTK_IM_MODULE=scim
QT_IM_MODULE=scim
重启后可以. ;-)
but it does not work for eric4, a python editor.
scim is a very bad input method, always resulting deadkey.
scim configuration:
去掉“scim设置”的 “前端”->“全局设置”->“将预编辑字符串嵌入到客户窗口中” 前的勾,就一切OK了
Gtk -> remove "embeded input table"
scim is a very bad input method, always resulting deadkey.
scim configuration:
去掉“scim设置”的 “前端”->“全局设置”->“将预编辑字符串嵌入到客户窗口中” 前的勾,就一切OK了
Gtk -> remove "embeded input table"
没有评论:
发表评论