开启中文支持
sudo dpkg-reconfigure locales
选择(空格选择,tab 跳转选项,Enter确认)
- en_US ISO-8859-1
- zh_CN GB2312
- zh_CN.GBK GBK
- zh_CN.UTF-8 UTF-8
- zh_TW BIG5
- zh_TW.UTF-8 UTF-8
注意:使用该命令安装时需要将 /usr/sbin 配置到环境变量中,防止某些命令执行失败
export PATH=$PATH:/usr/sbin
安装中文引擎
推荐 rime
sudo apt-get install ibus-rime
安装完成后重启!!!
配置安装
在 Settings > Keyboard 中的 InputSources 中添加输入源, 选择 Chinese > Chinese(Rime) 即可
如果没有 rime 输入法则需要重启
安装完成后配置输入法
打开Tweaks > Keyboard & Mouse > Show Extended Input Sources
推荐 雾凇拼音
安装方式推荐 rime-auto-deploy
安装步骤 (来自github)
# 安装依赖环境
sudo apt install ruby
# 克隆仓库
git clone --depth=1 https://github.com/Mark24Code/rime-auto-deploy.git --branch latest
cd rime-auto-deploy
# 执行安装脚本
./installer.rb
脚本运行后直接选择 1 运行即可
更详细的内容请查看 rime-auto-deploy github 仓库说明
注:以上雾凇拼音配置操作请以 github 为准,本文不会持续更新,部分操作可能过时
横排配置
- ibus配置
ibus-setup
General > Font and Style > Candidates orientation 选择 Horizontal
Input Method > Add > Chinese > Rime
- ibus配置不生效后的配置(仍需上面的配置)
修改 ~/.config/ibus/build/ibus_rime.yaml
添加(只需要在style下添加该属性即可)
style:
horizontal: true
然后点击右上角输入法,选择部署即可
如遇操作没有生效,firfox无法输入则重启即可