-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSM.schema.yaml
executable file
·157 lines (142 loc) · 3.12 KB
/
SM.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
schema:
author:
- "矧可射思"
dependencies:
- PY
description: 矧码
name: 矧码
schema_id: SM
version: 0x00
customization: 342890
engine:
processors:
- lua_processor@test
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- history_translator
- reverse_lookup_translator@pinyin
- table_translator
- history_translator@historyX
filters:
- charset_filter@gb2312
- simplifier
- simplifier@zh_simp
- simplifier@chai
key_binder:
bindings:
- {accept: "[", send: "C", when: composing}
- {accept: Return, send: Escape, when: composing}
- {accept: "Control+Shift+O", toggle: full_shape, when: always}
- {accept: "Control+Shift+J", toggle: zh_simp, when: always}
- {accept: "Control+Shift+E", toggle: ascii_mode, when: always}
- {accept: "Control+Shift+N", toggle: ascii_mode, when: always}
- {accept: "Control+Shift+U", toggle: gb2312, when: always}
- {accept: "Control+Shift+H", toggle: _hide_candidate, when: always}
- {accept: "Control+Shift+.", toggle: ascii_punct, when: always}
import_preset: default
menu:
alternative_select_labels: [ _, e, x, C, 2, 3, 4, 8, 9, 0]
alternative_select_keys: "_exC234890"
page_size: 10
punctuator:
import_preset: symbols
half_shape:
'i' : { commit: , }
'''': { commit: 。 }
',' : []
'.' : []
'/' : []
';' : []
recognizer:
patterns:
pinyin: "`[a-z]*'?"
pinyin:
tag: pinyin
dictionary: PY
preedit_format:
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
prefix: "`"
suffix: "'"
tips: "〔拼音〕"
speller:
alphabet: yupgs;ctvr/bwlnhjdlfmkzq.oa,
max_code_length: 4
auto_select: true
auto_select_unique_candidate: true
auto_select_pattern: ^.{4}$|^,.$
delimiter: "~"
style:
horizontal: true
switches:
- name: full_shape
states: [ 半, 全 ]
reset: 0
- name: zh_simp
reset: 0
states: [ 简, 繁 ]
- name: chai
reset: 1
states: [ 不, 拆 ]
- name: ascii_mode
reset: 0
states: [ 中, 英 ]
- name: gb2312
reset: 0
states: [ 扩,常 ]
- name: _hide_candidate
reset: 1
states: ["✿", "❀"]
- name: ascii_punct
states: ["。", "."]
reset: 0
translator:
dictionary: SM
enable_charset_filter: false
enable_completion: false
enable_encoder: false
enable_sentence: false
enable_user_dict: false
encode_commit_history: false
max_phrase_length: 4
always_show_comments: true
historyX:
input: ','
size: 1
initial_quality: -1
zh_simp:
opencc_config: s2t.json
option_name: s2t_segestion
tags:
- abc
tips: char
simplifier:
opencc_config: s2twp.json
option_name: zh_simp
tags: [ abc ]
tips: none
chai:
opencc_config: chai.json
option_name: chai
show_in_comment: true
comment_format:
- "xform/☯/ · /"
- "xform/<br>/\r/"
tags:
- pinyin
tips: char