Linux安装配置Rime
安装
清除所有fcitx软件包
shell
sudo apt purge fcitx*
安装ibus和ibus-rime
shell
sudo apt install ibus ibus-rime
启用输入法
找到输入法配置

启用ibus输入法

此时由于刚安装完毕ibus并没有启动
要么重启系统
要么输入下面的命令
shell
ibus-daemon -drx
找到ibus首选项

输入法->添加->中文->Rime

配置
rime的配置文件在
txt
~/.config/ibus/rime
共三个文件
- default.custom.yaml,配置快捷键和候选词数量
- ibus_rime.custom.yaml,配置输入样式
- luna_pinyin_simp.custom.yaml,配置输入方案,按键映射等
default
yaml
# Rime default
# encoding: utf-8
patch:
menu:
page_size: 7
switcher:
hotkeys:
- "Control+Shift+F4"
ascii_composer:
switch_key:
# 中英文切换策略
# noop - 屏蔽该按键,不做处理
# clear - 清空输入
# inline_ascii - 切换到英文输入模式,回车后提交英文并恢复中文模式
# commit_text - 提交候选的中文,并切换至英文模式
# commit_code - 提交输入的英文,并切换至英文模式
Shift_L: commit_code
Shift_R: commit_code
ibus_rime
yaml
# Ibus rime
# encoding: utf-8
patch:
style:
horizontal: true
inline_preedit: false
luna_pinyin_simp
yaml
# Rime luna pinyin simple
# encoding: utf-8
# 明月拼音-简 自定义
patch:
punctuator:
import_preset: default
full_shape:
"/": "/"
'\': '、'
"#": "#"
half_shape:
"/": "/"
'\': '、'
重启
从安装到配置,没有重启过系统,这时应该是不能使用的
所以一定要重启

会有点瑕疵,但是这已经是最好形态了

Qt程序下的输入问题
有解决方案是这样的
在/etc/profile
里添加:
bashrc
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
保存退出,source /etc/profile
没有验证过