Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2006-03-26 04:53:49
Size: 1090
Editor: ?HJHerbert
Comment: creation
Revision 9 as of 2017-02-17 21:03:10
Size: 3823
Comment: Correct three small typos
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## HJHerbert 2006-03-26
== How to input chinese characters in gnome gdk ==
#language en
== How to input Chinese characters in gnome ==
Line 4: Line 4:
=== Installation === <<TableOfContents()>>
Line 6: Line 6:
 * Install the fonts (using Synaptic Package Manager) === Writing in Pinyin ===
Pinyin is the transcription of the spoken Chinese language in Latin characters. Each character has a tone which can be entered via the keyboard's various layers.
E.g. on a German keyboard, buttons for ' and ` are available which allows to write the second (e.g. má) and fourth tone (e.g. mà).
The first tone can be composed by holding <alt gr> + <shift> + <+> then the character (e.g. mā), the third by <alt gr> + <shift> + <ä> then the character (e.g. mǎ).
Line 8: Line 11:
xfonts-intl-chinese-1.2.1-3
xfonts-intl-chinese-
big-1.2.1-3
ttf-arphic-bkai00mp 2.10-6
ttf-arphic-bsmi00lp 2.10-6
ttf-arphic-gbsn00lp 2.11-6
ttf-arphic-gkai00mp 2.11-6
=== Fonts ===
Install the
fonts
  * D
ebPkg:ttf-arphic-bkai00mp
 * DebPkg:ttf-arphic-bsmi00lp
 * DebPkg:ttf-arphic-gbsn00lp
 * DebPkg:ttf-arphic-gkai00mp
Line 15: Line 18:
 * Install the packages uim libuim0 uim-common uim-gtk2.0 uim-prime uim-utils optionally also
  * DebPkg:xfonts-intl-chinese
  * DebPkg:xfonts-intl-chinese-big


=== using ibus ===
DebPkg:ibus is a DBus-based daemon which supports different input method modules (IMmodules) and integrates well with e.g. KDE 4, GNOME.
The documentation can be found at [[I18n/ibus]]

=== using UIM ===
 * Install the packages DebPkg:uim DebPkg:libuim0 DebPkg:uim-common DebPkg:uim-gtk2.0 DebPkg:uim-prime DebPkg:uim-utils
Line 20: Line 33:
{{{  {{{
Line 26: Line 39:
=== Setup === ==== Setup ====
Line 32: Line 45:
=== Usage === ==== Usage ====
Line 39: Line 52:
=== How not to ... === === using SCIM ===
Line 41: Line 54:
 * scim - I could not make it work .
 * freewnn-common - I could not make it work .
==== Setup ====
Install the package DebPkg:scim

The file README.Debian in /usr/share/doc/scim contains the necessary documentation.

To convert pinyin into Chinese, also add DebPkg:scim-pinyin.
Gnome-Users should also add DebPkg:scim-gtk2-immodule to make use of the the GTK IM (GTK input method).

If you are not using an US-English keyboard, your keyboard has to be defined in file ~/.scim/global. If that file does not exist, start scim in a terminal and terminate with Ctrl-C.
Check you locale LANG with the terminal command {{{locale}}}, for German it is e.g. `de_DE.utf8`.
Add the line {{{/SupportedUnicodeLocales = <your_locale>}}} to that file.

If there are many users on a system and use the same locale, you may want to consider changing the system configuration file /etc/scim/global to set the supported locale.
==== Usage ====
Just start a GTK+/GNOME program, right-click somewhere on an input field and choose "Input Methods -> SCIM Input Method" in the pop-up menu, and SCIM should automatically start if it's not started yet. Now pressing Ctrl-space should also activate SCIM and show a toolbar. You can start typing and suggestions are being made.
There are alternative ways described in the documentation mentioned above.

=== using Fcitx ===

 * Install Chinese locale

You can do this with dpkg-reconfigure:
{{{
su
# dpkg-reconfigure locales
}}}

Now choose the locale that you want to use, e.g ZN - CN - UTF8 locale.

 * Install Fcitx and pinyin input

{{{
su
# apt-get install fcitx fcitx-sunpinyin fcitx-libpinyin
}}}

 * Configure fcitx

{{{
im-config
}}}

From the menu choose fcitx.

 * Reboot or log out the user. When done you will be able to use the input.

==== Use in GNOME ====

To make fcitx work inside GNOME environment you will need to remove all the input sources from gnome-control-center, clear all the hotkeys for input methods and issue the following command to disable iBus integration:

{{{
gsettings set org.gnome.settings-daemon.plugins.keyboard active false
}}}
Line 44: Line 108:
CategoryLanguage

How to input Chinese characters in gnome

Writing in Pinyin

Pinyin is the transcription of the spoken Chinese language in Latin characters. Each character has a tone which can be entered via the keyboard's various layers. E.g. on a German keyboard, buttons for ' and ` are available which allows to write the second (e.g. má) and fourth tone (e.g. mà). The first tone can be composed by holding <alt gr> + <shift> + <+> then the character (e.g. mā), the third by <alt gr> + <shift> + <ä> then the character (e.g. mǎ).

Fonts

Install the fonts

optionally also

using ibus

ibus is a DBus-based daemon which supports different input method modules (IMmodules) and integrates well with e.g. KDE 4, GNOME. The documentation can be found at I18n/ibus

using UIM

Setup

Start uim-pref-gtk (type this in a terminal window)

change the setting for selection of chinese input from <Shift>-Space to <Ctrl>-Shift (<Alt>-Shift did not work)

Usage

Change over to chinese input with <ctrl>-Shift Select an alternate chinese character with <Ctrl>-N

To edit and enter Pinyin, add all vowels into the character palette: áéíóúàèìòùāēĩōūăĕĭŏŭǚ

using SCIM

Setup

Install the package scim

The file README.Debian in /usr/share/doc/scim contains the necessary documentation.

To convert pinyin into Chinese, also add scim-pinyin. Gnome-Users should also add scim-gtk2-immodule to make use of the the GTK IM (GTK input method).

If you are not using an US-English keyboard, your keyboard has to be defined in file ~/.scim/global. If that file does not exist, start scim in a terminal and terminate with Ctrl-C. Check you locale LANG with the terminal command locale, for German it is e.g. de_DE.utf8. Add the line /SupportedUnicodeLocales = <your_locale> to that file.

If there are many users on a system and use the same locale, you may want to consider changing the system configuration file /etc/scim/global to set the supported locale.

Usage

Just start a GTK+/GNOME program, right-click somewhere on an input field and choose "Input Methods -> SCIM Input Method" in the pop-up menu, and SCIM should automatically start if it's not started yet. Now pressing Ctrl-space should also activate SCIM and show a toolbar. You can start typing and suggestions are being made. There are alternative ways described in the documentation mentioned above.

using Fcitx

  • Install Chinese locale

You can do this with dpkg-reconfigure:

su
# dpkg-reconfigure locales

Now choose the locale that you want to use, e.g ZN - CN - UTF8 locale.

  • Install Fcitx and pinyin input

su
# apt-get install fcitx fcitx-sunpinyin fcitx-libpinyin
  • Configure fcitx

im-config

From the menu choose fcitx.

  • Reboot or log out the user. When done you will be able to use the input.

Use in GNOME

To make fcitx work inside GNOME environment you will need to remove all the input sources from gnome-control-center, clear all the hotkeys for input methods and issue the following command to disable iBus integration:

gsettings set org.gnome.settings-daemon.plugins.keyboard active false