LinuxSir.cn,穿越时空的Linuxsir!

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

slackware10已安装完成,还有一些中文问题请教大家

[复制链接]
发表于 2004-7-1 16:11:24 | 显示全部楼层 |阅读模式
slackware10完全安装,中文化如下
1. 修改/etc/profile.d/lang.sh, change "en_US" to "zh_CN".
2. 创建/usr/X11R6/lib/X11/fonts/truetype文件夹,将win98下的simsun.tff复制到这个目录
3. /usr/X11R6/bin/mkfontscale /usr/X11R6/lib/X11/fonts/truetype/
4. /usr/X11R6/bin/mkfontdir /usr/X11R6/lib/X11/fonts/truetype/
5. /usr/X11R6/bin/mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings
6.修改 /etc/X11/xorg.conf
加入FontPath "/usr/X11R6/lib/X11/fonts/truetype"
9. 修改 /etc/fonts/fonts.conf
加入<dir>/usr/X11R6/lib/X11/fonts/truetype</dir>


问题:
1、KDE只有英文版
2、我是用文本级启动的,每次进入gnome都是英文,要进入中文版,要先启动gdm,如何startx直接进入中文gnome
3、使用网络服务器浏览windows机器时,中文显示乱码
发表于 2004-7-1 16:18:31 | 显示全部楼层
locale最好改成zh_CN.gbk。zh_CN就是gb2312,不支持大字符集。增加字体描述最好用ttmkfdir,mkfontdir对于中文字体几乎没什么用处。
发表于 2004-7-1 16:26:51 | 显示全部楼层
mkfontdir并非没有用,而是有顺序的,要先mkfontscale,再mkfontdir。
发表于 2004-7-1 16:48:40 | 显示全部楼层
mkfontscale建立的fonts.scale不准确。例如:winxp里的simsun.ttc,支持的中文编码是gb2312和gbk,mkfontscale建立的fonts.scale竟然生成一个gb18030.2000;而simsun.ttc内嵌的NSimSun根本无法识别。
发表于 2004-7-1 17:35:27 | 显示全部楼层
为什么我改了GBK就起不来X了呢
发表于 2004-7-1 17:38:31 | 显示全部楼层

我的lang.sh

#!/bin/sh
# Set the system locale.  (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
#   locale -a

# en_US is the Slackware default locale:
export LANG=zh_CN.gbk

# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968.  These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
#export LANG=C

# There is also support for UTF-8 locales, but be aware that
# some programs are not yet able to handle UTF-8 and will fail to
# run properly.  In those cases, you can set LANG=C before
# starting them.  Still, I'd avoid UTF unless you actually need it.
#export LANG=en_US.UTF-8

# Another option for en_US:
#export LANG=en_US.ISO8859-1

# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places.  Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
export LC_COLLATE=zh_CN.gbk

# End of /etc/profile.d/lang.sh
发表于 2004-7-1 17:52:39 | 显示全部楼层
mkfontscale,mkfontdir生成的文件是因版本的不同而不同,例如9.1里生成的是gb2312.1980,10.0支持到最新的汉字国标gb18030.2000,并非错误,当然,一般都会手动把它改成gbk的。

我的lang.sh :
export LANG=en_US
export LC_CTYPE=zh_CN.gbk
export G_BROKEN_FILENAMES=1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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