Skip to content

Commit

Permalink
config!: use recipe to config double_pinyin (#662)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 中英混输词库由英文方案附属切换到单独的 table_translator

- 词库文件由 `cn_en*.dict.yaml` 变为 `cn_en*.txt`
- 双拼不再需要去 `melt_eng.dict.yaml` 更改引用词库
  • Loading branch information
mirtlecn authored Feb 4, 2024
1 parent b96a716 commit 0017a08
Show file tree
Hide file tree
Showing 26 changed files with 6,535 additions and 3,352 deletions.
13 changes: 13 additions & 0 deletions double_pinyin.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ engine:
- lua_translator@lunar # 农历
- table_translator@custom_phrase # 自定义短语 custom_phrase_double.txt
- table_translator@melt_eng # 英文输入
- table_translator@cn_en # 中英混合词汇
- table_translator@radical_lookup # 部件拆字反查
- lua_translator@unicode # Unicode
- lua_translator@number_translator # 数字、金额大写
Expand Down Expand Up @@ -208,6 +209,18 @@ melt_eng:
- xform/.*// # 清空提示码


# 中英混合词汇
cn_en:
dictionary: ""
user_dict: en_dicts/cn_en_double_pinyin
db_class: stabledb
enable_completion: true
enable_sentence: false
initial_quality: 1.1
comment_format:
- xform/^.+$//


# 自定义短语
custom_phrase:
dictionary: ""
Expand Down
13 changes: 13 additions & 0 deletions double_pinyin_abc.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ engine:
- lua_translator@lunar # 农历
- table_translator@custom_phrase # 自定义短语 custom_phrase_double.txt
- table_translator@melt_eng # 英文输入
- table_translator@cn_en # 中英混合词汇
- table_translator@radical_lookup # 部件拆字反查
- lua_translator@unicode # Unicode
- lua_translator@number_translator # 数字、金额大写
Expand Down Expand Up @@ -211,6 +212,18 @@ melt_eng:
- xform/.*// # 清空提示码


# 中英混合词汇
cn_en:
dictionary: ""
user_dict: en_dicts/cn_en_abc
db_class: stabledb
enable_completion: true
enable_sentence: false
initial_quality: 1.1
comment_format:
- xform/^.+$//


# 自定义短语
custom_phrase:
dictionary: ""
Expand Down
13 changes: 13 additions & 0 deletions double_pinyin_flypy.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ engine:
- lua_translator@lunar # 农历
- table_translator@custom_phrase # 自定义短语 custom_phrase_double.txt
- table_translator@melt_eng # 英文输入
- table_translator@cn_en # 中英混合词汇
- table_translator@radical_lookup # 部件拆字反查
- lua_translator@unicode # Unicode
- lua_translator@number_translator # 数字、金额大写
Expand Down Expand Up @@ -208,6 +209,18 @@ melt_eng:
- xform/.*// # 清空提示码


# 中英混合词汇
cn_en:
dictionary: ""
user_dict: en_dicts/cn_en_flypy
db_class: stabledb
enable_completion: true
enable_sentence: false
initial_quality: 1.1
comment_format:
- xform/^.+$//


# 自定义短语
custom_phrase:
dictionary: ""
Expand Down
13 changes: 13 additions & 0 deletions double_pinyin_mspy.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ engine:
- lua_translator@lunar # 农历
- table_translator@custom_phrase # 自定义短语 custom_phrase_double.txt
- table_translator@melt_eng # 英文输入
- table_translator@cn_en # 中英混合词汇
- table_translator@radical_lookup # 部件拆字反查
- lua_translator@unicode # Unicode
- lua_translator@number_translator # 数字、金额大写
Expand Down Expand Up @@ -212,6 +213,18 @@ melt_eng:
- xform/.*// # 清空提示码


# 中英混合词汇
cn_en:
dictionary: ""
user_dict: en_dicts/cn_en_mspy
db_class: stabledb
enable_completion: true
enable_sentence: false
initial_quality: 1.1
comment_format:
- xform/^.+$//


# 自定义短语
custom_phrase:
dictionary: ""
Expand Down
13 changes: 13 additions & 0 deletions double_pinyin_sogou.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ engine:
- lua_translator@date_translator # 时间、日期、星期
- lua_translator@lunar # 农历
- table_translator@custom_phrase # 自定义短语 custom_phrase_double.txt
- table_translator@cn_en # 中英混合词汇
- table_translator@melt_eng # 英文输入
- table_translator@radical_lookup # 部件拆字反查
- lua_translator@unicode # Unicode
Expand Down Expand Up @@ -212,6 +213,18 @@ melt_eng:
- xform/.*// # 清空提示码


# 中英混合词汇
cn_en:
dictionary: ""
user_dict: en_dicts/cn_en_sogou
db_class: stabledb
enable_completion: true
enable_sentence: false
initial_quality: 1.1
comment_format:
- xform/^.+$//


# 自定义短语
custom_phrase:
dictionary: ""
Expand Down
13 changes: 13 additions & 0 deletions double_pinyin_ziguang.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ engine:
- lua_translator@lunar # 农历
- table_translator@custom_phrase # 自定义短语 custom_phrase_double.txt
- table_translator@melt_eng # 英文输入
- table_translator@cn_en # 中英混合词汇
- table_translator@radical_lookup # 部件拆字反查
- lua_translator@unicode # Unicode
- lua_translator@number_translator # 数字、金额大写
Expand Down Expand Up @@ -210,6 +211,18 @@ melt_eng:
- xform/.*// # 清空提示码


# 中英混合词汇
cn_en:
dictionary: ""
user_dict: en_dicts/cn_en_ziguang
db_class: stabledb
enable_completion: true
enable_sentence: false
initial_quality: 1.1
comment_format:
- xform/^.+$//


# 自定义短语
custom_phrase:
dictionary: ""
Expand Down
Loading

1 comment on commit 0017a08

@tshu-w
Copy link

@tshu-w tshu-w commented on 0017a08 Jun 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

与官方双拼不一致的特殊algebra应该也不需要了?即使用 ⓆⓌⓇⓉⓎⓊⒾⓄⓅⓈⒹⒻⒼⒽⓂⒿⒸⓀⓁⓏⓍⓋⒷⓃ

algebra:
- erase/^xx$/
- derive/^([jqxy])u$/$1v/
- derive/^([aoe].*)$/o$1/
- xform/^([ae])(.*)$/$1$1$2/
- xform/iu$/Ⓠ/
- xform/[iu]a$/Ⓦ/
- xform/er$|[uv]an$/Ⓡ/
- xform/[uv]e$/Ⓣ/
- xform/v$|uai$/Ⓨ/
- xform/^sh/Ⓤ/
- xform/^ch/Ⓘ/
- xform/^zh/Ⓥ/
- xform/uo$/Ⓞ/
- xform/[uv]n$/Ⓟ/
- xform/(.)i?ong$/$1Ⓢ/
- xform/[iu]ang$/Ⓓ/
- xform/(.)en$/$1Ⓕ/
- xform/(.)eng$/$1Ⓖ/
- xform/(.)ang$/$1Ⓗ/
- xform/ian$/Ⓜ/
- xform/(.)an$/$1Ⓙ/
- xform/iao$/Ⓒ/
- xform/(.)ao$/$1Ⓚ/
- xform/(.)ai$/$1Ⓛ/
- xform/(.)ei$/$1Ⓩ/
- xform/ie$/Ⓧ/
- xform/ui$/Ⓥ/
- derive/Ⓣ$/Ⓥ/
- xform/(.)ou$/$1Ⓑ/
- xform/in$/Ⓝ/
- xform/ing$/;/
- xlit/ⓆⓌⓇⓉⓎⓊⒾⓄⓅⓈⒹⒻⒼⒽⓂⒿⒸⓀⓁⓏⓍⓋⒷⓃ/qwrtyuiopsdfghmjcklzxvbn/

#332
rime/rime-double-pinyin#13

Please sign in to comment.