-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbepemefeve_shuennwey.schema.yaml
200 lines (178 loc) · 6 KB
/
bepemefeve_shuennwey.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# Rime schema
# encoding: utf-8
schema:
schema_id: &schema_id bepemefeve_shuennwey
name: ㄅㄆㄇㄈㄪ:順位式
version: '2024.09.12'
author:
- 抱豹 <[email protected]>
description: |
老國音注音輸入方案,碼表以注音字母記錄
1QAZ ㄅㄆㄇㄈ
2WSX ㄉㄊㄋㄌ
3EDC ㄍㄎㄫㄏ
4RFV ㄐㄑㄬㄒ
5TGB ㄓㄔㄕㄖ
6YHN ㄗㄘㄙㄦ /* 「ㄦ」跟「ㄖ」在各種拼音方案中經常會共用同字母R,所以放在相鄰位置 */
7UJM ㄧㄨㄩㄪ /* 「ㄪ」雖然不算介母,但只與「ㄟ」相拼,與「ㄨ」有關,所以放在同一列 */
8IK, ㄚㄛㄜㄝ
9OL. ㄞㄟㄠㄡ
0P;/ ㄢㄣㄤㄥ
/* ㄪ、ㄦ兩母不依照字母表順序排列 */
'[-=] 陰陽上去入 /* 按鍵位置如「四聲點法」*/
/* 陰平聲與輕音共用按鍵`'`,標在字尾爲陰平聲,標在字頭爲輕音 */
不同於通常的注音輸入法,本輸入方案以【空格鍵】或 大寫`QWERTYUIOP`鍵 選詞,以`]`和`\`鍵換頁,
而【回車鍵】用於直接輸入拉丁字母、數字等ASCII字符(毋須切換模式)
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
states: [ 漢字, 汉字 ]
- name: ascii_punct
states: [ 。,, ., ]
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@custom_phrase
- reverse_lookup_translator
- script_translator
filters:
- simplifier
- uniquifier
menu:
alternative_select_keys: "QWERTYUIOP" #"ABCDEFGHIJ"
speller:
alphabet: "1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik,9ol.0p;/'[-=]"
initials: "1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik,9ol.0p;/'"
finals: "'[-=]"
delimiter: "_"
use_space:
algebra:
- xform/^([^·]*[^ˊˇˋ˙])$/$1ˉ/
- xform/^·(.*)$/$1·/
- 'xlit|ㄅㄆㄇㄈㄪㄉㄊㄋㄌㄍㄎㄫㄏㄐㄑㄬㄒㄓㄔㄕㄖㄗㄘㄙㄧㄨㄩㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦ·ˉˊˇˋ˙|bpmfVdtnlgkQhjqJxZCSrzcsiuvaoeEAIOUMNKGR012345|'
- derive/([bpmfVdtnlgkQhjqJxZCSrzcs])([iuv])/$2$1/
- derive/([iuv])([aoeEAIOUMNKGR])/$2$1/
- derive/([bpmfVdtnlgkQhjqJxZCSrzcs])([aoeEAIOUMNKGR])/$2$1/
- derive/([bpmfVdtnlgkQhjqJxZCSrzcs])([iuv])/$2$1/
- abbrev/^([bpmfVdtnlgkQhjqJxZCSrzcs]).+$/$1/
- abbrev/^([A-Za-z]+)\d$/$1/
- abbrev/^([bpmfVdtnlgkQhjqJxZCSrzcs]).+(\d)$/$1$2/
- xform/^(.*)0/1$1/
- "xlit|bpmfdtnlgkQhjqJxZCSrzcsRiuvVaoeEAIOUMNKG12345|1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik,9ol.0p;/'[-=]|"
translator:
dictionary: bepemefeve
prism: *schema_id
spelling_hints: 5 # ~字以內候選標註完整帶調拼音
preedit_format:
- "xlit|1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik,9ol.0p;/'[-=]|ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄫㄏㄐㄑㄬㄒㄓㄔㄕㄖㄗㄘㄙㄦㄧㄨㄩㄪㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥˉˊˇˋ˙|"
- xform/(^|_)ˉ/$1·/ # 輕音
- "xform/_/ /" # en space
comment_format:
- "xform/([^ˊˇˋ˙])$/$1 /"
- "xform/_/ /" # en space
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1
punctuator:
full_shape:
" " : { commit: " " }
"`" : `
"~" : ~
"<" : { commit: "," }
">" : { commit: "。" }
"?" : [ ?, /, ÷, ¿, ⸮, ⧸, ⁄ ]
":" : [ :, ; ]
"\"" : [ “, ”, ‘, ’, ʻ ]
"\\" : [ 、, ., ・, \, ،, ¶ ]
"|" : [ |, ·, ¦, ‖ ]
"!" : [ !, ¡, ‽, ¹ ]
"@" : [ 〃, ² ]
"#" : [ •, №, §, ※, ³ ]
"%" : [ %, ‰, ‱, °, ⁴, ′, ″, ‴, ℃, ℉ ]
"$" : [ ¥, €, £, ¥, ⁵, ¢, ¤ ]
"^" : [ ……, ⋯, ᠁, ⁶, ฯ ]
"&" : [ &, ⁷]
"*" : [ *, ×, ‧, ❂, ⁸, □ ]
"(" : [ (, "<", «, ‹, 〔, ⁹ ]
")" : [ ), ">", », ›, 〕, ⁰ ]
"_" : [ ——, ‾, ﹏, _ ]
"-" : [ -, ‐, − ]
"+" : [ +, ±, ∓ ]
"=" : [ = ]
"[" : [ 「, 【, 《, [ ]
"]" : [ 」, 】, 》, ] ]
"{" : [ 『, 〖, 〈, { ]
"}" : [ 』, 〗, 〉, } ]
half_shape:
"`" : "`"
"~" : "~"
"<" : { commit: "," }
">" : { commit: "。" }
"?" : [ ?, /, ÷, ¿, ⸮, ⧸, ⁄ ]
":" : [ :, ; ]
"\"" : [ “, ”, ‘, ’, ʻ ]
"\\" : [ 、, ., ・, \, ،, ¶ ]
"|" : [ |, ·, ¦, ‖ ]
"!" : [ !, ¡, ‽, ¹ ]
"@" : [ 〃, ² ]
"#" : [ •, №, §, ※, ³ ]
"%" : [ %, ‰, ‱, °, ⁴, ′, ″, ‴, ℃, ℉ ]
"$" : [ ¥, €, £, ¥, ⁵, ¢, ¤ ]
"^" : [ ……, ⋯, ᠁, ⁶, ฯ ]
"&" : [ &, ⁷]
"*" : [ *, ×, ‧, ❂, ⁸, □ ]
"(" : [ (, "<", «, ‹, 〔, ⁹ ]
")" : [ ), ">", », ›, 〕, ⁰ ]
"_" : [ ——, ‾, ﹏, _ ]
"-" : [ -, ‐, − ]
"+" : [ +, ±, ∓ ]
"=" : [ = ]
"[" : [ 「, 【, 《, [ ]
"]" : [ 」, 】, 》, ] ]
"{" : [ 『, 〖, 〈, { ]
"}" : [ 』, 〗, 〉, } ]
editor:
bindings:
space: toggle_selection
key_binder:
import_preset: default
bindings:
- { when: has_menu, accept: comma, send: comma } # ㄝ
- { when: has_menu, accept: period, send: period } # ㄡ
- { when: has_menu, accept: minus, send: minus } # 上聲
- { when: has_menu, accept: equal, send: equal } # 去聲
- { when: has_menu, accept: "]", send: "]" } # 入聲/輕音
- { when: paging, accept: "]", send: Page_Up } # 上一頁
- { when: has_menu, accept: "\\", send: Page_Down } # 下一頁
recognizer:
patterns:
email: "^[a-z][-_.0-9a-z]*@.*$"
uppercase: "^[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(www[.]|https?:|ftp:|mailto:).*$"
reverse_lookup: "`[a-z]*'?$"
__patch:
# 使用八股文語言模型
- grammar:/hant?