Skip to main content

How to Type Chinese Word in the Raspbian?

How To Type Chinese Word In The Raspbian?

How To Type Chinese Word In The Raspbian?

Introduction

Chinese word has two kinds of stylus, including traditional and simplified. Firstly, we need to install Chinese Font. Secondly, we have to install input method utility program. Thirdly, to check Chinese type program that is able to write Chinese text. We will install two kinds of Chinese input method utility once time.

Equipment

Operation System: Raspbian (NOOBS v1.3.10)
Chinese Font: ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy ttf-arphic-uming ttf-arphic-ukai
Chinese Utility: scim scim-tables-zh scim-chewing scim-pinyin

Usage

1.. To install Chinese Font.
root@raspberrypi:/home/pi# aptitude install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy ttf-arphic-uming ttf-arphic-ukai
The following NEW packages will be installed:
 fonts-arphic-ukai fonts-arphic-uming ttf-arphic-ukai ttf-arphic-uming ttf-wqy-microhei
 ttf-wqy-zenhei xfonts-wqy
0 packages upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.4 MB of archives. After unpacking 82.7 MB will be used.
Do you want to continue? [Y/n/?]Y
Get: 1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main fonts-arphic-uming all 0.2.20080216.2-4 [7,938 kB]
Get: 2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main ttf-arphic-uming all 0.2.20080216.2-4 [10.1 kB]
Get: 3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main fonts-arphic-ukai all 0.2.20080216.2-3 [10.3 MB]
Get: 4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main ttf-wqy-microhei all 0.2.0-beta-1.1 [2,373 kB]
Get: 5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main ttf-wqy-zenhei all 0.9.45-4 [9,189 kB]
Get: 6 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xfonts-wqy all 0.9.9-5 [6,558 kB]
Get: 7 http://mirrordirector.raspbian.org/raspbian/ wheezy/main ttf-arphic-ukai all 0.2.20080216.2-3 [9,662 B]
Fetched 36.4 MB in 30s (1,198 kB/s)
Preconfiguring packages ...
Selecting previously unselected package fonts-arphic-uming.
(Reading database ... 100640 files and directories currently installed.)
Unpacking fonts-arphic-uming (from .../fonts-arphic-uming_0.2.20080216.2-4_all.deb) ...
Selecting previously unselected package ttf-arphic-uming.
Unpacking ttf-arphic-uming (from .../ttf-arphic-uming_0.2.20080216.2-4_all.deb) ...
Selecting previously unselected package fonts-arphic-ukai.
Unpacking fonts-arphic-ukai (from .../fonts-arphic-ukai_0.2.20080216.2-3_all.deb) ...
Selecting previously unselected package ttf-wqy-microhei.
Unpacking ttf-wqy-microhei (from .../ttf-wqy-microhei_0.2.0-beta-1.1_all.deb) ...
Selecting previously unselected package ttf-wqy-zenhei.
Unpacking ttf-wqy-zenhei (from .../ttf-wqy-zenhei_0.9.45-4_all.deb) ...
Selecting previously unselected package xfonts-wqy.
Unpacking xfonts-wqy (from .../xfonts-wqy_0.9.9-5_all.deb) ...
Selecting previously unselected package ttf-arphic-ukai.
Unpacking ttf-arphic-ukai (from .../ttf-arphic-ukai_0.2.20080216.2-3_all.deb) ...
Processing triggers for fontconfig ...
Setting up fonts-arphic-uming (0.2.20080216.2-4) ...
Setting up ttf-arphic-uming (0.2.20080216.2-4) ...
Setting up fonts-arphic-ukai (0.2.20080216.2-3) ...
Setting up ttf-wqy-microhei (0.2.0-beta-1.1) ...
Setting up ttf-wqy-zenhei (0.9.45-4) ...
Setting up xfonts-wqy (0.9.9-5) ...
Regenerating fonts cache... done.
Setting up ttf-arphic-ukai (0.2.20080216.2-3) …

2.. To install Chinese input method utility.
root@raspberrypi:/home/pi# aptitude install scim scim-tables-zh scim-chewing scim-pinyin
The following NEW packages will be installed:
 dialog{a} fonts-arphic-bsmi00lp fonts-arphic-gbsn00lp im-config{a} libchewing3{a}
 libchewing3-data{a} libscim8c2a{a} scim scim-chewing scim-gtk-immodule{a}
 scim-modules-socket{a} scim-modules-table{a} scim-pinyin scim-tables-zh
 ttf-arphic-bsmi00lp{a} ttf-arphic-gbsn00lp{a}
0 packages upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.8 MB of archives. After unpacking 47.5 MB will be used.
Do you want to continue? [Y/n/?]Y
Get: 1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main fonts-arphic-bsmi00lp all 2.10-12 [3,766 kB]
Get: 2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main fonts-arphic-gbsn00lp all 2.11-12 [1,722 kB]
Get: 3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libchewing3-data armhf 0.3.3-4 [1,972 kB]
Get: 4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libchewing3 armhf 0.3.3-4 [60.7 kB]
Get: 5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libscim8c2a armhf 1.4.13-5 [413 kB]
Get: 6 http://mirrordirector.raspbian.org/raspbian/ wheezy/main ttf-arphic-bsmi00lp all 2.10-12 [6,518 B]
Get: 7 http://mirrordirector.raspbian.org/raspbian/ wheezy/main ttf-arphic-gbsn00lp all 2.11-12 [6,674 B]
Get: 8 http://mirrordirector.raspbian.org/raspbian/ wheezy/main dialog armhf 1.1-20120215-2 [304 kB]
Get: 9 http://mirrordirector.raspbian.org/raspbian/ wheezy/main im-config all 0.21 [36.6 kB]
Get: 10 http://mirrordirector.raspbian.org/raspbian/ wheezy/main scim armhf 1.4.13-5 [677 kB]
Get: 11 http://mirrordirector.raspbian.org/raspbian/ wheezy/main scim-chewing armhf 0.3.4-1.2 [62.6 kB]
Get: 12 http://mirrordirector.raspbian.org/raspbian/ wheezy/main scim-modules-socket armhf 1.4.13-5 [110 kB]
Get: 13 http://mirrordirector.raspbian.org/raspbian/ wheezy/main scim-gtk-immodule armhf 1.4.13-5 [152 kB]
Get: 14 http://mirrordirector.raspbian.org/raspbian/ wheezy/main scim-modules-table armhf 0.5.9-2 [259 kB]
Get: 15 http://mirrordirector.raspbian.org/raspbian/ wheezy/main scim-pinyin armhf 0.5.91-2 [2,244 kB]
Get: 16 http://mirrordirector.raspbian.org/raspbian/ wheezy/main scim-tables-zh all 0.5.9-2 [6,035 kB]
Fetched 17.8 MB in 21s (829 kB/s)
Selecting previously unselected package fonts-arphic-bsmi00lp.
(Reading database ... 100763 files and directories currently installed.)
Unpacking fonts-arphic-bsmi00lp (from .../fonts-arphic-bsmi00lp_2.10-12_all.deb) ...
Selecting previously unselected package fonts-arphic-gbsn00lp.
Unpacking fonts-arphic-gbsn00lp (from .../fonts-arphic-gbsn00lp_2.11-12_all.deb) ...
Selecting previously unselected package libchewing3-data:armhf.
Unpacking libchewing3-data:armhf (from .../libchewing3-data_0.3.3-4_armhf.deb) ...
Selecting previously unselected package libchewing3:armhf.
Unpacking libchewing3:armhf (from .../libchewing3_0.3.3-4_armhf.deb) ...
Selecting previously unselected package libscim8c2a:armhf.
Unpacking libscim8c2a:armhf (from .../libscim8c2a_1.4.13-5_armhf.deb) ...
Selecting previously unselected package ttf-arphic-bsmi00lp.
Unpacking ttf-arphic-bsmi00lp (from .../ttf-arphic-bsmi00lp_2.10-12_all.deb) ...
Selecting previously unselected package ttf-arphic-gbsn00lp.
Unpacking ttf-arphic-gbsn00lp (from .../ttf-arphic-gbsn00lp_2.11-12_all.deb) ...
Selecting previously unselected package dialog.
Unpacking dialog (from .../dialog_1.1-20120215-2_armhf.deb) ...
Selecting previously unselected package im-config.
Unpacking im-config (from .../im-config_0.21_all.deb) ...
Selecting previously unselected package scim.
Unpacking scim (from .../scim_1.4.13-5_armhf.deb) ...
Selecting previously unselected package scim-chewing.
Unpacking scim-chewing (from .../scim-chewing_0.3.4-1.2_armhf.deb) ...
Selecting previously unselected package scim-modules-socket:armhf.
Unpacking scim-modules-socket:armhf (from .../scim-modules-socket_1.4.13-5_armhf.deb) ...
Selecting previously unselected package scim-gtk-immodule:armhf.
Unpacking scim-gtk-immodule:armhf (from .../scim-gtk-immodule_1.4.13-5_armhf.deb) ...
Selecting previously unselected package scim-modules-table.
Unpacking scim-modules-table (from .../scim-modules-table_0.5.9-2_armhf.deb) ...
Selecting previously unselected package scim-pinyin.
Unpacking scim-pinyin (from .../scim-pinyin_0.5.91-2_armhf.deb) ...
Selecting previously unselected package scim-tables-zh.
Unpacking scim-tables-zh (from .../scim-tables-zh_0.5.9-2_all.deb) ...
Processing triggers for fontconfig ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for menu ...
Processing triggers for libgtk-3-0:armhf ...
Processing triggers for libgtk2.0-0:armhf ...
Setting up fonts-arphic-bsmi00lp (2.10-12) ...
Setting up fonts-arphic-gbsn00lp (2.11-12) ...
Setting up libchewing3-data:armhf (0.3.3-4) ...
Setting up libchewing3:armhf (0.3.3-4) ...
Setting up libscim8c2a:armhf (1.4.13-5) ...
Setting up ttf-arphic-bsmi00lp (2.10-12) ...
Setting up ttf-arphic-gbsn00lp (2.11-12) ...
Setting up dialog (1.1-20120215-2) ...
Setting up im-config (0.21) ...
Setting up scim (1.4.13-5) ...
update-alternatives: using /etc/X11/xinit/xinput.d/scim to provide /etc/X11/xinit/xinput.d/ja_JP (xinput-ja_JP) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim to provide /etc/X11/xinit/xinput.d/ko_KR (xinput-ko_KR) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim to provide /etc/X11/xinit/xinput.d/zh_CN (xinput-zh_CN) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim to provide /etc/X11/xinit/xinput.d/zh_TW (xinput-zh_TW) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim to provide /etc/X11/xinit/xinput.d/zh_HK (xinput-zh_HK) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim to provide /etc/X11/xinit/xinput.d/zh_SG (xinput-zh_SG) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim-immodule to provide /etc/X11/xinit/xinput.d/ja_JP (xinput-ja_JP) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim-immodule to provide /etc/X11/xinit/xinput.d/ko_KR (xinput-ko_KR) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim-immodule to provide /etc/X11/xinit/xinput.d/zh_CN (xinput-zh_CN) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim-immodule to provide /etc/X11/xinit/xinput.d/zh_TW (xinput-zh_TW) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim-immodule to provide /etc/X11/xinit/xinput.d/zh_HK (xinput-zh_HK) in auto mode
update-alternatives: using /etc/X11/xinit/xinput.d/scim-immodule to provide /etc/X11/xinit/xinput.d/zh_SG (xinput-zh_SG) in auto mode
Setting up scim-chewing (0.3.4-1.2) ...
Setting up scim-modules-socket:armhf (1.4.13-5) ...
Setting up scim-gtk-immodule:armhf (1.4.13-5) ...
Setting up scim-modules-table (0.5.9-2) ...
Setting up scim-pinyin (0.5.91-2) ...
Setting up scim-tables-zh (0.5.9-2) ...
Processing triggers for menu …

3.. To check input Chinese words.

3.1. If you has been finished installation progress, you should log-out and then log-in again. You will find out a keyboard icon in the right-bottom corner.

3.2. To open 'leafpad'. A blank document will check input two kinds of Chinese words. To click the keyboard icon and then choice Chinese simplified → smart pinyin. You will see a status bar means that you can start to type Chinese simplified words.

3.3. To press 'z' → 'enter' key, page down once and then choice number four. The word (早) means good morning.

3.4. To check Chinese traditional words, To click the keyboard icon and then choice Chinese traditional → ZhuYin. You will see a different status bar means that you can start to type Chinese traditional.

3.5 To press 'y' → 'l' → '3' → 'enter' key continuous and then choice number one. The word (早) means good morning.

Exception

If it is not able to appear the status bar, try to use 'leafpad', I think it is some bug in this version.
I prefer to use the Chewing to type Chinese traditional and the smart pinyin to type Chinese simplified.

Acknowledge

Thank you (SCIM, Raspbian) very much for this great tool.

Popular posts from this blog

Python 日期與時間的處理

Visual Basic 6.0 (VB6) 程式語言案例學習 (10. 條碼列印程式)

寫作:波蘭文學習之旅:1-1. 波蘭文字母與發音(注音版)

Python 日期與時間的處理

Image

Visual Basic 6.0 (VB6) 程式語言案例學習 (10. 條碼列印程式)

Image

寫作:波蘭文學習之旅:1-1. 波蘭文字母與發音(注音版)

Image

數位影像處理:最佳化處理策略之快速消除扭曲演算法

Image

用10種程式語言做影像二值化(Image binarization)

Visual Basic 6.0 (VB6) 程式語言案例學習 (04. 人事考勤管理系統)

Image

Visual Basic 6.0 (VB6) 程式語言案例學習 (07. 收據列印程式)

Image

Visual Basic .Net (VB.Net) 程式語言案例學習 (06. 題庫測驗系統)

Image

Visual Basic .Net (VB.Net) 程式語言案例學習 (03. 場地預約系統)

Image

Visual Basic 6.0 (VB6) 程式語言案例學習 (11. 生產線拍照程式)

Image