default.custom.yaml文件的修改
"C:\Users\xxx\AppData\Roaming\Rime\default.custom.yaml"
文件名:default.custom.yaml
customization:
distribution_code_name: Weasel
distribution_version: 0.14.3
generator: "Rime::SwitcherSettings"
modified_time: "Tue Aug 30 18:00:25 2022"
rime_version: 1.5.3
patch:
"ascii_composer/good_old_caps_lock": true
"ascii_composer/switch_key":
Caps_Lock: clear
Control_L: noop
Control_R: noop
Shift_L: commit_code
Shift_R: inline_ascii
bindings:
- {accept: "Control+space", toggle: ascii_mode, when: always}
"menu/page_size": 9
schema_list:
- {schema: luna_pinyin}
"switcher/hotkeys":
- "Control+grave"
weasel.custom.yaml文件的修改
"C:\Users\sxx\AppData\Roaming\Rime\weasel.custom.yaml"
文件名:weasel.custom.yaml
customization:
distribution_code_name: Weasel
distribution_version: 0.14.3
generator: "Weasel::UIStyleSettings"
modified_time: "Sat Aug 27 22:53:35 2022"
rime_version: 1.5.3
patch:
"style/color_scheme": starcraft
"style/display_tray_icon": true
"style/horizontal": true
"style/font_face": "Microsoft YaHei"
"style/font_point": 18
搜狗标准词库文件的导入
搜狗官网下载搜狗标准词库
https://pinyin.sogou.com/dict/detail/index/11640
"搜狗标准词库.scel"这个是.scel文件,13.4MB大小。
然后用"深蓝词库转换工具"将"搜狗标准词库.scel"文件转换为"Rime中州韵"词库适用的txt格式,编码类型选择"拼音"+"windows"。
然后将转换后的txt文件最前面加上以下内容,并将其重命名为"luna_pinyin.sogou.dict.yaml"
文件名:luna_pinyin.sogou.dict.yaml
# Rime dictionary
# encoding: utf-8
---
name: luna_pinyin.sogou
version: "2022.08.30"
sort: by_weight
use_preset_vocabulary: true
import_tables:
- luna_pinyin
...
配置:将"luna_pinyin.sogou.dict.yaml"文件移动到Rime的用户文件夹。
然后在用户文件夹新建"luna_pinyin.custom.yaml"文件,在里面输入这些
patch:
translator/dictionary: luna_pinyin.sogou
"重新部署"既可使用搜狗词库。
使用"/xx"开启快捷输入
打开:
"C:\Users\xxx\AppData\Roaming\Rime\build\luna_pinyin.schema.yaml"
文件名:luna_pinyin.schema.yaml
未修改前为:
import_preset: symbols
symbols:
"/0": ["〇", "零", "₀", "⁰", "⓪", "⓿", "0"]
修改后为:
import_preset: symbols
symbols:
"/bj": ["快捷文本1", "快捷文本2", "快捷文本3", "快捷文本4"]
"/xx": ["快捷文本5", "快捷文本6", "快捷文本7", "快捷文本8"]
"/0": ["〇", "零", "₀", "⁰", "⓪", "⓿", "0"]
记得"重新部署"。
标签:搜狗,配置文件,pinyin,custom,yaml,luna,词库 From: https://www.cnblogs.com/namevt/p/16641294.html