在Linux系统上安装Rime输入法,常见的有两种底层框架:ibus和fcitx。
选择ibus
在Fedora系统中,默认安装了ibus,因此只需要再配置ibus-rime:
sudo dnf install ibus-rime
配置ibus
编辑/etc/profile(影响所有用户,需要sudo权限)或者~/.xprofile(仅影响当前用户),在文件新增:
export XMODIFIERS=@im=ibus
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
如果使用
bash作为默认shell,还可以编辑~/.bash_profile
配置ibus-rime
系统设置-键盘-输入源-添加输入源-汉语(中国)-中文(Rime),将Rime输入法添加到输入源中。
选择fcitx
安装fcitx5
sudo dnf install fcitx5 fcitx5-chinese-addons
很多教程上让安装
fcitx5-gtk和fcitx5-qt,但是目前dnf在安装fcitx5时会自动安装这两个包。
安装fcitx5-rime
sudo dnf install fcitx5-rime
配置fcitx5
编辑/etc/profile(影响所有用户,需要sudo权限)或者~/.xprofile(仅影响当前用户),在文件新增:
export XMODIFIERS=@im=fcitx5
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
如果使用
bash作为默认shell,还可以编辑~/.bash_profile
配置fcitx5-rime
打开fcitx5配置或者执行fcitx5-configtool,从左侧删除“拼音”方案,并将右侧的“rime”(或者是“中州韵”)方案添加到左侧。
导入Rime拼音方案
- 如果选择了
ibus,那么配置文件夹为~/.config/ibus/rime/ - 如果选择了
fcitx,那么配置文件夹为~/.local/share/fcitx5/rime/
选择并执行下列三种方案中的一种(其他拼音方案请独自查询并clone)【请注意最后的点.】。
下载结束后
rime文件夹下直接就是配置文件,没有其他的任何中间的文件夹。
- 雾凇拼音
git clone https://github.com/iDvel/rime-ice.git .
- 薄荷拼音
git clone https://github.com/Mintimate/oh-my-rime.git .
- 四叶草拼音
git clone https://github.com/fkxxyz/rime-cloverpinyin.git .
Top comments (0)