Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
[转载]pdaxrom (部份)中文化之手順
View previous topic :: View next topic  
Author Message
ccpaging



Joined: 07 Dec 2006
Posts: 757

小企鹅: 16604

PostPosted: 2006-Oct-06 Fri, pm7:50 Reply with quote
 Post subject: [转载]pdaxrom (部份)中文化之手順

用了这么久的cacko,对其汉字没有antialias还是不太满意,原来pdaxrom和cacko都有这功能。

[Zaurus] pdaxrom (部份)中文化之手順

這裏所說的中文化是指在 firefox/gaim 等 gtk framework 的程式裏秀出和輸入中文字,至於 KA/Pi 之類的則未試到..

1. 安裝 glibc locale

zh_TW.big5 和 zh_TW.utf8 的 package 我弄好了,在這裏

也可以在 term 裏打

Code:

wget http://zaurus.earpassion.net/glibc-locale-zhtw_0.0.1_armv5tel.ipk
ipkg install glibc-locale-zhtw_0.0.1_armv5tel.ipk


2. 安裝字型 -
因為含中文的 TTF 字檔不小,我的做法通常都是放左 sd card 上再 symlink 過去 /usr/X11R6/lib/X11/fonts/TTF
先抓小字優化過的螢火飛字型:http://zaurus.earpassion.net/fireflysung-1.3.0.tar.gz
英文還有可以抓 windows 內的 Bitstream Vera 系的字型,放在 Zaurus 看都比較美觀
日文的可以找 kochi-gothic

爆開下戴完之後,把裏面的 TTF 檔放到 /mnt/card/fonts 裏面,再把 /mnt/card/fonts 都 symlink 過去 /usr/X11R6/lib/X11/fonts/TTF/ 裏面

然後打 fc-cache -f -v 重設 cache 就行了

打 fc-list 可以看到有什麼 fonts, 這是我的 :

Code:

# fc-list
Bitstream Vera Sans Mono:style=Bold
Verdana:style=Bold Italic
AR PL New Sung:style=Regular
Bitstream Vera Sans:style=Oblique
Bitstream Vera Sans:style=Roman
Times New Roman:style=Bold Italic
Lucida Console:style=Regular
Times New Roman:style=Bold
Verdana:style=Bold
Times New Roman:style=Italic
Kochi Gothic:style=Regular
Bitstream Vera Sans Mono:style=Oblique
Bitstream Vera Sans:style=Bold
Bitstream Vera Serif:style=Roman
Bitstream Vera Sans Mono:style=Bold Oblique
Bitstream Vera Sans:style=Bold Oblique
Times New Roman:style=Regular
Bitstream Vera Sans Mono:style=Roman
Bitstream Vera Serif:style=Bold
Verdana:style=Regular
Verdana:style=Italic


接下來就是設定 fontconfig

把 /etc/fonts/local.conf 改成這樣 :

Code:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
<!--
  Enable sub-pixel rendering
        <match target="font">
                <test qual="all" name="rgba">
                        <const>unknown</const>
                </test>
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match>
-->

<!-- Disable font alias for Chinese <= 16px -->
  <match target="font">
    <test qual="any" name="family" compare="eq">
      <string>AR PL New Sung</string>
      <string>Kochi Gothic</string>
    </test>
    <test name="pixelsize" compare="less_eq">
      <double>16</double>
    </test>
    <edit name="antialias">
      <bool>false</bool>
    </edit>
    <edit name="hinting">
      <bool>true</bool>
    </edit>
  </match>

  <alias>
      <family>serif</family>
      <prefer>
         <family>Bitstream Vera Serif</family>
         <family>AR PL New Sung</family>
         <family>Kochi Gothic</family>
      </prefer>
  </alias>

  <alias>
      <family>sans-serif</family>
      <prefer>
         <family>Bitstream Vera Sans</family>
          <family>AR PL New Sung</family>
          <family>Kochi Gothic</family>
      </prefer>
  </alias>

  <alias>
      <family>monospace</family>
      <prefer>
         <family>Bitstream Vera Sans Mono</family>
          <family>AR PL New Sung</family>
          <family>Kochi Gothic</family>
      </prefer>
  </alias>

  <alias>
      <family>monospace</family>
      <prefer>
         <family>Bitstream Vera Sans Mono</family>
          <family>AR PL New Sung</family>
          <family>Kochi Gothic</family>
      </prefer>
  </alias>

</fontconfig>


簡單來說就是把 Bitstream Vera 設定成預設的英文字型,營火飛作中文,Kochi Gothic 作日文,還有就是不要把 16 點以下的字型作 Anti-aliases 的處理。

之後廅開 x window 再 startx 就成了. 中文輸入方面可以參考一下之前關於 gcin 的..

_________________
SL-C1000, 1G CF, 1G SD
pdaxrom 1.1beta3
Roku Wifi Card(Used in Cacko 1.23 & pdaXrom 1.1 Beta3)
http://ccpaging.blog.ubuntu.org.cn/
http://ccpaging.osall.com/
http://blog.sina.com.cn/zaurus/
Back to top
View user's profile Send private message
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD All times are GMT + 8 Hours
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
You cannot attach files in this forum
You can download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional