-
Notifications
You must be signed in to change notification settings - Fork 0
/
fungz_combo_pinyim.schema.yaml
193 lines (183 loc) · 3.64 KB
/
fungz_combo_pinyim.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
# Rime schema
# vim: set sw=2 sts=2 et:
# encoding: utf-8
schema:
schema_id: fungz_combo_pinyim
name: 楓梓宮保拼音
version: "0.1"
author:
- 楓梓 <uukoo@163.com>
description: |
並擊輸入拼音
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
states: [ 漢字, 汉字 ]
engine:
processors:
- ascii_composer
- chord_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- r10n_translator
filters:
- simplifier
- uniquifier
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " |"
algebra:
- erase/^xx$/
chord_composer:
alphabet: "bdfmhgwtcvnrzslxiykupjeqoa"
algebra:
# - "xlit|bgtvfrcdexswzaq,ki.lo/;p'[\]nhymju|xiykupje.qo,'a;wtcvnrzsl-/$bdfmhg|" # for rubbish qwerty
# initial
# i,u,ü
- xform/^hcr/I/
- xform/^hcn/V/
- xform/^htn/U/
# z 组
- xform/^mn/SV/
- xform/^hr/CV/
- xform/^gn/ZV/
- xform/^mv/SI/
- xform/^hn/CI/
- xform/^gr/ZI/
- xform/^mw/SU/
- xform/^ht/CU/
- xform/^gc/ZU/
# ž 组
- xform/^mt/RHU/
- xform/^wv/SHU/
- xform/^tn/CHU/
- xform/^cr/ZHU/
- xform/^hc/RH/
# g(j) 组
- xform/^bs/YV/
- xform/^hz/XV/
- xform/^ms/QV/
- xform/^hl/JV/
- xform/^gs/YI/
- xform/^mz/XI/
- xform/^hs/QI/
- xform/^gl/JI/
- xform/^bz/HU/
- xform/^ds/KU/
- xform/^fl/GU/
# d 组
- xform/^dc/LV/
- xform/^bt/LI/
- xform/^dt/TI/
- xform/^fc/DI/
- xform/^bh/NU/
- xform/^bm/LU/
- xform/^dh/TU/
- xform/^fg/DU/
- xform/^dg/N/
# b 组
- xform/^br/MI/
- xform/^bn/PI/
- xform/^dr/BI/
- xform/^fn/MU/
- xform/^bv/FU/
- xform/^dn/PU/
- xform/^fr/BU/
# 组
- xform/^m/S/
- xform/^h/C/
- xform/^g/Z/
- xform/^w/SH/
- xform/^t/CH/
- xform/^c/ZH/
- xform/^z/H/
- xform/^s/K/
- xform/^l/G/
- xform/^b/L/
- xform/^d/T/
- xform/^f/D/
- xform/^ns/M/
- xform/^v/F/
- xform/^n/P/
- xform/^r/B/
# final
- xform/p/AI/
- xform/ua/AU/
- xform/y/ANG/
- xform/Vu/VIN/
- xform/Iu/IN/
- xform/Ii/ING/
- xform/u/EN/
- xform/i/ENG/
- xform/eo/O/
- xform/Uo/UO/
- xform/o/OU/
- xform/x/ONG/
- xform/kj/W/
- xform/Ij/IW/
- xform/Vj/VW/
- xform/j/WI/
- xform/k/WN/
- xform/a/A/
- xform/e/E/
- xform/q/ER/
# # end
- xform/II/I/
- xlit/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
output_format:
- "xform/^([a-z]+)$/$1|/"
prompt_format:
- "xform/^(.*)$/[$1]/"
translator:
dictionary: fungz_pinyim
table: fungz_pinyim
prism: fungz_pinyim
preedit_format:
- xform/bv/Ɓ/
- xform/bf/ɓ/
- xform/pf/ƥ/
- xform/Dh/Ď/
- xform/dh/ď/
- xform/th/ť/
- xform/lh/ľ/
- xform/nh/ň/
- xform/rh/ř/
- xform/sh/š/
- xform/Zh/Ž/
- xform/zh/ž/
- xform/ch/č/
- xform/y/ñ/
- xform/ng/ŋ/
- xform/U/ü/
- xform/w/ɛ/
punctuator:
full_shape:
" ": {commit: " "}
half_shape:
" ": {commit: " "}
punctuator:
import_preset: default
key_binder:
bindings:
- {accept: ISO_Left_Tab, send: "Shift+Left", when: composing}
- {accept: "Shift+Tab", send: "Shift+Left", when: composing}
- {accept: Tab, send: "Shift+Right", when: composing}
recognizer:
import_preset: default