这几天一直在倒腾Rime万象方案的词库,因为我想外挂一堆自己的邪门词库(比如颜文字之类),所以没法用它现成的,只能自己想办法取代原有的默认词库
总结:
- 在根目录下新建
custom_self.dict.yaml,然后按自己的需要在此主词库里面添加自己的字典--- name: custom_self version: "2026.07.30" sort: by_weight #字典初始排序,可选original或by_weight use_preset_vocabulary: false import_tables: #基础词库略过 - custom_dicts/names - custom_dicts/yuanshen - custom_dicts/kaomoji ... 漾出来 yang chu lai 100 珀 bo 90 wanxiang.custom.yaml替换掉原主词库patch: # 使用自定义词库 translator/dictionary: custom_self user_dict_set/dictionary: custom_self add_user_dict/dictionary: custom_self custom_phrase/user_dict: custom_self_phrase- 自定义词库内的注意事项
- 用空格分割拼音标注,用tab分隔词、拼音、词频,例如
茜特菈莉 xi te la li 100 - 不要使用格式化工具,会把header结尾的
...格式化成---导致词库整体失效 - 某些过时的AI工具会错误地生成header,请检查
sort: original这项是否正确,是original而不是origin - 还是某些过时的AI工具,会错误地让你把最后的词频设置成0,这是严重错误的,0代表极其罕见,100代表常用,完全颠倒了……
- 用空格分割拼音标注,用tab分隔词、拼音、词频,例如