config!: use recipe to config double_pinyin (#662)

BREAKING CHANGE: 中英混输词库由英文方案附属切换到单独的 table_translator

- 词库文件由 `cn_en*.dict.yaml` 变为 `cn_en*.txt`
- 双拼不再需要去 `melt_eng.dict.yaml` 更改引用词库
This commit is contained in:
mirtlecn
2024-02-04 20:49:51 +08:00
committed by GitHub
parent b96a716bdd
commit 0017a08e42
26 changed files with 6535 additions and 3352 deletions

View File

@@ -64,6 +64,7 @@ engine:
- lua_translator@lunar # 农历
- table_translator@custom_phrase # 自定义短语 custom_phrase.txt
- table_translator@melt_eng # 英文输入
- table_translator@cn_en # 中英混合词汇
- table_translator@radical_lookup # 部件拆字反查
- lua_translator@unicode # Unicode
- lua_translator@number_translator # 数字、金额大写
@@ -302,6 +303,18 @@ melt_eng:
- xform/.*// # 清空提示码
# 中英混合词汇
cn_en:
dictionary: ""
user_dict: en_dicts/cn_en
db_class: stabledb
enable_completion: true
enable_sentence: false
initial_quality: 1.1
comment_format:
- xform/^.+$//
# 自定义短语custom_phrase.txt
custom_phrase:
dictionary: ""