-
Notifications
You must be signed in to change notification settings - Fork 3
/
diege_gb.schema.yaml
211 lines (200 loc) · 4.84 KB
/
diege_gb.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
# Rime schema
# vim: set sw=2 sts=2 et:
# encoding: utf-8
schema:
schema_id: diege_gb
name: 潮語(形聲鍵盤)
version: "2.0"
author:
- 鴻志 <3687@hotmail.com>
- 貼吧 femkerr
- github 項目主頁:http://femkerr.github.io/dieghe/
description: |
潮汕话輸入方案
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
- fluency_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- echo_translator
- punct_translator
- r10n_translator
- reverse_lookup_translator
- script_translator
filters:
- simplifier
- uniquifier
menu:
alternative_select_keys: "ABCDEFGHIJ"
speller:
alphabet: 'zyxwvutsrqponmlkjihgfedcba;1234567890'
initials: zyxwvutsrqponmlkjihgfedcba
finals: "1234567890"
delimiter: " '"
algebra:
# 模糊音定義先於簡拼定義,可令簡拼支持以上模糊音
- abbrev/^([a-z]).+$/$1/
- abbrev/^([aeiou]h).+$/$1/
- abbrev/^([aeiou]g).+$/$1/
- abbrev/^([ptkbgmlsch]h?).+$/$1/
- abbrev/^([aoeiu]n?).+$/$1/
- derive/^([abg])h.+$/$1/
- derive/^([abg])([^h]).+$/$1h$2/
- derive/([aeiou])n$.+$/$1ng/
- derive/([aeiou])ng$.+$/$1n/
- derive/([aeiou])g$.+$/$1/
- derive/([aeiou])h$.+$/$1/
- derive/^i/y/
- derive/^u/w/
- derive/h(\d)/q$1/
- derive/^c/q/
- derive/^z/j/
- derive/^s/x
- derive/^i/y
- derive/ê/e
#- derive/^j/l/ #偏泉腔,j濫l
- derive/6/7/
#- derive/Ia/io/
#- derive/Iang/iang/ #偏漳腔,上讀siang
- derive/ee/e/
#- derive/enn/inn/ #偏泉腔,enn濫inn
#- derive/^([mn]g?)ee/$1i #同上
#- derive/ir/u/
#- derive/ir/i/
#- derive/ur/u/
#- derive/er(h?)(\d)/ue$1$2/ #偏漳腔,過讀kue
#- derive/er(h?)(\d)/e$1$2/ #偏泉腔,過讀ke
#- derive/Er/e/
#- derive/Er/er/ #鹿港
#- derive/ere/e/ #偏漳腔,雞讀ke
#- derive/ere/ue/ #偏泉腔,雞讀kue
#- derive/uIn?n?/ng/
#- derive/^(k)uainn([357])/$1uan$2/
#- derive/iO/oo/
#- derive/IO/io/ #侯韻文讀特字
#- derive/aInn/ing/
#- derive/^ngaI/ging/
#- derive/aI/ai/
- derive/^mue/mui/
#- derive/ern/in/
#- derive/ern(\d?\s?)/un$1/
#- derive/erm/im/
#- derive/g/gh/
#- derive/^ji/gi/ #日母字讀g,比論字讀gi
- derive/^([a-z]+)\d$/$1/
- 'xlit 12345678 12345678'
translator:
dictionary: diege
enable_charset_filter: true
enable_sentence: true
enable_encoder: true
encode_commit_history: true
preedit_format:
- 'xform ([aeiou])(r?m?n*h?g?p?t?k?)([\[/\\\]90\-;]) $1$3$2'
- 'xform ([aeo])([iueo])([\[/\\\]90\-;]) $1$3$2'
- 'xform a\[ a'
- 'xform e\[ e'
- 'xform i\[ i'
- 'xform u\[ u'
- 'xform o\[ o'
- 'xform m\[ m'
- 'xform ng\[ ng'
- 'xform a/ á'
- 'xform e/ é'
- 'xform i/ í'
- 'xform u/ ú'
- 'xform o/ ó'
- 'xform m/ ḿ'
- 'xform ng/ ńg'
- 'xform a\\ à'
- 'xform e\\ è'
- 'xform i\\ ì'
- 'xform u\\ ù'
- 'xform o\\ ò'
- 'xform ng\\ ǹg'
- 'xform a\] a'
- 'xform e\] e'
- 'xform i\] i'
- 'xform u\] u'
- 'xform o\] o'
- 'xform mh\] mh'
- 'xform ngh\] ngh'
- 'xform a9 â'
- 'xform e9 ê'
- 'xform i9 î'
- 'xform u9 û'
- 'xform o9 ô'
- 'xform m9 m̂'
- 'xform ng9 n̂g'
- 'xform a0 ǎ'
- 'xform e0 ě'
- 'xform i0 ǐ'
- 'xform u0 ǔ'
- 'xform o0 ǒ'
- 'xform ng0 ňg'
- 'xform a- ā'
- 'xform e- ē'
- 'xform i- ī'
- 'xform u- ū'
- 'xform o- ō'
- 'xform m- m̄'
- 'xform ng- n̄g'
- 'xform a; a̍'
- 'xform e; e̍'
- 'xform i; i̍'
- 'xform u; u̍'
- 'xform o; o̍'
- 'xform mh; m̍h'
- 'xform ngh; n̍gh'
- 'xform w u'
- 'xform y i'
- 'xform ee ê'
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1!
reverse_lookup:
dictionary: luna_pinyin
prefix: "`"
tips: 〔拼音〕
preedit_format:
- xform/([nljqxy])v/$1ü/
punctuator:
import_preset: default
key_binder:
import_preset: default
bindings:
- { when: has_menu, accept: minus, send: minus } # 第7調
- { when: paging, accept: minus, send: Page_Up }
- { when: has_menu, accept: equal, 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]*'?$"