japanese input: let's add it to Ubuntu Starter Guide

Bengt Thuree bengt at thuree.com
Tue Apr 12 05:59:53 UTC 2005


Hej

I did find this entry in the Ubuntu Forum.
http://www.ubuntuforums.org/showthread.php?t=25412

-----
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) 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
------------------------------------------------------------------------------------------------------

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 LC_CTYPE=zh_CN.UTF-8 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

-----

/Bengt


<citat vem="Evan Monroig">
> Concerning Chinese, I have seen a package called "scim-chinese" which
> claims to be a good chinese input method. Anyone speaking chinese who
> wants to give his feedback?
>
> Thanks
>
> Evan
>
> On Apr 10, 2005 8:56 PM, Bengt Thuree <bengt at thuree.com> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi,
>>
>> This looks good, and I am wondering if anyone with Chinese (simplified)
>> could contribute with the corresponding steps to enable Chinese
>> input/output in Ubuntu? Especially, with an English default language.
>>
>> Thanks
>>
>> /Bengt
>>
>> Evan Monroig wrote:
>> > Hi,
>> >
>> > If you have tried to setup japanese input with ubuntu, you may have
>> > found the howto on Ubuntu Wiki
>> > http://www.ubuntulinux.org/wiki/JapaneseInputHowto.
>> >
>> > I thought that what was described there was quite complex, so maybe it
>> > would be a good idea to rewrite it in a easy-to-understand-way, so
>> > that it can fit in the Unofficial Ubuntu 5.04 Starter Guide
>> > (www.ubuntuguide.org).
>> >
>> > Both methods described here works for any application, including
>> > openoffice.org and without having to change LC_CTYPE or any locale
>> > parameter.
>> >
>> > What do you think?
>> >
>> > Evan
>> >
>> > ----------
>> > A) How to type Japanese in GTK applications (UIM)?
>> >
>> > 1) $ sudo apt-get install uim anthy
>> >
>> > 2) $ gedit ~/.uim
>> >
>> > 3) Insert the following lines into the new file
>> >
>> > # select anthy as default input method for uim
>> > (define default-im-name 'anthy)
>> >
>> > 4) If you have a Japanese keyboard, insert the following lines as well
>> >
>> > # To have the º~¦r¡]¥b¨¤/¥þ¨¤¡^ key change the input method (japanese
>> keyboard)
>> > (define-key anthy-on-key? '"zenkaku-hankaku")
>> > (define-key anthy-off-key? '"zenkaku-hankaku")
>> >
>> > 5) Save the file.
>> >
>> > 6) $ gedit ~/.gnomerc
>> >
>> > 7) Insert the following lines into the new file
>> >
>> > # Tells xorg to automatically use uim as X input method
>> > export XMODIFIERS=@im=uim
>> > # Tells GTK that the default input module is uim
>> > export GTK_IM_MODULE=uim
>> >
>> > 8) Save the file.
>> >
>> > 6) Read "Restart Gnome"
>> >
>> > 7) Applications -> Accessories -> Text Editor
>> >
>> > 8) SHIFT+SPACE to change between normal and Japanese input.
>> > ---------
>> >
>> > ---------
>> > B) How to type Japanese in GTK applications (SCIM)?
>> >
>> > 1) $ sudo apt-get install uim anthy scim-gtk2-immodule scim-uim
>> >
>> > 2) $ gedit ~/.gnomerc
>> >
>> > 3) Insert the following lines into the new file
>> >
>> > # Tells xorg to automatically use uim as X input method
>> > export XMODIFIERS=@im=scim
>> > # Tells GTK that the default input module is SCIM
>> > export GTK_IM_MODULE=scim
>> >
>> > 4) Read "Restart Gnome"
>> >
>> > 5) Applications -> Accessories -> Text Editor
>> >
>> > 6) CTRL+SPACE
>> >
>> > 7) A box appears. Click on the input method (biggest button) and
>> > change it to Japanese -> UIM-anthy
>> >
>> > 8) SHIFT+SPACE to change between normal and Japanese input.
>> > ---------
>> >
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.2.5 (GNU/Linux)
>> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>>
>> iD8DBQFCWRSJWJbC0XFEMq0RAvbbAJ95b2f7cgoT6AgAXGYWPeZql0vtOwCfXJ62
>> cot5e+cfEKzdDmn8bJfkD3U> =KDL8
>> -----END PGP SIGNATURE-----
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>


-- 
Bengt Thuree   bengt at thuree.com    www.thuree.com/bt





More information about the ubuntu-users mailing list