Guide to Display Chinese in Debain Sarge
I spent an evening today on http://wiki.linux.org.hk/index.php/H...ng_Locale_Data
(Thanks for the people who worked on the wiki)to figure out how to display chinese in Debian (sorry haven't try the input part yet). I think I should tell everyone how I get it so whoever has trouble at least gets a little more help. Good luck guys! Quote:
Code:
dpkg-reconfigure locales Code:
en_US ISO-8859-1 zh_CN GB2312, zh_CN.GBK GBK, and zh_CN.UTF-8 UTF-8 are for simplified chinese Recommend to Restart Linux --------------------------------------------------------------------------------------------------- Second we need to install chinese fonts, so linux can display it. we need these: # ttf-arphic-bsmi00lp - Arphic PL Shan Hei Sun Light (AR PL Mingti2L Big5), including about 13,000 traditional chinese characters in Big5. # ttf-arphic-bkai00mp - Arphic PL Zen Kai Medium (AR PL KaitiM Big5), including about 13,000 traditional chinese characters in Big5. # ttf-arphic-gbsn00lp - Arphic PL Bousung Light (AR PL SungtiL GB), including more then 7,000 simplified chinese characters in GB2312. # ttf-arphic-gkai00mp - Arphic PL GB Zen Kai Medium (AR PL KaitiM GB), including more then 7,000 simplified chinese characters in GB2312. so we use Code:
apt-get install ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp ttf-arphic-gbsn00lp Third Now, we need to configure local.conf file, it is located in /ect/fonts/local.conf If you open it with any text editor, it should look like this Code:
<?xml version="1.0"?> Disable anti-alias technology for Chinese fonts 16px or under: Code:
<!-- Disable font alias for Chinese <= 16px --> Code:
<alias> Code:
<alias> Code:
<alias> Fourth Those fonts we installed are great, but it looks weird in Linux, so we can use FireFly patch to fix them. We need to edit apt's source.list file which is located in /etc/apt/source.list add a new resource *If you use Synaptic select Settings > Repositories:then Code:
apt-get update Finally, type Code:
apt-get upgrade it will upgrade these packets: fontconfig, libfontconfig1, and libxft2 ---------------------------------------------------------------------------------------------- That's it, if you have any questions, let's discuss it toghether ( I am new to linux too, so...), that's what the forums for :) |
I reinstalled my sarge and just realize that I didn't have a local.conf in /etc/fonts (I don't know why :scratch: ), so I just create a new text file called local.conf and it works for me now:p
|
great work.
maybe u shld haf edited /etc/fonts/fonts.conf instead? your firefly URI did not work for me. i found a working link at http://www.study-area.org/apt/firefly-font/ but I am not sure where to put the fireflysung.ttf. Put it manually in /usr/share/fonts/truetype? Or use defoma-font register-all? anyway firefly is optional.:) |
sorry, I don't know where to put it, but I'll look it up and tell you, and thanks for another link for firefly!
|
All times are GMT -5. The time now is 03:15 PM. |