-
Notifications
You must be signed in to change notification settings - Fork 0
/
ancy_flypy_extend.schema.yaml
141 lines (128 loc) · 2.77 KB
/
ancy_flypy_extend.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
# Rime default settings
# Rime schema: ancy_flypy_extend
# Rime dictionary: ancy_flypy_extend
schema:
schema_id: ancy_flypy_extend
name: 安系小鹤
version: "0.1"
author:
- Anciety <anciety@pku.edu.cn>
description: |
小鹤双拼音形方案实现及扩展
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角,全角 ]
- name: ascii_punct
states: [ 。,, ., ]
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
#- reverse_lookup_translator
- script_translator
filters:
- simplifier
- uniquifier
- single_char_filter
speller:
alphabet: 'zyxwvutsrqponmlkjihgfedcba'
delimiter: " '"
algebra:
- xform/uang:/l:/
- xform/iang:/l:/
- xform/iong:/s:/
- xform/ian:/m:/
- xform/uan:/r:/
- xform/iao:/n:/
- xform/^a:/aa:/
- xform/^o:/oo:/
- xform/^e:/ee:/
- xform/^ang:/ah:/
- xform/ong:/s:/
- xform/eng:/g:/
- xform/ang:/h:/
- xform/uai:/k:/
- xform/ing:/k:/
- xform/iu:/q:/
- xform/ei:/w:/
- xform/ue:/t:/
- xform/ve:/t:/
- xform/un:/y:/
- xform/uo:/o:/
- xform/ie:/p:/
- xform/(\w+)ai:/$1d:/
- xform/(\w+)en:/$1f:/
- xform/(\w+)an:/$1j:/
- xform/(\w+)ou:/$1z:/
- xform/(\w+)ao:/$1c:/
- xform/ua:/x:/
- xform/ia:/x:/
- xform/ui:/v:/
- xform/in:/b:/
- xform/^sh(\w+)/u$1/
- xform/^ch(\w+)/i$1/
- xform/^zh(\w+)/v$1/
- derive/^(\w+):(\w)(\w)$/$1$2$3/
- derive/^(\w+):(\w)\w*$/$1$2/
- derive/^(\w+):\w+$/$1/
- xform/://
- derive/^(..).*$/$1/
- derive/^(...).*$/$1/
- derive/^(....).*$/$1/
- derive/^(.....).*$/$1/
translator:
dictionary: ancy_flypy_extend
max_phrase_length: 16
enable_charset_filter: true
enable_encoder: true
enable_sentence: true
encode_commit_history: true
enable_completion: true
enable_user_dict: true
disable_user_dict_for_patterns:
- "^oi.*$"
reverse_lookup:
dictionary: ancy_flypy_extend
prefix: "oi"
suffix: "'"
tips: [拼音]
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
simplifier:
option_name: simplification
opencc_config: s2t.json
punctuator:
import_preset: symbols
key_binder:
import_preset: default
bindings:
- when: has_menu
accept: comma
send: KP_Left
- when: has_menu
accept: period
send: KP_Right
recognizer:
import_preset: default
patterns:
punct: "^/([0-9]0?|[a-z]+)$"
reverse_lookup: "oi[a-z]*'?$"