From 94e873685afae3d1fa8cd3690326414873cac432 Mon Sep 17 00:00:00 2001 From: Dvel Date: Thu, 15 Jun 2023 23:16:01 +0800 Subject: [PATCH] docs: --- double_pinyin.schema.yaml | 1 + double_pinyin_abc.schema.yaml | 1 + double_pinyin_flypy.schema.yaml | 2 + double_pinyin_mspy.schema.yaml | 1 + double_pinyin_ziguang.schema.yaml | 3 +- liangfen.dict.yaml | 2 - melt_eng.schema.yaml | 142 +++++++++++++++--------------- 7 files changed, 79 insertions(+), 73 deletions(-) diff --git a/double_pinyin.schema.yaml b/double_pinyin.schema.yaml index 6b36c85..535a4f1 100644 --- a/double_pinyin.schema.yaml +++ b/double_pinyin.schema.yaml @@ -9,6 +9,7 @@ # 全拼的自定义文本和双拼有些冲突,改成了 custom_phrase_double ,需要创建 custom_phrase_double.txt 文件。 # # 默认启用的中英混输词库是全拼的,需要在 melt_eng.dict.yaml 中修改为对应的双拼的。 +# 还需要在英文方案 melt_eng.schema.yaml 将数字的拼写规则 __include: algebra_rime_ice 改为对应的双拼。 # 方案说明 diff --git a/double_pinyin_abc.schema.yaml b/double_pinyin_abc.schema.yaml index 36c2705..13a8315 100644 --- a/double_pinyin_abc.schema.yaml +++ b/double_pinyin_abc.schema.yaml @@ -9,6 +9,7 @@ # 全拼的自定义文本和双拼有些冲突,改成了 custom_phrase_double ,需要创建 custom_phrase_double.txt 文件。 # # 默认启用的中英混输词库是全拼的,需要在 melt_eng.dict.yaml 中修改为对应的双拼的。 +# 还需要在英文方案 melt_eng.schema.yaml 将数字的拼写规则 __include: algebra_rime_ice 改为对应的双拼。 # 方案说明 diff --git a/double_pinyin_flypy.schema.yaml b/double_pinyin_flypy.schema.yaml index 952e2d9..fc9d9af 100644 --- a/double_pinyin_flypy.schema.yaml +++ b/double_pinyin_flypy.schema.yaml @@ -9,6 +9,8 @@ # 全拼的自定义文本和双拼有些冲突,改成了 custom_phrase_double ,需要创建 custom_phrase_double.txt 文件。 # # 默认启用的中英混输词库是全拼的,需要在 melt_eng.dict.yaml 中修改为对应的双拼的。 +# 还需要在英文方案 melt_eng.schema.yaml 将数字的拼写规则 __include: algebra_rime_ice 改为对应的双拼。 + # 方案说明 schema: diff --git a/double_pinyin_mspy.schema.yaml b/double_pinyin_mspy.schema.yaml index 7ec0777..fd74996 100644 --- a/double_pinyin_mspy.schema.yaml +++ b/double_pinyin_mspy.schema.yaml @@ -9,6 +9,7 @@ # 全拼的自定义文本和双拼有些冲突,改成了 custom_phrase_double ,需要创建 custom_phrase_double.txt 文件。 # # 默认启用的中英混输词库是全拼的,需要在 melt_eng.dict.yaml 中修改为对应的双拼的。 +# 还需要在英文方案 melt_eng.schema.yaml 将数字的拼写规则 __include: algebra_rime_ice 改为对应的双拼。 # 方案说明 diff --git a/double_pinyin_ziguang.schema.yaml b/double_pinyin_ziguang.schema.yaml index 4cf6f29..29dc726 100644 --- a/double_pinyin_ziguang.schema.yaml +++ b/double_pinyin_ziguang.schema.yaml @@ -9,6 +9,7 @@ # 全拼的自定义文本和双拼有些冲突,改成了 custom_phrase_double ,需要创建 custom_phrase_double.txt 文件。 # # 默认启用的中英混输词库是全拼的,需要在 melt_eng.dict.yaml 中修改为对应的双拼的。 +# 还需要在英文方案 melt_eng.schema.yaml 将数字的拼写规则 __include: algebra_rime_ice 改为对应的双拼。 # 方案说明 @@ -117,7 +118,7 @@ grammar: # 主翻译器,拼音 translator: dictionary: rime_ice # 挂载词库 rime_ice.dict.yaml - prism: double_pinyin_ziguang # 多方案共用一个词库时,为避免冲突,需要用 prism 指定一个名字。 + prism: double_pinyin_ziguang # 多方案共用一个词库时,为避免冲突,需要用 prism 指定一个名字。 contextual_suggestions: true # 开启八股文 initial_quality: 1.2 # 拼音的权重应该比英文大 preedit_format: # preedit_format 影响到输入框的显示和“Shift+回车”上屏的字符 diff --git a/liangfen.dict.yaml b/liangfen.dict.yaml index 2137fe1..2b167ce 100644 --- a/liangfen.dict.yaml +++ b/liangfen.dict.yaml @@ -14,8 +14,6 @@ sort: by_weight # max_phrase_length: 7 # min_phrase_weight: 100 ... - - 一 heng 丁 hengyi 丂 hengyi diff --git a/melt_eng.schema.yaml b/melt_eng.schema.yaml index 51d079f..d025644 100644 --- a/melt_eng.schema.yaml +++ b/melt_eng.schema.yaml @@ -2,7 +2,8 @@ # vim: set sw=2 sts=2 et: # encoding: utf-8 # -# 复制自 https://github.com/tumuyan/rime-melt,修改了一点拼写派生 +# 复制自 https://github.com/tumuyan/rime-melt,修改了拼写派生 +# 全拼和各个双拼有部分拼写规则不通用,需要修改第 50 行 __include: algebra_rime_ice 为你所使用的方案 schema: schema_id: melt_eng @@ -45,7 +46,7 @@ speller: delimiter: " '" algebra: # 根据当前所用中文方案修改 __include 的值 - # algebra_rime_ice ; algebra_flypy ; algebra_mspy ; algebra_ziguang ; algebra_double_pinyin ; algebra_double_pinyin_abc + # algebra_rime_ice | algebra_double | algebra_flypy | algebra_mspy | algebra_abc | algebra_ziguang __include: algebra_rime_ice __append: # 数字派生 @@ -60,7 +61,7 @@ speller: - derive/0/zero/ - derive/1/one/ - derive/10/ten/ - - derive/2/to/ # + - derive/2/to/ - derive/2/two/ - derive/3/three/ - derive/4/for/ @@ -126,6 +127,8 @@ punctuator: recognizer: import_preset: default +# 不通用的规则: +# 全拼 algebra_rime_ice: - derive/(?