-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsg1pb3.schema.yaml
149 lines (137 loc) · 3.38 KB
/
sg1pb3.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
# Rime schema
# encoding: utf-8
schema:
schema_id: sg1pb3
name: "SGPB 雙拼"
version: '1.0'
author:
- MISTER_CHAN <[email protected]>
description: |
粵語雙拼
採用香港語言學學會粵語拼音方案
dependencies:
- cangjie5
- wubi86
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: ascii_punct
states: [ "。,", ".," ]
- name: simplification
states: [ 漢字, 汉字 ]
- name: emoji_suggestion
reset: 1
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- affix_segmentor@cangjie5
- affix_segmentor@wubi86
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
- table_translator@cangjie5
- table_translator@wubi86
filters:
- simplifier
- simplifier@emoji_suggestion
- uniquifier
- charset_filter@gbk
- reverse_lookup_filter@jyut6ping3_reverse_lookup
speller:
alphabet: abcdefghijklmnopqrstuvwxyz123456789
initials: abcdefghijklmnopqrstuvwxyz
delimiter: " '"
algebra:
- xform/(?<=[ptk])1/7/
- xform/(?<=[ptk])3/8/
- xform/(?<=[ptk])6/9/
- xform/aau/Q/
- xform/^w|aai/W/
- xform/(?<!o)e(?=\d)/E/
- xform/k(?=u\d|ui|un\d|ut)|kw|(?<![aeou])e?i(?=\d)/I/
- xform/g(?=u\d|ui|un\d|ut)|gw|ui|eoi/R/
- xform/^t|(?<!^)[ei]u/T/
- xform/(?:yu|(?<!^)(?<![csz])oe)(?=\d)/Y/
- xform/(?<![aeio])o?u(?=\d)/U/
- xform/o(?=\d)/O/
- xform/^p|oi/P/
- xform/aa(?=\d)/A/
- xform/s(?!oe\d)|au/S/
- xform/d|ai/D/
- xform/f|aa[mp]/F/
- xform/^g|(?<!^)oe(?:ng|k)/G/
- xform/h|y?u[nt](?=\d)/H/
- xform/j|e?o[nt](?=\d)/J/
- xform/^k|i[nt](?=\d)/K/
- xform/l|(?<!^)[ei][mp]/L/
- xform/z(?!oe\d)|aa[nt](?=\d)/Z/
- xform/[sz]|(?<!a)a[nt](?=\d)/X/
- xform/c|aa?(?:ng|k)/C/
- xform/^ng|(?<!a)a[mp]/V/
- xform/b|(?:i|(?<!o)e)(?:ng|k)/B/
- xform/^n|u(?:ng|k)/N/
- xform/^m|o(?:ng|k)/M/
- erase/^.*[a-z].*$/
- xlit/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
- derive/\d//
- abbrev/^..+$/./
translator:
dictionary: jyut6ping3
spelling_hints: 0
prism: sg1pb3
cangjie5:
tag: cangjie5
dictionary: cangjie5
enable_user_dict: false
prefix: "`"
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.*$"
wubi86:
tag: wubi86
dictionary: wubi86
enable_user_dict: false
prefix: "y"
suffix: "'"
tips: 〔五笔〕
jyut6ping3_reverse_lookup:
tags: [ cangjie5, wubi86 ]
overwrite_comment: false
dictionary: jyut6ping3
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
tips:
punctuator:
import_preset: symbols_cantonese
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
punct: "^/(?:[0-9A-Za-z]+)$"
cangjie5: "^`[a-z]*'?$"
wubi86: "^y[a-z]*'?$"