GCIN: Difference between revisions

From OLPC
Jump to navigation Jump to search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{stub}}
{{stub}}


GCIN is a light-weighted multilingual input method written purely in GTK2. It supports both GTK im-module and Qt IM as well as traditional XIM architecture. Although the original target of this input method is for traditional Chinese users, the supported IM table architecture provides wide variety input methods including simplified Chinese, Japanese, Korean... as well as many other languages.
'''GCIN''' is a ''light-weighted'' multilingual input method written purely in GTK2. It supports both '''GTK im-module''' and '''Qt IM''' as well as traditional '''XIM''' architecture. Although the original target of this input method is for traditional Chinese users, the supported IM table architecture provides wide variety input methods including simplified Chinese, Japanese, Korean... as well as many other languages.

One unique feature of GCIN is that the author provides a pre-recorded Chinese '''text-to-speech''' function. This can help children to learn the pronunciation of the inputed Chinese characters.


== Brief history ==
== Brief history ==

Edward Der-Hua Liu has developed an X input method server XCIN (X Chinese INput) in Oct. 1994. This is widely used in Taiwan for Chinese input under X window system. The project is later later maintained by Tung-Han Hsieh and Chia-liang Kao since Feb. 1998 to further implement the standard XIM protocol. The generic table engine of XCIN is now widely adoptted in various IM program including [http://openvanilla.org/ OpenVanilla] for OSX, [[SCIM]] for Linux, etc.

The XCIN which is purely written in X lib. is considered outdated and several new IM programs start coming out including the later [http://opendesktop.org.tw/demopage/oxim/ OXIM]. As early as Jun. 2004, Edward Liu starts a new project: GCIN which is written from scratch in GTK2. Even though, GCIN supports the original generic table engine together with a re-written TSIN engine.

GCIN features in multi Locale support with single process while keeps slim and light weighted design. It also supports GTK_IM_Module and QT_IM_Module frameworks in addition to XIM. Each of these protocols can be turned off from compile time. The the Chinese centric development makes GCIN not familiar to other CJK users. GCIN does support various table IM engine for many different languages.


== Supported Languages ==
== Supported Languages ==
GCIN supports various input methods, including:
GCIN supports various input methods, including:


* 倉頡、倉頡五代、標點倉頡
* Cangjie (倉頡、倉頡五代、標點倉頡)
* 注音 (傳統選字注音、ㄅ半)
* ZhuYin (注音 (傳統選字注音、ㄅ半))
* 拼音
* PinYin (拼音)
* 詞音 (類似「自然輸入法」或「微軟新注音」的智慧選字注音)
* Tsin (詞音 (類似「自然輸入法」或「微軟新注音」的智慧選字注音))
* 智能拼音 (gcin-setup -> gcin 注音/詞音設定 -> 鍵盤排列方式 -> 聲調拼音)
* Intelligent PinYin 智能拼音 (gcin-setup -> gcin 注音/詞音設定 -> 鍵盤排列方式 -> 聲調拼音)
* 大易
* Dayi (大易)
* 行列
* Array (行列)
* 內碼 (支援 UTF-32 Big-5)
* Character encoding directly input (UTF-32 and Big-5)
* 簡易 (在香港稱為「速成輸入法」)
* Easy (簡易, 在香港稱為「速成輸入法」)
* Japanese (日文) (including kana and kanji)
* 日本式 (日文) (可輸入假名和漢字,亦可快速不選字只輸入假名)
* greek (希臘字母)
* Greek alphabets (希臘字母)
* latin-letters (拉丁字母) (可輸入法文、德文等等)
* latin-letters (拉丁字母) (for French and German... )
* 帶調粵拼
* Cantonese Pinyin (帶調粵拼)


Besides, all the table input method from SCIM are supported.
Besides, all the table input method from SCIM are supported via the "scim2tab" utility.


== Installation and Activation ==
== Installation and Activation ==
GCIN is in the official Fedora repository. One can install GCIN by simply issuing the following command:

yum install gcin


The configuration scripts in the GCIN package do not work on XO. One can copy ~olpc/.xsession-example to ~olpc/.xsession and put the following line into it. GCIN will then be activated during Sugar start-up. (~olpc/.xinitrc is obsoleted for system image beyond Build 650.)
The configuration scripts in the GCIN package do not work on XO. One can copy ~olpc/.xsession-example to ~olpc/.xsession and put the following line into it. GCIN will then be activated during Sugar start-up. (~olpc/.xinitrc is obsoleted for system image beyond Build 650.)


export XMODIFIERS=@im=GCIN
export XMODIFIERS=@im=gcin
export GTK_IM_MODULE=gcin
export GTK_IM_MODULE=gcin


Since there's no system tray in Sugar, GCIN can be invoked by pressing the Ctrl+Space hot-key. The GCIN bar will appear "over-the-spot". Different keyboard layouts can be chosen from the "gcin-setup" GUI tool from terminal. An "off-the-spot" behavior can also be chosen from "gcin-setup". One can also switch between different IM's from the context menu by right-clicking in the text area.
Since there's no system tray in Sugar, GCIN can be invoked by pressing the "Ctrl+Space" hot-key. The GCIN bar will appear "over-the-spot". Different keyboard layouts can be chosen from the "gcin-setup" GUI tool from terminal. An "off-the-spot" behavior can also be chosen from "gcin-setup" and define the position of GCIN input window. One can also switch between different IM's from the context menu by right-clicking in the text area.

Alternatively, one can use a special built package:

wget http://hep1.phys.ntu.edu.tw/~john/olpc/gcin-1.4.4-5.olpc.i386.rpm
sudo rpm -ihv gcin-1.4.4-5.olpc.i386.rpm

The modification of .xsession file will be unnecessary as it is done in the post-install script.


To activate the GCIN speech function for Chinese, one need to install an "ogg.tgz" from the author's web site. http://cle.linux.org.tw/gcin/download/ogg.tgz
To activate the GCIN speech function for Chinese, one need to install an "ogg.tgz" from the author's web site. http://cle.linux.org.tw/gcin/download/ogg.tgz
Line 42: Line 60:


== Using on XO ==
== Using on XO ==

GCIN input in Web Activity. (Off-the-spot style)
[[Image:Olpc gcin.png|600px|GCIN in action]]

See [[Media:Olpc-gcin.ogg|GCIN TTS Demo]] video or via [http://video.google.com/videoplay?docid=437057425851482889 Google video].


GCIN input in old Web Activity. (Over-the-spot style -- default)
[[Image:browser_gcin.png|600px|GCIN in action]]


GCIN configuration tool: gcin-setup. (English, Traditional/Simplified Chinese PO)
[[Image:gcin-setup.png|600px|GCIN Setup]]


== Useful Links ==
== Useful Links ==
* [http://www.csie.nctu.edu.tw/~cp76/gcin/download/ Author's website] in Chinese.
* [http://cle.linux.org.tw/gcin GCIN user group] in Chinese.
* [http://hep1.phys.ntu.edu.tw/~john/olpc/olpc_in_chinese.html Chinese on XO] in English
*[http://www.cjmember.com/ Official Cangjie Home Page]
*[http://www.cjmember.com/cj_book.htm Cangjie Method] book in English
* [[SCIM]]

Latest revision as of 01:49, 29 March 2009

This article is a stub. You can help the OLPC project by expanding it.

GCIN is a light-weighted multilingual input method written purely in GTK2. It supports both GTK im-module and Qt IM as well as traditional XIM architecture. Although the original target of this input method is for traditional Chinese users, the supported IM table architecture provides wide variety input methods including simplified Chinese, Japanese, Korean... as well as many other languages.

One unique feature of GCIN is that the author provides a pre-recorded Chinese text-to-speech function. This can help children to learn the pronunciation of the inputed Chinese characters.

Brief history

Edward Der-Hua Liu has developed an X input method server XCIN (X Chinese INput) in Oct. 1994. This is widely used in Taiwan for Chinese input under X window system. The project is later later maintained by Tung-Han Hsieh and Chia-liang Kao since Feb. 1998 to further implement the standard XIM protocol. The generic table engine of XCIN is now widely adoptted in various IM program including OpenVanilla for OSX, SCIM for Linux, etc.

The XCIN which is purely written in X lib. is considered outdated and several new IM programs start coming out including the later OXIM. As early as Jun. 2004, Edward Liu starts a new project: GCIN which is written from scratch in GTK2. Even though, GCIN supports the original generic table engine together with a re-written TSIN engine.

GCIN features in multi Locale support with single process while keeps slim and light weighted design. It also supports GTK_IM_Module and QT_IM_Module frameworks in addition to XIM. Each of these protocols can be turned off from compile time. The the Chinese centric development makes GCIN not familiar to other CJK users. GCIN does support various table IM engine for many different languages.

Supported Languages

GCIN supports various input methods, including:

   * Cangjie (倉頡、倉頡五代、標點倉頡)
   * ZhuYin (注音 (傳統選字注音、ㄅ半))
   * PinYin (拼音)
   * Tsin (詞音 (類似「自然輸入法」或「微軟新注音」的智慧選字注音))
   * Intelligent PinYin 智能拼音 (gcin-setup -> gcin 注音/詞音設定 -> 鍵盤排列方式 -> 聲調拼音)
   * Dayi (大易)
   * Array (行列)
   * Character encoding directly input (UTF-32 and Big-5)
   * Easy (簡易, 在香港稱為「速成輸入法」)
   * Japanese (日文) (including kana and kanji)
   * Greek alphabets (希臘字母)
   * latin-letters (拉丁字母) (for French and German... )
   * Cantonese Pinyin (帶調粵拼)

Besides, all the table input method from SCIM are supported via the "scim2tab" utility.

Installation and Activation

GCIN is in the official Fedora repository. One can install GCIN by simply issuing the following command:

 yum install gcin

The configuration scripts in the GCIN package do not work on XO. One can copy ~olpc/.xsession-example to ~olpc/.xsession and put the following line into it. GCIN will then be activated during Sugar start-up. (~olpc/.xinitrc is obsoleted for system image beyond Build 650.)

export XMODIFIERS=@im=gcin
export GTK_IM_MODULE=gcin

Since there's no system tray in Sugar, GCIN can be invoked by pressing the "Ctrl+Space" hot-key. The GCIN bar will appear "over-the-spot". Different keyboard layouts can be chosen from the "gcin-setup" GUI tool from terminal. An "off-the-spot" behavior can also be chosen from "gcin-setup" and define the position of GCIN input window. One can also switch between different IM's from the context menu by right-clicking in the text area.

Alternatively, one can use a special built package:

wget http://hep1.phys.ntu.edu.tw/~john/olpc/gcin-1.4.4-5.olpc.i386.rpm
sudo rpm -ihv gcin-1.4.4-5.olpc.i386.rpm

The modification of .xsession file will be unnecessary as it is done in the post-install script.

To activate the GCIN speech function for Chinese, one need to install an "ogg.tgz" from the author's web site. http://cle.linux.org.tw/gcin/download/ogg.tgz

su   # or using sudo directly for develop build
yum install vorbis-tools   # needs ogg123 for playback
tar zxvf ogg.tgz -C /usr/share/gcin/

One also need to enable from "gcin-setup" after audio files installed.

Using on XO

GCIN input in Web Activity. (Off-the-spot style) GCIN in action

See GCIN TTS Demo video or via Google video.


GCIN input in old Web Activity. (Over-the-spot style -- default) GCIN in action


GCIN configuration tool: gcin-setup. (English, Traditional/Simplified Chinese PO) GCIN Setup

Useful Links