在linux下使用Google拼音输入法

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 。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值