-
Notifications
You must be signed in to change notification settings - Fork 4
/
zhung_stenotype.schema.yaml
159 lines (151 loc) · 3.5 KB
/
zhung_stenotype.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
# Rime schema
# encoding: utf-8
schema:
schema_id: zhung_stenotype
name: 中州打字速記法
version: "0.1"
author:
- 佛振 <chen.sst@gmail.com>
description: |
老派鄭州話
改編自早期的打字速記方案
dependencies:
- zhung
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
states: [ 漢字, 汉字 ]
- name: ascii_punct
states: [ 。,, ., ]
engine:
processors:
- ascii_composer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
filters:
- simplifier
- uniquifier
speller:
alphabet: "zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA.:\"'`~;,*^<>@#%&$-=()"
delimiter: " _"
algebra:
- xform/^([a-z]*)[0-9]+$/$1/
- derive/^w/v/
- xform/^vu([in])/ve$1/
- xform/^yu/iu/
- xform/^yi?/i/
- xform/^wu?/u/
- xform/([iu])n$/$1en/
- xform/ui$/uei/
- xform/iuo$/*/
- xform/uo$/,/
- xform/e?o$/;/
- xform/iung$/O/
- xform/ung$/U/
- xform/ing$/I/
- xform/eng$/E/
- xform/^bi/B/
- xform/^pi/P/
- xform/^mi/M/
- xform/^fi/F/
- xform/^vi/V/
- xform/^di/D/
- xform/^ti/T/
- xform/^ni(?!u)/N/
- xform/^li(?!u)/L/
- xform/^gu/G/
- xform/^ku/K/
- xform/^hu/H/
- xform/^ju/J/
- xform/^qu/Q/
- xform/^xu/X/
- xform/^zh/Z/
- xform/^ch/C/
- xform/^sh/S/
- xform/^rh/R/
- xform/el$/r/
- xform/^([bpmfv])u$/$1/
- xform/^([dtnl])a$/$1/
- xform/^([gkh]);$/$1/
- xform/^([jqx])i/$1/
- xform/^([ZCSRzcs])y$/$1/
- xform/(?<![ae])i$/./
- xform/(?<![aoi])u$/:/
- "xform/iu$/\"/"
- xform/ia$/`/
- xform/ua$/~/
- "xform/a$/'/"
- xform/iue$/>/
- xform/ie$/</
- xform/e$/^/
- xform/uai$/@/
- xform/uei$/#/
- xform/iau$/%/
- xform/iou$/&/
- xform/ai$/e/
- xform/ei$/i/
- xform/au$/o/
- xform/ou$/u/
- xform/iuan$/$/
- xform/ian$/y/
- xform/uan$/w/
- xform/an$/a/
- xform/iuen$/)/
- xform/uen$/(/
- xform/ien$/=/
- xform/en$/-/
- xform/iang$/Y/
- xform/uang$/W/
- xform/ang$/A/
- derive|^([BPMFVDTNL])a$|\L$1\Ey|
- derive|^([GKHJQX])a$|\L$1\Ew|
- derive/\^$/e/
- derive/%$/o/
- derive/&$/u/
translator:
dictionary: zhung
prism: zhung_stenotype
punctuator:
full_shape:
" " : { commit: " " }
"/" : [ ",", "。", "、", /, "/", ":", ";" ]
"?" : { commit: ? }
"!" : { commit: ! }
"|" : [ ……, ——, ·, |, "¦", "§" ]
"[" : [ 「, 【, 〈, 〔, [ ]
"]" : [ 」, 】, 〉, 〕, ] ]
"{" : [ (, 『, 《, 〖, { ]
"}" : [ ), 』, 》, 〗, } ]
half_shape:
" " : { commit: " " }
"/" : [ ",", "。", "、", "/", /, ":", ";" ]
"?" : { commit: ? }
"!" : { commit: ! }
"|" : [ ……, ——, ·, "¦", |, "§" ]
"[" : [ 「, 【, 〈, 〔, [ ]
"]" : [ 」, 】, 〉, 〕, ] ]
"{" : [ (, 『, 《, 〖, { ]
"}" : [ ), 』, 》, 〗, } ]
key_binder:
import_preset: default
bindings:
- { when: has_menu, accept: minus, send: minus }
- { when: has_menu, accept: equal, send: equal }
- { when: paging, accept: comma, send: comma }
- { when: has_menu, accept: period, send: period }