ubuntu ibus+googlepinyin

来源:互联网 发布:steam mac游戏目录 编辑:程序博客网 时间:2024/05/17 08:23

1.download the package

ibus-googlepinyin-0.1.2.tar.bz2

libgooglepinyin-0.1.2.tar.bz2

2. tar file

tar jxvf  libgooglepinyin-0.1.2.tar.bz2

tar jxvf ibus-googlepinyin-0.1.2.tar.bz2


3.cmake

need to install gcc\gcc-c++\g++

apt-get install cmake-curses-gui


cd  libgooglepinyin-0.1.2

mkdir build

cd build

cmake .. -DCMAKE_INSTALL_PREFIX=/usr


error:

-- The CXX compiler identification is unknown
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!

deal with:

rm -f  CMakeCache.txt

install g++ 


cmake .. -DCMAKE_INSTALL_PREFIX=/usr

make

make install


  1. cd ibus-googlepinyin  
  2. mkdir build  
  3. cd build  
  4. cmake .. -DCMAKE_INSTALL_PREFIX=/usr  
  5. make  
  6. sudo make install 

system language support 

http://blog.csdn.net/chengfangang/article/details/8128053

前提是我的ubuntu系统已经安装了中文包,并且也在系统设置->语言支持那里,把中文拖到了第一位,可是还是不能Ctrl+空格,切换到中文输入法。


为什么呢,因为如果安装时选的语言是英语,默认是不能切换中文输入法的,需要再设置下面几步。

1.从 系统设置  ->  语言支持  在键盘输入方式系统(keyboardinput method system) 中选择 ibus  然后close。

2.右击 任务栏右上角的 键盘图表 点击  首选项(preferences

如果没有看见键盘图标的 就打开终端 输入命令 ibus-daemon -d -x -r 启动ibus,右上角就有键盘图标了。

这里不要直接选择中文。

3.点击  输入法(input method) tab 页点击 选择一个输入法 (select an input method)–>汉语 (chinese 然后选择任意一个中文输入法,点击 添加(add) 关闭(close)。

这时再按 ctrl+空格 就可以切换到 中文输入法


注意:

安装了中文支持包后,整个系统的桌面菜单等都会变成中文。ibus的google拼音,需要重启设备,而不仅仅是重启ibus。





原创粉丝点击