技巧效率软件Rime小狼毫输入法配置指南
PythonahyRime 输入法小狼毫配置指南
一. 添加小鹤双拼
Rime 输入法
安装步骤
下载并安装小狼毫输入法。

继续安装。

添加小鹤双拼
取消全选,点击获取更多输入方案。

在弹出的 CMD 窗口输入 double-pinyin 。

关闭 CMD 窗口,然后选择小鹤双拼。

二. 小鹤双拼设置
安装的小鹤双拼输入法为繁体,打开用户文件夹,找到 double_pinyin_flypy.schema.yaml 文件,在 - name: simplification 下面添加以下一行:reset: 1

重新部署即可将默认输入设置为简体。
三. 皮肤设置
- 按 Win + R 输入
%APPDATA%/Rime 打开用户文件夹。在 weasel.custom.yaml 文件中粘贴以下代码,Photoshop 打开为英文模式。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| patch: app_options/photoshop.exe: ascii_mode: true style/+: label_format: "%s" inline_preedit: true font_point: 15 label_font_point: 15 comment_font_point: 13 horizontal: true color_scheme: wechat layout: max_height: 0 max_width: 1200 min_width: 10 margin_x: 10 margin_y: 8 candidate_spacing: 24 hilite_spacing: 6 hilite_padding: 3 hilite_padding_x: 5 corner_radius: 8 round_corner: 8 shadow_radius: 4
preset_color_schemes/+: wechat: name: "微信/Wechat" text_color: 0x424242 label_color: 0x999999 back_color: 0xFFFFFF border_color: 0xFFFFFF comment_text_color: 0x999999 candidate_text_color: 0x3c3c3c hilited_comment_text_color: 0xFFFFFF hilited_back_color: 0x79af22 hilited_text_color: 0xFFFFFF hilited_label_color: 0xFFFFFF hilited_candidate_back_color: 0x79af22 shadow_color: 0x20000000
|
2.暗色玻璃主题配置如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
patch: app_options/photoshop.exe: ascii_mode: true
style/+: label_format: "%s" inline_preedit: true font_point: 15 label_font_point: 15 comment_font_point: 13 horizontal: true color_scheme: dark_glass
layout: max_height: 0 max_width: 1200 min_width: 10 margin_x: 10 margin_y: 8 candidate_spacing: 24 hilite_spacing: 6 hilite_padding: 3 hilite_padding_x: 5 corner_radius: 10 round_corner: 10 shadow_radius: 8 border_width: 0 blur: 1
preset_color_schemes/+: dark_glass: name: "暗色玻璃" text_color: 0xCCCCCC label_color: 0x888888 back_color: 0xCC2C2C2C border_color: 0x00000000 comment_text_color: 0x888888 candidate_text_color: 0xCCCCCC hilited_text_color: 0xDDDDDD hilited_back_color: 0xE6444444 hilited_candidate_text_color: 0xDDDDDD hilited_candidate_back_color: 0xE6444444 hilited_comment_text_color: 0xAAAAAA hilited_label_color: 0xAAAAAA shadow_color: 0x40000000
|
注意:重新部署使配置生效。
四. 全局设置
- 编辑
default.custom.yaml 文件,涉及到候选词数量及选词快捷键:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| patch: schema_list: - schema: double_pinyin_flypy
menu/page_size: 9
switcher/hotkeys: - "Control+grave"
ascii_composer/good_old_caps_lock: true ascii_composer/switch_key: Caps_Lock: commit_code Control_L: noop Control_R: noop Shift_L: commit_code Shift_R: commit_code
key_binder: bindings: - { when: composing, accept: Tab, send: Shift+Right } - { when: paging, accept: minus, send: Page_Up } - { when: has_menu, accept: equal, send: Page_Down } - { when: paging, accept: comma, send: Page_Up } - { when: has_menu, accept: period, send: Page_Down } - { when: paging, accept: bracketleft, send: Page_Up } - { when: has_menu, accept: bracketright, send: Page_Down } - { when: has_menu, accept: semicolon, send: 2 } - { when: has_menu, accept: apostrophe, send: 3 } - { when: composing, accept: Shift+Tab, send: Shift+Left } - { when: composing, accept: Control+a, send: Home } - { when: composing, accept: Control+e, send: End } - { when: composing, accept: Control+g, send: Escape } - { when: composing, accept: Return, send: Escape } - { when: always, accept: F2, select: .next } - { when: always, accept: Control+Shift+2, toggle: ascii_mode } - { when: always, accept: Control+Shift+3, toggle: full_shape } - { when: always, accept: Control+Shift+4, toggle: simplification } - { when: always, accept: Control+Shift+5, toggle: extended_charset } - { when: composing, accept: Control+b, send: Left } - { when: composing, accept: Control+f, send: Right } - { when: composing, accept: Control+h, send: BackSpace }
|
五. 添加词库
1. 添加词库
自网上下载词典文件,或从零开始培养自己的词库。

注意:每次修改后需重新部署才能生效。
在小狼毫的用户文件夹下新建一个名为 dicts 的文件夹,将下载的词库放置于此。
确保字典文件命名为 *.dict.yaml。然后在用户文件夹内找到 extended.dict.yaml 的文件(如没有则自行创建),内容如下:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
--- name: extended version: "2023.03.09" sort: by_weight vocabulary: essay-zh-hans use_preset_vocabulary: true import_tables: - dicts/simp - dicts/common_words ...
|
import_tables: 下面填入自己的词库名字,用上面的举例:
1 2 3
| import_tables: - dicts/simp - dicts/common_words
|
- dicts/ + .dick.yaml 文件前面的名字,比如 simp.dict.yaml 就是 simp,至此,词库添加完成。
2. 添加自定义短语
在用户文件夹下,新建一个名为 custom_phrase.txt 的文件,格式如下:
1
| 词语名称Tab键拼音空格拼音Tab键权重,权重可以省略不写
|
示例:
1 2 3 4 5 6 7 8 9 10 11 12
|
linux.do lin
|
在 double_pinyin_flypy.schema.yaml 中引用该文件:

1 2 3 4 5 6
| translators: - punct_translator - reverse_lookup_translator - script_translator - table_translator@custom_phrase # 用户自定义词典 - lua_translator@date_translator
|
注意:确保拼音之间没有空格并使用全拼。

3. 新建字典
未使用该功能,略。
六. 同步备份
在用户文件夹下,找到 installation.yaml ,修改以下两项:

1 2
| installation_id: "MyPCRime" sync_dir: "D:\\Sync_Rime"
|
installation_id: "MyPCRime" MyPCRime是同步后自己电脑机器识别的名称,比如公司和个人就要用不同的名字以示区别。
sync_dir: "D:\\Sync_Rime" 这一行没有,要自己添加,D:\\Sync_Rime 意思就是在 D 盘创建一个叫 Sync_Rime 的备份文件夹
右键点击小狼毫输入法,选择用户资料同步,在 D:\Sync_Rime\MyPCRime 下已经能看到同步的文件了

luna_pinyin.userdb.txt 就是自己输入过的词汇
定时备份设置
- 点击 Win + S 输入任务计划程序,创建任务。

2.输入任务名称和描述。

点击触发器 - 新建

3.创建触发器,设置为每五分钟一次,无限期。

4.点击操作 - 新建
在操作中选择启动程序,程序或脚本选择 Rime 安装目录下的 WeaselDeployer.exe,参数添加 /sync。
定时备份后,请检查 luna_pinyin.userdb.txt 的更新时间以确认是否更新。
七. 遇到问题记录
1. 小狼毫无法输入中文,只能输入英文
禁用原来的小狼毫开机启动程序

然后 Win + R 输入 regedit 打开注册表
1
| HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
|
创建字符串值,名称 Shell,值为 explorer.exe,"D:\Rime\weasel-0.16.3\WeaselServer.exe"

八. 其它配置
下面几个是配置好了的,开箱即用。
雾凇拼音
白霜拼音
薄荷输入法
参考教程