OLPC in Chinese

Basic Requirement

Package Repository

Chinese Font

As nowadays, the true-type fonts are managed under fontconfig architecture, the installation of ttf files is as simple as putting the file under /usr/share/fonts as root.

To turn off antialias, one can put the followings into ~olpc/.fonts.conf.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>

  <match target="font">
    <test name="family" compare="contains">
      <string>Sun</string>
      <string>Sazanami</string>
      <string>AR PL</string>
      <string>IPAMona</string>
      <string>Min</string>
      <string>Hei</string>
      <string>宋</string>
      <string>明</string>
      <string>黑</string>
    </test>

    <test name="pixelsize" compare="less_eq"><int>24</int></test>
    <edit name="embeddedbitmap" mode="assign"><bool>true</bool></edit>
    <edit name="antialias" mode="assign"><bool>false</bool></edit>
    <edit name="hinting" mode="assign"><bool>true</bool></edit>
  </match>

</fontconfig>

writer_zh.png

Due to the special spec. of the LCD screen, it seems that it's not so necessary to use embedded bitmap fonts. The smallest font in "write" app. (#8) is already of 20x20 pixel. There is also no much difference when displaying with antialias on or off. There is a performance issue with the browser app. when shown CJK fonts. (would disable PANGO help?) The official Firefox 2.0.0.5 from Mozilla official package is of no this problem.

Input Method installation

OLPC currently uses "en_US.UTF-8" locale. We can use _GCIN_ Chinese input method without modification. GCIN can be installed either with "yum" from fedora extra or manually from RPM packages of FC6. Reference for the later method can be found here: [WWW] http://cle.linux.org.tw/trac/wiki/GcinScreenOLPC

Note: the dependency of the GCIN RPM is too much. You'll need to install qt, libcms and some others unnecessary ones.

Screen Shots

Chinese input in "write" app. writer_gcin.png

Chinese input for "browser" app. browser_gcin.png

Due to the _suger_ UI, "gcin-setup" looks ugly. gcin-setup.png

The 'reader' app. shows PDF with Chinese well. reader.png

Photos

Photos are taken with a "real" OLPC. (BTest-4 XO)

Font select close-up in "write" app. font_sel_bk.jpg font_sel_col.jpg

writer_show.jpg

Close-up for "browser" app. browser.jpg

Reference

OLPCinChinese (last edited 2007-07-22 13:49:26 by ychao)