-
Notifications
You must be signed in to change notification settings - Fork 1
/
flypy.schema.yaml
163 lines (143 loc) · 4.15 KB
/
flypy.schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# Rime schema settings
# encoding: utf-8
schema:
schema_id: flypy
name: 小鹤音形
version: "10.9.4"
author:
- 方案设计:何海峰 <flypy@qq.com>
description: |
小鹤音形输入法
punctuator:
import_preset: default
switches:
- name: ascii_mode
reset: 0
# states: [ 中文, 英文 ]
- name: full_shape
# states: [ 半角, 全角 ]
- name: simplification
# states: [ 简, 繁 ]
reset: 0
- name: ascii_punct
# states: [ 。,, ., ]
reset: 0
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- table_translator
- lua_translator@date_translator
- lua_translator@time_translator
- table_translator@custom_phraseVD
- table_translator@custom_phraseXT
- table_translator@custom_phraseYH
- table_translator@custom_phraseQMZ
- reverse_lookup_translator
- history_translator@history
- lua_translator@calculator_translator
filters:
- simplifier
- simplifier@simplification
- uniquifier
speller:
alphabet: "abcdefghijklmnopqrstuvwxyz;'"
initials: ';abcdefghijklmnopqrstuvwxyz'
finals: "'"
#delimiter: " '"
max_code_length: 4
auto_select: true #顶字上屏
auto_select_pattern: ^;.$|^\w{4}$
auto_clear: max_length #manual|auto|max_length 空码按下一键确认清屏|空码自动清|达到最长码时后码顶上清屏
translator:
dictionary: flypy
enable_charset_filter: false
enable_sentence: false
enable_completion: false # 编码提示开关
enable_user_dict: false
disable_user_dict_for_patterns:
- "^z.*$"
history:
input: ;f
size: 1 #重复前几次上屏
initial_quality: 1 #首选
simplification:
opencc_config: s2tw.json
option_name: simplification
tips: all #简繁对照
custom_phraseVD:
dictionary: ""
user_dict: flypy_top
db_class: stabledb
enable_sentence: false
enable_completion: false
initial_quality: 0 #用户词和系统词重码 置顶
custom_phraseXT:
dictionary: ""
user_dict: flypy_sys
db_class: stabledb
enable_sentence: false
enable_completion: false
initial_quality: -1 #本表词和系统词重码居后
custom_phraseYH:
dictionary: ""
user_dict: flypy_user
db_class: stabledb
enable_sentence: false
enable_completion: false
initial_quality: -1 #用户词和系统词重码居后
custom_phraseQMZ:
dictionary: ""
user_dict: flypy_full
db_class: stabledb
enable_sentence: false
enable_completion: false
initial_quality: -1 #和系统词重码时居后
reverse_lookup:
dictionary: flypydz
comment_format:
# - xform/^/〔/
# - xform/$/〕/
- xform/ / /
key_binder:
import_preset: default #方案切换相关
bindings:
- {accept: bracketleft, send: Page_Up, when: paging} # [上翻页
- {accept: bracketright, send: Page_Down, when: has_menu} # ]下翻页
- {accept: comma, send: comma, when: paging} #注销逗号翻页
- {accept: period, send: period, when: has_menu} #注销句号翻页
- {accept: semicolon, send: 2, when: has_menu} #分号次选
# - {accept: Release+semicolon, send: semicolon, when: has_menu} #如启用此行,则分号引导符号功能无效
- {accept: Release+period, send: period, when: composing} #句号顶屏
- {accept: Release+comma, send: comma, when: composing} #逗号顶屏
- {accept: "Tab", send: Escape, when: composing}
- {accept: "Shift_R", send: Escape, when: composing}
- {accept: "Shift+space", toggle: full_shape, when: always} #切换全半角
- {accept: "Control+period", toggle: ascii_punct, when: always} #切换中英标点
- {accept: "Control+j", toggle: simplification, when: always} #切换简繁
recognizer:
import_preset: default
patterns:
#uppercase: "[A-Z][-_+.'0-9A-Za-z]*$"
uppercase: "" #中文状态大写锁定直接上屏
reverse_lookup: "[a-z`]*`+[a-z`]*"
punct: ""
expression: "^=.*$"
menu:
page_size: 5 #候选项数
style:
horizontal: true #竖排为false