feat: 不派生中英混输词库的大些形式; close #344

This commit is contained in:
Dvel
2023-06-13 17:56:06 +08:00
parent 67979e90fe
commit 6f51bddd14
8 changed files with 2755 additions and 2741 deletions

View File

@@ -86,16 +86,19 @@ speller:
- derive/[@]//
- derive/[-]//
- derive/[_]//
# 下面带 ⓘ 的,是为了中英混输词库不派生出纯大写
# 派生无任何非字母数字字符的拼写
- derive/[^a-zA-Z0-9]//
- derive/[^a-zA-Z0-9]//
# 禁用非英文、数字开头的编码
- erase/^[\W|_].+$/
- erase/^[^a-zA-Z0-9ⓘ].+$/
# 全小写
- derive/^.+$/\L$0/
# 全大写
- derive/^.+$/\U$0/
- derive/^(?!ⓘ).+$/\U$0/
# 首字母大写
- derive/^./\U$0/
- derive/^(?!ⓘ)./\U$0/
# 前 2~10 个字母大写
- derive/^([a-z]{2})/\U$1/
- derive/^([a-z]{3})/\U$1/
@@ -106,6 +109,9 @@ speller:
- derive/^([a-z]{8})/\U$1/
- derive/^([a-z]{9})/\U$1/
- derive/^([a-z]{10})/\U$1/
# 派生中英混输词库(词库编码以ⓘ开头)
- derive/^ⓘ(.+)$/$1/
- derive/^ⓘ(.+)$/\L$1/
translator:
dictionary: melt_eng