By my recommendation, my new workmate He (贺) moved to Ubuntu from windows, and he was annoyed of one thing: cannot input Chinese. And I have to google again to find out the answer. This is why I wrote this list for him like people and myself.
sudo apt install fcitx fcitx-rime
im-config # and select fcitx as the input engine
sudo reboot # important!
fcitx-configtool # choose the correct input method you need
为啥用 fcitx 不用ibus呢.... 一开始我确实是用的ibus,但它老人家在 google doc 的网页里不显示候选文字框,等修复不知道要等到啥时候,我就扭头换 fcitx 了。
现在是2020年了,网上的教程大都过时了。
和 ibus-rime 一样,今天的 fcitx-rime 已经内置这个功能,只是它的默认配置没有配置这个功能。废话不说,贴上我的配置文件
~/.config/fcitx/rime/default.custom.yaml
内容如下
patch:
style:
display_tray_icon: true
horizental: false
font_point: 14
schema_list:
- schema: wubi_pinyin
- schema: pinyin_simp
ascii_composer/switch_key:
Shift_R: commit_code
Shift_L: commit_code
~/.config/fcitx/rime/wubi_pinyin.custom.yaml
内容如下:
patch:
switches:
- name: ascii_mode
reset: 0
states: [ "中文", "西文" ]
- name: full_shape
states: [ "半角", "全角" ]
- name: simplification
states: [ "汉字", "漢字" ]
simplifier/opencc_config: s2t.json
engine/filters:
- simplifier
- uniquifier
我在网上搜了半天,都没配成,灵机一动从我的 squarrel 输入法配置里直接把这俩文件 copy 过来,一部署结果就好了。
我忍受这个问题已经有快一个月了,今天打算花点时间把它解决掉。
经过一翻搜索,我发现已经有人在 ibus-rime 项目上报告了这个问题,也有人给出了解决方法。遗憾的是,那个解决方案有些含糊,我不知道需要对系统做哪些改变。
也许从源码安装能够解决问题?但我一开始走了弯路,没有认真安装文档中提到的所有依赖,毫无疑问的,编译到中间就因为缺这缺那失败了。后面我就老老实实的按照文档说明,先安装好所有的依赖,再执行 ./install.sh。然而我仍然可耻的失败了。我不知道原因....也许应该报个bug给作者。幸运的是,源码里还有一个 install-static.sh 脚本,我执行了这个脚本,结果顺利编译成功并安装。
现在我的五笔拼音也能够识别中英方式了(英文状态显示A,中文状态显示“五”),太开心了!
我是 ubuntu 18.04 (pop!os) Gnome 3 桌面,五笔拼音输入法
为方便同样用 ubuntu 18.04 的同学,我把编译前的准备工作和编译步骤列在下面:
1. 准备工作
sudo apt install cmake libboost-all-dev libibus-1.0-dev libnotify-dev libgoogle-glog-dev \
libkyotocabinet-dev libleveldb-dev libmarisa-dev libopencc-dev libyaml-cpp-dev
2. clone project and submodules:
git clone --recursive https://github.com/rime/ibus-rime.git
cd ibus-rime
# do this as normal user
./install-static.sh
3. 重启 ibus
ibus-damon -dxr
Enjoy your favorite input method!
- I successfully ran macOS High Sierra on my Ubuntu 18.04 laptop through VirtualBox. VirtualBox is great ! This article helps!
- Install Rime on macOS in five minutes
- download the zip file from GitHub, and look at the README.md, you will find another address to download the latest binary release at https://bintray.com/rime/squirrel/release/_latestVersion
- download the binary version and install it.
- go to https://github.com/rime/plum to get the
wubi
package.
git clone https://github.com/rime/plum.git
cd plum
bash rime-install wubi pinyin-simp
The last step, is creating a default.custom.yaml
file and putting it in ~/Library/Rime
directory.
the content in my default.custom.yaml is
patch:
schema_list:
- schema: wubi_pinyin
- schema: pinyin_simp