Skip to content

Commit

Permalink
普通模式也支持一部分自动上屏。例如 “zmhu”可以自动上屏“怎么回事”
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboolic committed Jun 16, 2024
1 parent ab1b9a0 commit dd3bec6
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 41 deletions.
4 changes: 2 additions & 2 deletions custom_phrase/custom_phrase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
同时 t 2
特别是 t 1
已经 y 2
也不是 y 1
有没有 y 1
什么 u 2
是不是 u 1
差点 i 2
Expand Down Expand Up @@ -81,7 +81,7 @@
只是 v 2
准不准 v 1
不是 b 2
不一定 b 1
不知道 b 1
那么 n 2
能不能 n 1
没有 m 2
Expand Down
35 changes: 24 additions & 11 deletions flypy_flypy.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ __include: moqi.yaml:/punctuator # 标点
__include: moqi.yaml:/guide # 引导前缀配置

speller:
max_code_length: 5
# table_translator翻译器,支持自动上屏。例如 “zmhu”可以自动上屏“怎么回事”
auto_select: true
auto_select_pattern: ^[a-z]+/|^[a-df-zA-DF-Z]\w{3}|^e\w{4}
# 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA[/|
# initials 定义仅作为始码的按键,排除 ` 让单个的 ` 可以直接上屏
Expand Down Expand Up @@ -79,20 +83,26 @@ speller:

- derive|^(.+)[[](\w)(\w)$|$1| # 纯双拼的情况
- derive|^(.+)[[](\w)(\w)$|$1$2| # 双拼+一位辅助码的情况
- derive|^(.+)[[](\w)(\w)$|$1[$2| # 双拼+[一位辅助码的情况
- abbrev|^(.+)[[](\w)(\w)$|$1$2$3| # 双拼+2位辅助码的情况,abbrev类型不可以整句内输入2位辅助码,必须加o或/
- derive|^(.+)[[](\w)(\w)$|$1$2$3o| # 整句模式下,输入syffo 出单字 增强单字性能
- derive|^(.+)[[](\w)(\w)$|$1$2$3/| # 整句模式下,输入syff/ 出单字 增强单字性能
# - derive/[[]// ## 取消注释后:直接引导2位辅助码;否则只能引导1位辅助码或者2位辅助码加/

## 飞键 可选择性开启
# - derive/^([yh])j/$1q/
# - derive/^qx/qw/
- derive/^([y])j/$1f/
- derive/^qx/qw/
- derive/^xq/xo/
- derive/^qq/qo/
- derive/^ww/wi/
- derive/^y([a-df-qs-z])/e$1/ # y -> e互击
- derive/^j([a-twyz])/f$1/ # j -> f互击
# - derive/^jn/jv/
# - derive/^mn/mv/
# - derive/^jm/jz/
# - derive/^([y])h/$1g/
- derive/^([y])h/$1g/
# - derive/^([rgv])f/$1m/
# - derive/^([rgv])c/$1n/
- derive/^([rgv])c/$1n/

user_dict_set:
dictionary: flypy_flypy.extended
Expand Down Expand Up @@ -197,15 +207,18 @@ key_binder:


- { match: "[a-z]{1,3}", accept: Tab, send_sequence: "/1" }
- { match: "[a-z]{1,3}", accept: "/", send_sequence: "/1" }
- { match: "[a-z]{1,3}", accept: ".", send_sequence: "/1" }
# - { when: composing, match: "[a-z]{2}", accept: Tab, send: '|' }


## 对以下4行取消注释后:启用光标回退至特定音节后、补充辅助码的功能
## (自然码等其他双拼用户请在 pinyin_switch.yaml 中设置)
#- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}[' }
#- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}[' }
#- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}[' }
#- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
## 启用光标回退至特定音节后、补充辅助码的功能。补充完辅助码后,可以再按一次tab回到整句检查
- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}[' }
- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+5, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+6, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+7, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }

# 启用語言模型
#__include: moqi:/octagram/enable_for_sentence
Expand Down
36 changes: 27 additions & 9 deletions moqi_ms.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ __include: moqi.yaml:/punctuator # 标点
__include: moqi.yaml:/guide # 引导前缀配置

speller:
max_code_length: 5
# table_translator翻译器,支持自动上屏。例如 “zmhu”可以自动上屏“怎么回事”
auto_select: true
auto_select_pattern: ^[a-z]+/|^[a-df-zA-DF-Z]\w{3}|^e\w{4}
# 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA[/|;
# initials 定义仅作为始码的按键,排除 ` 让单个的 ` 可以直接上屏
Expand Down Expand Up @@ -67,6 +71,7 @@ speller:

- derive|^(.+)[[](\w)(\w)$|$1| # 纯双拼的情况
- derive|^(.+)[[](\w)(\w)$|$1$2| # 双拼+一位辅助码的情况
- derive|^(.+)[[](\w)(\w)$|$1[$2| # 双拼+[一位辅助码的情况
- abbrev|^(.+)[[](\w)(\w)$|$1$2$3| # 双拼+2位辅助码的情况,abbrev类型不可以整句内输入2位辅助码,必须加o或/
- derive|^(.+)[[](\w)(\w)$|$1$2$3o| # 整句模式下,输入syffo 出单字 增强单字性能
- derive|^(.+)[[](\w)(\w)$|$1$2$3/| # 整句模式下,输入syff/ 出单字 增强单字性能
Expand Down Expand Up @@ -156,14 +161,27 @@ key_binder:


- { match: "[a-z]{1,3}", accept: Tab, send_sequence: "/1" }
- { match: "[a-z]{1,3}", accept: "/", send_sequence: "/1" }
- { match: "[a-z]{1,3}", accept: ".", send_sequence: "/1" }
# - { when: composing, match: "[a-z]{2}", accept: Tab, send: '|' }


## 对以下4行取消注释后:启用光标回退至特定音节后、补充辅助码的功能
#- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}[' }
#- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}[' }
#- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}[' }
#- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }



## 启用光标回退至特定音节后、补充辅助码的功能。补充完辅助码后,可以再按一次tab回到整句检查
- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}[' }
- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+5, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+6, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+7, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }

# 启用語言模型
# __include: moqi:/octagram/enable_for_sentence

# 3码出简让全
custom_phrase_3_code:
dictionary: ""
user_dict: custom_phrase/custom_phrase_3_code
db_class: stabledb
enable_sentence: false
enable_completion: false
initial_quality: 1 #本表词和系统词重码居后
36 changes: 27 additions & 9 deletions moqi_sogou.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ __include: moqi.yaml:/punctuator # 标点
__include: moqi.yaml:/guide # 引导前缀配置

speller:
max_code_length: 5
# table_translator翻译器,支持自动上屏。例如 “zmhu”可以自动上屏“怎么回事”
auto_select: true
auto_select_pattern: ^[a-z]+/|^[a-df-zA-DF-Z]\w{3}|^e\w{4}
# 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA[/|;
# initials 定义仅作为始码的按键,排除 ` 让单个的 ` 可以直接上屏
Expand Down Expand Up @@ -72,6 +76,7 @@ speller:

- derive|^(.+)[[](\w)(\w)$|$1| # 纯双拼的情况
- derive|^(.+)[[](\w)(\w)$|$1$2| # 双拼+一位辅助码的情况
- derive|^(.+)[[](\w)(\w)$|$1[$2| # 双拼+[一位辅助码的情况
- abbrev|^(.+)[[](\w)(\w)$|$1$2$3| # 双拼+2位辅助码的情况,abbrev类型不可以整句内输入2位辅助码,必须加o或/
- derive|^(.+)[[](\w)(\w)$|$1$2$3o| # 整句模式下,输入syffo 出单字 增强单字性能
- derive|^(.+)[[](\w)(\w)$|$1$2$3/| # 整句模式下,输入syff/ 出单字 增强单字性能
Expand Down Expand Up @@ -161,14 +166,27 @@ key_binder:


- { match: "[a-z]{1,3}", accept: Tab, send_sequence: "/1" }
- { match: "[a-z]{1,3}", accept: "/", send_sequence: "/1" }
- { match: "[a-z]{1,3}", accept: ".", send_sequence: "/1" }
# - { when: composing, match: "[a-z]{2}", accept: Tab, send: '|' }


## 对以下4行取消注释后:启用光标回退至特定音节后、补充辅助码的功能
#- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}[' }
#- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}[' }
#- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}[' }
#- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }



## 启用光标回退至特定音节后、补充辅助码的功能。补充完辅助码后,可以再按一次tab回到整句检查
- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}[' }
- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+5, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+6, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+7, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }

# 启用語言模型
# __include: moqi:/octagram/enable_for_sentence

# 3码出简让全
custom_phrase_3_code:
dictionary: ""
user_dict: custom_phrase/custom_phrase_3_code
db_class: stabledb
enable_sentence: false
enable_completion: false
initial_quality: 1 #本表词和系统词重码居后
4 changes: 2 additions & 2 deletions moqi_xh.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ speller:
## 飞键 可选择性开启
- derive/^([y])j/$1f/
- derive/^qx/qw/
- derive/^xq/xo/
- derive/^qq/qo/
- derive/^ww/wi/

- derive/^y([a-df-qs-z])/e$1/ # y -> e互击
- derive/^j([a-twyz])/f$1/ # j -> f互击
# - derive/^jn/jv/
Expand Down Expand Up @@ -191,7 +191,7 @@ key_binder:
- { when: composing, accept: Control+7, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }

# 启用語言模型
__include: moqi:/octagram/enable_for_sentence
# __include: moqi:/octagram/enable_for_sentence

# 3码出简让全
custom_phrase_3_code:
Expand Down
23 changes: 15 additions & 8 deletions moqi_zrm.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ __include: moqi.yaml:/punctuator # 标点
__include: moqi.yaml:/guide # 引导前缀配置

speller:
max_code_length: 5
# table_translator翻译器,支持自动上屏。例如 “zmhu”可以自动上屏“怎么回事”
auto_select: true
auto_select_pattern: ^[a-z]+/|^[a-df-zA-DF-Z]\w{3}|^e\w{4}
# 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA[/|
# initials 定义仅作为始码的按键,排除 ` 让单个的 ` 可以直接上屏
Expand Down Expand Up @@ -64,6 +68,7 @@ speller:

- derive|^(.+)[[](\w)(\w)$|$1| # 纯双拼的情况
- derive|^(.+)[[](\w)(\w)$|$1$2| # 双拼+一位辅助码的情况
- derive|^(.+)[[](\w)(\w)$|$1[$2| # 双拼+[一位辅助码的情况
- abbrev|^(.+)[[](\w)(\w)$|$1$2$3| # 双拼+2位辅助码的情况,abbrev类型不可以整句内输入2位辅助码,必须加o或/
- derive|^(.+)[[](\w)(\w)$|$1$2$3o| # 整句模式下,输入syffo 出单字 增强单字性能
- derive|^(.+)[[](\w)(\w)$|$1$2$3/| # 整句模式下,输入syff/ 出单字 增强单字性能
Expand Down Expand Up @@ -155,16 +160,18 @@ key_binder:


- { match: "[a-z]{1,3}", accept: Tab, send_sequence: "/1" }
- { match: "[a-z]{1,3}", accept: "/", send_sequence: "/1" }
- { match: "[a-z]{1,3}", accept: ".", send_sequence: "/1" }
# - { when: composing, match: "[a-z]{2}", accept: Tab, send: '|' }


## 对以下4行取消注释后:启用光标回退至特定音节后、补充辅助码的功能
#- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}[' }
#- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}[' }
#- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}[' }
#- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }


## 启用光标回退至特定音节后、补充辅助码的功能。补充完辅助码后,可以再按一次tab回到整句检查
- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}[' }
- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+5, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+6, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+7, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }

# 启用語言模型
#__include: moqi:/octagram/enable_for_sentence

0 comments on commit dd3bec6

Please sign in to comment.