Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old April 10th, 2005   #1
DuKefeng
First Cup of Ubuntu
 
Join Date: Dec 2004
Beans: 9
HOWTO: Enable Chinese Input

Chinese Input for Ubuntu Hoary:
(version française)

1) install the following packages:
* scim
* scim-chinese
* scim-config-socket
* scim-frontend-socket
* scim-gtk2-immodule
* scim-server-socket
* scim-tables-zh (option)
* xfonts-intl-chinese
* xfonts-intl-chinese-big
* ttf-arphic-gbsn00lp
* ttf-arphic-gkai00mp
* ttf-arphic-bkai00mp
* ttf-arphic-bsmi00lp

accept all dependencies.

2) System -> Preferences -> Sessions

Startup Programs Tab -> Add Button
Startup Command: scim -d
Order: 80

3) Restart Gnome: CTRL+ALT+SUPPR

4) Open any software and press CTRL+SPACE to activate chinese input
------------------------------------------------------------------------------------------------------

IF not working you can as an alternative replace step 2) as follow:

2) alt+F2, gedit

type these few lines:
Code:
scim -d
export XMODIFIERS=@im=scim
export GTK_IM_MODULE=scim
gnome-session
Save them under your home directory name: .xsession

Then open a terminal and type:
Code:
$chmod +x .xsession
------------------------------------------------------------------------------------------------------

Tips


Additional Instructions for OpenOffice:
Tools=>Options=>Language Settings=>Languages: enable Asian languages support and choose the asian default language for document. (chinese simplified for example)
Tools=>Options=>Text Document=>Basic Fonts (Asian): change all of them for "AR PL Kaitim GB" or your favorite chinese font.

Clean Font
Add Firefly's font "AR PL New Sung"

Open a terminal and type
Code:
$wget http://firefly.idv.tw/apt/firefly-font/fireflysung-1.3.0.tar.gz
$tar zxvf fireflysung-1.3.0.tar.gz
$sudo cp fireflysung-1.3.0/fireflysung.ttf /usr/share/fonts/truetype/
$sudo fc-cache -f -v
Alternative repositories
Code:
$wget http://cle.linux.org.tw/fonts/FireFly/fireflysung-1.3.0.tar.gz
or
$wget http://apt.nc.hcc.edu.tw/pub/FC_src/fireflysung-1.3.0.tar.gz
or
$wget http://www.study-area.org/apt/firefly-font/fireflysung-1.3.0.tar.gz
More Fonts
Install msttcorefonts, open a terminal:
Code:
$sudo apt-get install msttcorefonts


现在能写中文

谢谢pierretzutolin

Last edited by DuKefeng; April 20th, 2005 at 02:20 AM..
DuKefeng is offline   Reply With Quote
Old April 10th, 2005   #2
benkorkor
5 Cups of Ubuntu
 
Join Date: Jan 2005
Beans: 21
Re: Howto Chinese Input

Awesome, thanks.
benkorkor is offline   Reply With Quote
Old April 10th, 2005   #3
mesocool
A Carafe of Ubuntu
 
mesocool's Avatar
 
Join Date: Mar 2005
Location: Seattle
Beans: 89
Ubuntu 7.04 Feisty Fawn
Send a message via AIM to mesocool Send a message via MSN to mesocool Send a message via Yahoo to mesocool
Re: Howto Chinese Input

Quote:
Originally Posted by DuKefeng
Chinese input Hoary:

1) install the following packages:
* scim
* scim-chinese
* scim-config-socket
* scim-frontend-socket
* scim-gtk2-immodule
* scim-server-socket
* scim-tables-zh (option)
* xfonts-intl-chinese
* xfonts-intl-chinese-big
* ttf-arphic-gbsn00lp
* ttf-arphic-gkai00mp
* ttf-arphic-bkai00mp
* ttf-arphic-bsmi00lp

accept all dependencies.

2) Go to "System" -> "Preferences", and select "Sessions". In "Startup Programs", add the command "scim -d"

3) Restart Gnome: CTRL+ALT+SUPPR

4) Open any software and press CTRL+SPACE to enable chinese input

Additional Instructions for OpenOffice:
Tools=>Options=>Language Settings=>Languages: enable Asian languages support and choose the asian default language for document. (chinese simplified for example)
Tools=>Options=>Text Document=>Basic Fonts (Asian): change all of them for "AR PL Kaitim GB" or your favorite chinese font.

Tips to have a better choice of fonts, install msttcorefonts。

现在能写中文

谢谢pierretzutolin

I can read and write Chinese, but the words shown are blur.. Just not as clear as English characters.. How can I fix that?
__________________
"Having no way as the way. Having no limitation as your limitation."
mesocool is offline   Reply With Quote
Old April 11th, 2005   #4
benkorkor
5 Cups of Ubuntu
 
Join Date: Jan 2005
Beans: 21
Re: Howto Chinese Input

This is brilliant. I love it. Works very well.
benkorkor is offline   Reply With Quote
Old April 11th, 2005   #5
DuKefeng
First Cup of Ubuntu
 
Join Date: Dec 2004
Beans: 9
Re: Howto Chinese Input

Quote:
Originally Posted by mesocool
I can read and write Chinese, but the words shown are blur.. Just not as clear as English characters.. How can I fix that?
Install firefly's font "AR PL New Sung"

Added in the HowTo
DuKefeng is offline   Reply With Quote
Old April 11th, 2005   #6
mesocool
A Carafe of Ubuntu
 
mesocool's Avatar
 
Join Date: Mar 2005
Location: Seattle
Beans: 89
Ubuntu 7.04 Feisty Fawn
Send a message via AIM to mesocool Send a message via MSN to mesocool Send a message via Yahoo to mesocool
Re: Howto Chinese Input

After I did the following, the Chinese characters are still blur as usual. Seems not changing anything.

$wget http://firefly.idv.tw/apt/firefly-fo...g-1.3.0.tar.gz
$tar zxvf fireflysung-1.3.0.tar.gz
$sudo cp fireflysung-1.3.0/fireflysung.ttf /usr/share/fonts/truetype/
$sudo fc-cache -f -v
__________________
"Having no way as the way. Having no limitation as your limitation."
mesocool is offline   Reply With Quote
Old April 12th, 2005   #7
DuKefeng
First Cup of Ubuntu
 
Join Date: Dec 2004
Beans: 9
Re: Howto Chinese Input

Try this :

Disable anti-alias technology for Chinese fonts 16px or under

My local.fonts look like this now:

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <include ignore_missing="yes">/var/lib/defoma/fontconfig.d/fonts.conf</include>
<!-- Uncomment below to enable bitmapped fonts -->
<!--
  <dir>/usr/X11R6/lib/X11/fonts</dir>
-->
<!-- Uncomment below to enable subpixel rendering -->
<!--
  <match target="font">
    <test qual="all" name="rgba">
      <const>unknown</const>
    </test>
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
  </match>
-->
<!-- Uncomment below to enable the freetype autohinter module -->
<!--
  <match target="font">
    <edit name="autohint" mode="assign">
      <bool>true</bool>
    </edit>
  </match>
-->
<!-- Disable font alias for Chinese <= 16px -->
  <match target="font">
    <test qual="any" name="family" compare="eq">
      <string>AR PL KaitiM Big5</string>
      <string>AR PL KaitiM GB</string>
      <string>AR PL Mingti2L Big5</string>
      <string>AR PL SungtiL Big5</string>
      <string>AR PL New Sung</string>
      <string>AR PL SungtiL GB</string>
      <string>Kochi Mincho</string>
      <string>Baekmuk Dotum</string>
    </test>
    <test name="pixelsize" compare="less_eq">
      <double>8</double>
    </test>
    <edit name="antialias">
      <bool>false</bool>
    </edit>
    <edit name="hinting">
      <bool>true</bool>
    </edit>
  </match>
</fontconfig>
But i don't see any differences.

Another way is to type with fonts size bigger than 16

Maybe you can post a screenshot to see how bad does it look?
DuKefeng is offline   Reply With Quote
Old April 12th, 2005   #8
jiyuu0
UbuntuGuide Guru
 
jiyuu0's Avatar
 
Join Date: Nov 2004
Location: Malaysia
Beans: 162
Re: Howto Chinese Input

added to ubuntuguide.org
http://ubuntuguide.org/#scim

only prob... seems like some chars can't be displayed in the scim
try the word 'wo' and then scroll... can see boxes (unknown chars)
jiyuu0 is offline   Reply With Quote
Old May 6th, 2005   #9
geminifire
First Cup of Ubuntu
 
Join Date: May 2005
Beans: 3
Re: Howto Chinese Input

谢谢!
geminifire is offline   Reply With Quote
Old May 7th, 2005   #10
migo
5 Cups of Ubuntu
 
Join Date: May 2005
Beans: 28
Send a message via ICQ to migo Send a message via AIM to migo Send a message via MSN to migo Send a message via Yahoo to migo
Re: HOWTO: Enable Chinese Input

Thanks, I look forward to trying this out once I get my Hoary CD
migo is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:25 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry