LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 904|回复: 6

怎样既能使用fcitx输入法, xmms,gimp,gqview又不出现乱码?

[复制链接]
发表于 2003-11-16 05:09:36 | 显示全部楼层 |阅读模式
fcitx输入法要正常 /etc/profile.d/lang.sh LANG 必须改为zh_CN. GBK  但这样的话 XMMS,又乱码
who can tell me how to do ! thangks
发表于 2003-11-16 11:09:49 | 显示全部楼层
我的输入法好用,XMMS又不乱码,locale也是zh_CN.GBK
多用用搜索及精品贴吧。
发表于 2003-11-16 11:23:13 | 显示全部楼层
可能你的fonts.dir还没有gbk字体吧?
发表于 2003-11-16 13:02:10 | 显示全部楼层

没问题

我的LANG是zh_CN.GB2312,xmms的乱码我这样解决:
1安装turbolinux8w的ttf-zh包,在XF86Config中加入字体路径
2另一种方法是网上学来的,选中字体集支持,选宋体,在后面加",fixed"(引号不要).
发表于 2003-11-16 19:32:07 | 显示全部楼层
xmms乱码是因为你字体没设置好啊,你可以看一下置顶帖子里面关于xmms字体的解决。
 楼主| 发表于 2003-11-17 01:29:56 | 显示全部楼层
还是搞不好啊,我的系统是没怎么汉化的,只是改了LOCAL,加了方正字何宋体字,他们的路径都在XF86CONFIG里,
我的/etc/pofile.d/lang.sh 文件
#!/bin/sh
# Set the system locale (default C is the same as en_US):
export LANG=zh_CN.GBK
# This setting has been reported to fix some cut and paste
# problems with GTK2.  If you experience this, try it:
#export LANG=zh_CN.GBK


我的 /etc/gtk/gtkrc.zh_CN 文件
# $(gtkconfigdir)/gtkrc.zh_CN
#
# This file defines the fontsets for Chinese language (zh) using
# the simplified chinese standard GuoBiao as in mainland China (CN)
#
# 1999, Pablo Saratxaga <pablo@mandrakesoft.com>
#

style "gtk-default-zh-cn" {
       fontset = "-adobe-helvetica-medium-r-normal--16-*-*-*-*-*-iso8859-1,\
                  -*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"
发表于 2003-11-17 12:28:38 | 显示全部楼层
把宋体字体路径加到XF86CONFIG中去,确保你的字体目录里有fonts.scale,fonts.dir文件。

这个是我的gtkrc.zh_CN

# $(gtkconfigdir)/gtkrc.zh_CN
#
# This file defines the fontsets for Chinese language (zh) using
# the simplified chinese standard GuoBiao as in mainland China (CN)
#
# 1999, Pablo Saratxaga <pablo@mandrakesoft.com>
#

style "gtk-default-zh-cn" {
       fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
                  -misc-simsun-medium-r-normal--12-*-*-*-*-*-gbk-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表