歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 在Linux下使用Google拼音輸入法

在Linux下使用Google拼音輸入法

日期:2017/2/28 15:59:04   编辑:Linux教程

Source
Dependencies: cmake build-essential opencc mercurial

To install the dependencies, you can run:

sudo apt-get install cmake build-essential opencc mercurial ibus
這幾個軟件是編譯以下源碼所需,必須安裝。

libgooglepinyin
The library.

To compile and install the googlepinyin library, you can run:

hg clone http://code.google.com/p/libgooglepinyin/ cd libgooglepinyin mkdir build; cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr make sudo make install
ibus-googlepinyin
The ibus wrapper

To compile and install ibus-googlepinyin, you can run:

hg clone http://code.google.com/p/libgooglepinyin.ibus-wrapper/ ibus-googlepinyin cd ibus-googlepinyin mkdir build; cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr make sudo make install

--------------------------------------------------------------------------------

(如果是IBUS框架,可不安裝fcitx-googlepinyin.)

fcitx-googlepinyin
The fcitx wrapper

To compile and install fcitx-googlepinyin, you can run:

hg clone http://code.google.com/p/fcitx.fcitx-googlepinyin/ fcitx-googlepinyin cd fcitx-googlepinyin mkdir build; cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr make sudo make install

文檔中是使用命令下載源碼包,你也可以在以下網址下載他們:

http://code.google.com/p/libgooglepinyin/downloads/list

安裝之後,重啟ibus輸入法,google pinyin就會出現在添加列表裡面,選擇添加即可。

另外,安裝Ubuntu開機默認是不啟動ibus的,可以采取下面的方法實現ibus開機啟動:


方法一. System >> Administration >> Language Support
然後設置"Keyboard Input Method System"為ibus。

方法二:當然你也可以設置開機自己啟動ibus
System >> Preferences >> Startup Applications
Click the button: Add
Name: IBus daemon
Command: /usr/bin/ibus-daemon -d
Comment: start IBus daemon when Gnome starts 。

Copyright © Linux教程網 All Rights Reserved