使用的小企鹅输入法 在~/.local/rime 下面直接拉的雾凇拼音 然后文件都没动
rime 目录下复制了一个 custom_phrase.txt 为 my_phrase.txt 然后在 txt 最下面添加了
[email protected] gmail
rime 目录新建了 default.custom.yaml
patch:
"engine/translators/+":
- table_translator@my_phrase
my_phrase:
dictionary: ""
user_dict: my_phrase # 可以修改这里,改成自己的 txt 文件
db_class: stabledb # 只读数据库,无法动态调频;设为 tabledb 可以动态调频
enable_completion: false # 补全提示
enable_sentence: false # 禁止造句
initial_quality: 99
也尝试过复制 rime_ice.schema.yaml 的 engine/translators 加入 table_translator@my_phrase 也不行
输入 gmail 自定义的邮箱没出来
如果直接修改 rime_ice.schema.yaml 文件里的 engine/translators 加入 table_translator@my_phrase 和 my_phrase 又可以
1
HeyHollis 8 天前
我用的是雾凇拼音的小鹤双拼方案。建了一个 double_pinyin_flypy.custom.yaml ,内容是
``` yaml patch: # 挂载自定义词库 translator/dictionary: rime_ice_custom # (按需选择)清空 preedit_format 中的内容,输入时显示双拼编码 translator/preedit_format: [] custom_phrase/user_dict: custom_phrases_flypy ``` 然后自定义短语写在 custom_phrases_flypy.txt 里。 |
2
kestrelBright OP @HeyHollis 我只想更改自定义短语的文件 那只需要一句 custom_phrase/user_dict: my_phrases 对吧。。。但还是无效
|
![]() |
3
orzfly 8 天前
盲猜也许你需要在 rime_ice.custom.yaml 写,而不是 default.custom.yaml 。
|
4
kestrelBright OP @orzfly 是的 直接修改原文件有效 但不利于更新
|
![]() |
5
orzfly 8 天前
@kestrelBright 可是我说的是 rime_ice.custom.yaml ,不是 rime_ice.schema.yaml
|
6
kestrelBright OP @orzfly 再加一个 custom 把 custom_phrase 项移入还是无效
|