Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
為什麼我還未顯示中文
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
zerop2
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2006
Posts: 95

PostPosted: Fri Apr 28, 2006 1:30 pm    Post subject: 為什麼我還未顯示中文 Reply with quote

我做了以下step
# emerge -k kdebase
# echo "exec startkde" > ~/.xinitrc
# startx

# nano -w /etc/locales.build
zh_TW.BIG5/BIG5
zh_TW.UTF-8/UTF-8
en_US.UTF-8/UTF-8

# nano -w /etc/make.conf

LINGUAS="en zh_TW zh_CN"

echo "sys-libs/glibc userlocales" >> /etc/portage/package.use

reboot
在console links www.yahoo.com.hk
仍看不到中文

edit: utf-8 encoded - eric
_________________
>>>>>>>>>>>>>>>
Kenerl Hacking Babie
>>>>>>>>>>>>>>>
Back to top
View user's profile Send private message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 289
Location: Hangzhou, China

PostPosted: Sat Apr 29, 2006 1:54 pm    Post subject: Reply with quote

you need LC_CTYPE=zh_CN
_________________
HighWayToHell(blog)
http://blog.druggo.org/
Back to top
View user's profile Send private message
EricHsu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Thu May 11, 2006 2:06 pm    Post subject: Reply with quote

zerop2

在设置了 locales.build (现在建议改名成 locale.gen) 之后, 需要重新 emerge glibc 以使你的系统能支持相应的 locales.

请参看这篇文章.

之后, 如 druggo 所言, 你需要设置系统的语言相关变量, 可以参考我的做法:

1. 编辑 /etc/env.d/99local - 没有就创建 - 加入
Code:

LINGUAS="en zh_TW zh-TW"
LANG=zh_TW
LC_ALL=zh_TW


其中 LINGUAS 和 LANG 在一些软件 emerge 的时候会用到, 写了就会装相应的语言版本 (比如繁体中文版本的 firefox).

2. 更新系统环境变量:
Code:

# env-update && source /etc/profile


另外请确保你的系统里有中文字体, 之后应该就能看中文了. 由于我对繁体中文 locale 不熟悉, 有说错的地方, 请明白的朋友指出, 谢谢 :D
_________________
- http://nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
zerop2
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2006
Posts: 95

PostPosted: Sun May 14, 2006 9:01 am    Post subject: 如果我想要把中文字型 像window 那樣 Reply with quote

應該怎樣

我覺得毛筆型的字型很難看

還有 看web page 的時候, 現在只有某些字 看到 有些卻看不到

不知怎樣用倉頡 呢
Back to top
View user's profile Send private message
fakeid
n00b
n00b


Joined: 23 Jan 2006
Posts: 4

PostPosted: Sun Jun 25, 2006 5:12 pm    Post subject: Reply with quote

论坛最好使用 utf8 发帖 不然别人看的都是乱码 使用其他字体 可以把字体复制到
/usr/share/fonts 下
然后 fc-cache -vf
有些gtk的程序可以直接设置成你要改的字体
其他的可以编辑 /etc/fonts/font.conf 文件实现
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Mon Jun 26, 2006 7:12 pm    Post subject: Reply with quote

zerop2 wrote:
如果我想要把中文字型 像window 那樣

應該怎樣

我覺得毛筆型的字型很難看

還有 看web page 的時候, 現在只有某些字 看到 有些卻看不到

不知怎樣用倉頡 呢

Try copying over your windows Chinese fonts, such as simsun.ttc.
To use 倉頡, you need to install scim.
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum