-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnaamning_baakwaa.schema.yaml
221 lines (202 loc) · 6.82 KB
/
naamning_baakwaa.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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# Rime schema
# encoding: utf-8
schema:
schema_id: naamning_baakwaa
name: "南寧白話"
version: "2024.11.03"
author:
- LeiMaau <leimaau@qq.com>
description: |
採用香港語言學學會粵語拼音方案
提供聲調輸入 q平 v上 x去 (雙擊爲陽調)和多種字形轉換
提供四種反查方案,[`]普拼反查粵拼,[x]五筆畫反查粵拼,[v]倉頡五代反查粵拼,[r]粵語兩分反查粵拼
PC上按Ctrl+Enter可將提示音上屏,按Ctrl+Shift+Enter可將候選項上屏
dependencies:
- luna_pinyin
- stroke
- cangjie5
- loengfan
switches:
- options: [simplification, noop, zh_hk, zh_tw]
states: [ 字形 → 大陸, 字形 → 傳統〔不轉換〕, 字形 → 香港, 字形 → 臺灣 ]
reset: 0
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: ascii_punct
states: [ 。,, ., ]
- name: emoji_cn
reset: 0
states: [ 〇, 😊 ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- affix_segmentor@luna_pinyin
- affix_segmentor@stroke
- affix_segmentor@cangjie5
- affix_segmentor@loengfan
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
- script_translator@luna_pinyin
- table_translator@stroke
- table_translator@cangjie5
- script_translator@loengfan
filters:
- simplifier
- simplifier@zh_hk
- simplifier@zh_tw
- simplifier@emoji_cn
- uniquifier
- reverse_lookup_filter@reverse_lookup
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " '"
algebra:
- xform/\(.+?\)// # 忽略釋義
- xform/「.+?」// # 忽略釋義
- derive/\d// # 忽略声调
- derive/^([aeiou])/q$1/ # 增加 q 表示喉塞
- xform/1/q/ # 陰平
- xform/4/qq/ # 陽平
- xform/2/v/ # 陰上
- xform/5/vv/ # 陽上
- xform/3/x/ # 陰去
- xform/6/xx/ # 陽去
- derive/^(z|c|s)y$/$1z/ # 兼容 (zcs)y -> (zcs)z 傳教士方案
- derive/^(z|c|s)y$/$1ii/ # 兼容 (zcs)y -> (zcs)ii 其他拼音方案
- derive/a(m|p)$/o$1/ # 兼容 a(m|p) -> o(m|p) 其他邕潯片
- derive/aa(m)$/o$1/ # 兼容 aam -> om 其他邕潯片
- derive/^j/nj/ # 兼容 j -> nj 其他邕潯片 nj[ȵ]
- derive/a([nt])$/eo$1/ # 模糊 a(nt) -> eo(nt)
- derive/ui$/eoi/ # 模糊 ui -> eoi
- derive/yu$/eoi/ # 模糊 yu -> eoi
- derive/^sl/s/ # 模糊 sl -> s
- derive/^(g|k)wo/$1o/ # 模糊 (gk)wo -> (gk)o
- derive/^(g|k)o/$1wo/ # 模糊 (gk)o -> (gk)wo
- derive/^(g|k)wik$/$1ik/ # 模糊 (gk)wik -> (gk)ik
- derive/^(g|k)ik$/$1wik/ # 模糊 (gk)ik -> (gk)wik
- derive/i$/ei/ # 模糊 i -> ei
- derive/u$/ou/ # 模糊 u -> ou
- derive/saang$/sang/ # 模糊 saang -> sang 庚韻二等字文讀
- derive/kok$/fok/ # 模糊 kok -> fok
- derive/fut$/kut/ # 模糊 fut -> kut 豁達、蛞蝓
- derive/gwaat$/kut/ # 模糊 gwaat -> kut 包括、聒噪
- derive/dik$/d/ # 快出「的」字
- derive/^jy?([aeiou])/y$1/ # 容錯 j -> y
- derive/(g|k)u(?!ng|k)/$1wu/ # 模糊 gu -> gwu ku -> kwu
- derive/^jy?u/ju/ # 容錯 jyu、ju -> ju
- derive/yu/y/ # 容錯 yu -> y
- derive/aa$/a/ # 容錯 aa -> a
- derive/oe(ng|k)$/eo$1/ # 容錯 oe(ng|k) -> eo(ng|k)
- derive/eo([int])$/oe$1/ # 容錯 eo(int) -> oe(int)
- derive/eoi$/eoy/ # 教院式 eoi -> eoy
- abbrev/^([a-z]).+$/$1/ # 首字母簡拼
# - abbrev/^([a-z]{2}).+$/$1/ # 首2字母簡拼
- abbrev/^(gw|kw|ng).+$/$1/ # 聲母簡拼
- abbrev/^([s][l]).+$/$1/ # 聲母簡拼
menu:
alternative_select_keys: "123456789"
page_size: 7 # 候選詞數
translator:
dictionary: naamning_baakwaa
prism: naamning_baakwaa
spelling_hints: 8 # 標註拼音的字數,建議橫排顯示時設置爲1
preedit_format:
- xform/([aeioumngptk])qq/${1}4/
- xform/([aeioumngptk])q/${1}1/
- xform/([aeioumngptk])vv/${1}5/
- xform/([aeioumngptk])v/${1}2/
- xform/([aeioumngptk])xx/${1}6/
- xform/([aeioumngptk])x/${1}3/
comment_format:
- xform/\(.+?\)// # 處理組詞拼音
- xform/「.+?」// # 處理組詞拼音
luna_pinyin: # 普拼反查粵拼
tag: luna_pinyin
dictionary: luna_pinyin
enable_user_dict: false
prefix: "`"
suffix: ";"
tips: 〔普拼〕
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
stroke: # 五筆畫反查粵拼,h,s,p,n,z 代表橫、豎、撇、捺、折
tag: stroke
dictionary: stroke
enable_user_dict: false
prefix: "x"
suffix: ";"
tips: 〔筆畫〕
preedit_format:
- xlit/hspnz/一丨丿丶乙/
cangjie5: # 倉頡五代反查粵拼
tag: cangjie5
dictionary: cangjie5
enable_user_dict: false
prefix: "v"
suffix: ";"
tips: 〔倉頡五代〕
preedit_format:
- 'xform/^([a-z]*)$/$1\t(\U$1\E)/'
- "xlit|ABCDEFGHIJKLMNOPQRSTUVWXYZ|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符|"
comment_format:
- "xlit|abcdefghijklmnopqrstuvwxyz~|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符~|"
disable_user_dict_for_patterns:
- "^z.*$"
- "^yyy.*$"
loengfan: # 粵語兩分反查粵拼
tag: loengfan
dictionary: loengfan
prefix: "r"
suffix: ";"
tips: 〔粵語兩分〕
reverse_lookup:
tags: [luna_pinyin, stroke, cangjie5, loengfan] # 需要打字時顯示釋義則註釋這行,建議PC上豎排顯示時使用
overwrite_comment: true
dictionary: naamning_baakwaa
comment_format:
- xform/ /\|/
- xform/^/〔/
- xform/$/〕/
- xform/「/ /
- xform/」//
zh_hk:
option_name: zh_hk
opencc_config: t2hk.json
zh_tw:
option_name: zh_tw
opencc_config: t2tw.json
emoji_cn:
opencc_config: emoji.json
option_name: emoji_cn
tips: all
punctuator:
import_preset: symbols
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
punct: "^/([0-9]0?|[a-z]+)$"
luna_pinyin: "`[a-z']*'?$"
stroke: "x[hspnz]*'?$"
cangjie5: "v[a-z]*'?$"
loengfan: "r[a-z]*'?$"