瘦了就帅了 / Rime/中州韵 输入法安装设置

Created Fri, 19 Jan 2024 13:11:15 +0800 Modified Tue, 14 Apr 2026 08:32:46 +0000
705 Words

Rime/中州韵 输入法是一个跨平台的输入引擎,非常强大优秀。 它在不同的平台有不同的名字:

  • Linux: 中州韵 (ibus-rime, fcitx-rime, fcitx5-rime)
  • Windows: 小狼毫 (Weasel)
  • MacOS: 鼠鬚管 (Squirrel), 小企鹅 (fcitx5-macos)

东风破 (plum) 是为Rime用户设计的,用于安装和更新Rime开发者维护的默认配置数据包集合

Windows

配置输入法

  • 输入法设定>获取更多输入方案>在打开的命令行窗口
  • 输入 “wubi_pinyin” 回车

配置P站风格配色主题

# weasel.custom.yaml
patch:
  # P站风格配色主题
  "style/color_scheme": "Pornhub"  
  "preset_color_schemes/Pornhub":
    author: "周庸生"
    back_color: 0x000000
    border_color: 0x000000
    candidate_text_color: 0xffffff
    comment_text_color: 0xffffff
    hilited_back_color: 0x009bff
    hilited_candidate_back_color: 0x009bff
    hilited_candidate_text_color: 0x000000
    hilited_comment_text_color: 0x000000
    hilited_lable_color: 0x000000
    hilited_text_color: 0x000000
    label_color: 0xffffff
    name: Pornhub
    text_color: 0xffffff

Debian

安装 fcitx5

killall ibus-daemon \
&& apt remove ibus \
&& apt update \
&& apt install -y fcitx5 fcitx5-config-qt fcitx5-chinese-addons fcitx5-rime fcitx5-material-color

安装 东风破/plum/ 配置工具

# 因为fcitx5-rime是fcitx5团队代为开发的,所以要指定第三方Rime发行版本
# 注意:此命令会默认配置所有预设置项
curl -fsSL https://raw.githubusercontent.com/rime/plum/master/rime-install | rime_frontend=fcitx5-rime bash
# 更新 plum
rime_frontend=fcitx5-rime bash rime-install plum

安装 五笔拼音混合输入法

cd ~/plum/
rime_frontend=fcitx5-rime bash rime-install wubi pinyin-simp
# 也可以直接安装输入法,不配置预设置项
curl -fsSL https://raw.githubusercontent.com/rime/plum/master/rime-install | rime_frontend=fcitx5-rime bash -s -- wubi pinyin-simp

配置输入法

# ~/.local/share/fcitx5/rime/default.custom.yaml
patch:
  schema_list:
    - schema: wubi_pinyin # 只保留五笔拼音混合输入法
  "ascii_composer/switch_key/Shift_L": noop # 关闭左右Shift切换,居然操作麻烦,但可以解决按键冲突的问题
  "ascii_composer/switch_key/Shift_R": noop

可惜Linux版本无法配置自定义样式

应用

  • 系统托盘[输入法] > 切换到[中州韵] > 选择下方的[输入法名称] > 查看弹出的菜单 > 选择[重新部署]
  • 默认使用右Shift键,切换中英文输入模式
  • [Fcitx配置] >
    • [输入法] > [中州韵]配置 >
      • 取消勾选[将嵌入式预编辑文本的光标固定在开头]
      • 预编辑模式 > 选择[编辑中文本]
    • [附加组件] >
      • [经典用户界面] > 勾选[垂直候选列表]

参考文档