Skip to content

Commit

Permalink
稍微增強 speller algebra 對特殊音碼編碼的兼容性
Browse files Browse the repository at this point in the history
如 mspy 中的 ing 爲 ;
  • Loading branch information
ksqsf committed Dec 21, 2023
1 parent 7ef9e83 commit 2fa65e0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions moran.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ speller:
alphabet: abcdefghijklmnopqrstuvwxyz
delimiter: " '"
algebra:
- derive/^(\w+);(\w)(\w)$/$1$2$3o/ # 全碼 YYXXo
- abbrev/^(\w+);(\w)(\w)$/$1$2$3/ # 降低 YYXX 優先級
- derive/^(\w+);(\w)(\w)$/$1$2/ # 構詞可以用 YYX
- derive/^(\w+);(\w)(\w)$/$1/ # 構詞可以用 YY
- derive/^(.+);(\w)(\w)$/$1$2$3o/ # 全碼 YYXXo
- abbrev/^(.+);(\w)(\w)$/$1$2$3/ # 降低 YYXX 優先級
- derive/^(.+);(\w)(\w)$/$1$2/ # 構詞可以用 YYX
- derive/^(.+);(\w)(\w)$/$1/ # 構詞可以用 YY
#- abbrev/^([a-z]).+$/$1/ # 首字母簡拼(※ 嚴重影響出字速度,不建議開啓)

ascii_composer:
Expand Down
2 changes: 1 addition & 1 deletion moran_aux.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ speller:
alphabet: abcdefghijklmnopqrstuvwxyz
delimiter: " '"
algebra:
- derive/^(\w*);(\w)(\w)$/$1/ # 構詞可以用 YY
- derive/^(.*);(\w)(\w)$/$1/ # 構詞可以用 YY

ascii_composer:
switch_key:
Expand Down
16 changes: 8 additions & 8 deletions moran_reverse.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ translator:
speller:
alphabet: abcdefghijklmnopqrstuvwxyz
algebra:
- derive/^(\w)(\w);(\w)(\w)$/\1\2\3\4/
- derive/^(\w)(\w);(\w)(\w)$/\1\2`/
- derive/^(\w)(\w);(\w)(\w)$/\1\2``/
- derive/^(\w)(\w);(\w)(\w)$/\1\2\3`/
- derive/^(\w)(\w);(\w)(\w)$/\1\2`\4/
- derive/^(\w)(\w);(\w)(\w)$/``\3\4/
- derive/^(\w)(\w);(\w)(\w)$/``\3/
- derive/^(\w)(\w);(\w)(\w)$/```\4/
- derive/^(.)(.);(\w)(\w)$/\1\2\3\4/
- derive/^(.)(.);(\w)(\w)$/\1\2`/
- derive/^(.)(.);(\w)(\w)$/\1\2``/
- derive/^(.)(.);(\w)(\w)$/\1\2\3`/
- derive/^(.)(.);(\w)(\w)$/\1\2`\4/
- derive/^(.)(.);(\w)(\w)$/``\3\4/
- derive/^(.)(.);(\w)(\w)$/``\3/
- derive/^(.)(.);(\w)(\w)$/```\4/
8 changes: 4 additions & 4 deletions moran_sentence.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ speller:
alphabet: abcdefghijklmnopqrstuvwxyz
delimiter: " '"
algebra:
- derive/^(\w*);(\w)(\w)$/$1$2$3o/ # 全碼 YYXXo
- abbrev/^(\w*);(\w)(\w)$/$1$2$3/ # 全碼 YYXX,優先級更低
- derive/^(\w*);(\w)(\w)$/$1$2/ # 構詞可以用 YYX
- derive/^(\w*);(\w)(\w)$/$1/ # 構詞可以用 YY
- derive/^(.*);(\w)(\w)$/$1$2$3o/ # 全碼 YYXXo
- abbrev/^(.*);(\w)(\w)$/$1$2$3/ # 全碼 YYXX,優先級更低
- derive/^(.*);(\w)(\w)$/$1$2/ # 構詞可以用 YYX
- derive/^(.*);(\w)(\w)$/$1/ # 構詞可以用 YY
#- abbrev/^([a-z]).+$/$1/ # 首字母簡拼(※ 嚴重影響出字速度,在簡詞完善後可能關閉)

ascii_composer:
Expand Down

0 comments on commit 2fa65e0

Please sign in to comment.