-
Notifications
You must be signed in to change notification settings - Fork 2
/
xuma_forfudan_ergo.schema.yaml
229 lines (208 loc) · 6.21 KB
/
xuma_forfudan_ergo.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# Rime schema settings
# encoding: utf-8
schema:
schema_id: xuma_forfudan_ergo
name: 尔雅·徐码·less·Z
version: "20230303"
author:
- 發明人 徐國銀先生
- RIME方案 <https://zhuyuhao.com/rime-xuma/>
description: |
徐碼繁簡通打 (QQ群:761401688)
forFudan 調整方案 <https://github.com/forFudan/xuma>
特點:
- 調整字根,大量減少 Z 鍵和 X 鍵的按鍵頻率,提升手感.包括:
小碼改動(移除所有XZ鍵上的小碼).
大小碼同時改動(XZ上的副根只保留冫米羊).
字根增加(微頭、𡗗頭).
- 降低重碼.
- 汉字全拆分.
- 调整简码.
- 全码后置.
- 增加词语,包含成语和诗词.
requirments: |
- clover
- forfudan_freq_filter.lua
- forfudan_single_char_only_for_full_code.lua
- xuma_forfudan_ergo_chaifen.json
- xuma_forfudan_ergo_chaifen.txt
chaifen: |
本拆分表基於徐碼官方碼表(2023年1月15日版本)製作。
本拆分表包含至 CJK-H 區的所有漢字的拆分。
本拆分表爲全字部件拆分表,卽包含所有構字部件。
拆分後附有徐碼,以大小寫區分大小碼。
本拆分表經過字形校驗。字形標準取自:
-《中華人民共和國國家標準 GB 18030--2022 信息技術 中文編碼字符集》中刊載的漢字。
- The Unicode Standard, Version 15.0 中刊載的漢字字形。
末尾標注 ⁇ 號的拆分方法,同官方碼表存在不同,需要進一步核查。
未尾標注 ✓ 號的拆分方法,同官方碼表存在不同,但根據標準字形進行了修正。
未尾標注 ⊖ 號的拆分方法,官方碼表没有收録,本拆分表給予補充。
switches:
- options: [forfudan_freq_only, utf8]
states: [只出常用字, CJK全字集]
reset: 1
# Control+Shift+O
- options: [forfudan_freq_first, utf8]
states: [常用字前置, 原始字序]
reset: 1
# Control+Shift+I
- name: forfudan_single_char_only_for_full_code
states: [四码出词, 四码出单]
reset: 0
# Control+Shift+D
- name: xuma_postpone_full_code
reset: 1
states: [原始排序, 全码后置]
# Control+Shift+H
- name: traditionalization
states: [简保持, 简转繁]
reset: 0
# Control+Shift+F
- name: simplification
reset: 0
states: [繁保持, 繁转简]
# Control+Shift+J
- name: chaifen
states: ["无拆分", "有拆分"]
reset: 1
# Control+Shift+C
- name: ascii_punct
states: [。,, .,]
reset: 0
- name: ascii_mode
states: [中文, 西文]
- name: full_shape
states: ["半角", "全角"]
reset: 0
# menu:
# page_size: 5
style:
inline_preedit: true
preedit_type: preview
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
- table_translator@fixed
- table_translator
- reverse_lookup_translator
filters:
- lua_filter@forfudan_single_char_only_for_full_code
- lua_filter@xuma_postpone_full_code
- lua_filter@forfudan_freq_first
- lua_filter@forfudan_freq_only
- simplifier@traditionalize
- simplifier@simplify
- simplifier@chaifen
- uniquifier
forfudan_single_char_only_for_full_code:
tags: [abc]
xuma_postpone_full_code:
tags: [abc]
lua:
max_index: 5 # 最大后置位置,默认为 4
schema_name:
code: xuma_forfudan_ergo
forfudan_freq_only:
tags: [abc]
forfudan_freq_first:
tags: [abc]
traditionalize:
tags: [abc, reverse_lookup]
option_name: traditionalization
opencc_config: s2t.json
tips: all
comment_format:
- xform/^/〔/
- xform/$/〕/
simplify:
tags: [abc, reverse_lookup]
option_name: simplification
opencc_config: t2s.json
tips: all
comment_format:
- xform/^/〔/
- xform/$/〕/
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
initials: zyxwvutsrqponmlkjihgfedcba
delimiter: " '/"
max_code_length: 4
auto_select: true
translator:
dictionary: xuma_forfudan_ergo
prism: xuma_forfudan_ergo
enable_completion: true
enable_sentence: true
enable_user_dict: true
enable_encoder: true
encode_commit_history: false # 对连续上屏的词自动成词
max_phrase_length: 4 # 自动成词的最大词长
preedit_format: []
# 固定词库词的权重,防止自动调频
fixed:
__include: translator
enable_user_dict: false
enable_sentence: false
initial_quality: 1000000
reverse_lookup:
dictionary: clover
prefix: "`"
tips: 〔全拼反查〕
closing_tips: 〔反查关闭〕
preedit_format:
- xform/([nljqxy])v/$1ü/
chaifen:
opencc_config: xuma_forfudan_ergo_chaifen.json
option_name: chaifen
show_in_comment: true
tags: [abc, reverse_lookup]
tips: char
punctuator:
import_preset: default
history:
input: dl
size: 1
initial_quality: 2000
key_binder:
bindings:
# PgUp and PgDn
- { when: always, accept: "Control+period", toggle: ascii_punct }
- { when: always, accept: "Control+Shift+J", toggle: simplification }
- { when: always, accept: "Control+Shift+F", toggle: traditionalization }
- { when: always, accept: "Control+Shift+O", toggle: forfudan_freq_only } # 常用词过滤
- { when: always, accept: "Control+Shift+I", toggle: forfudan_freq_first } # 常用词前置
- {
when: always,
accept: "Control+Shift+D",
toggle: forfudan_single_char_only_for_full_code,
} # 全码出单
- {
when: always,
accept: "Control+Shift+H",
toggle: xuma_postpone_full_code,
} # 全码后置
- { when: always, accept: "Control+Shift+C", toggle: chaifen } # 显示拆分
- { when: has_menu, accept: semicolon, send: 2 } # 分号次选
- { when: has_menu, accept: apostrophe, send: 3 } # 引号三选
- { when: has_menu, accept: Tab, send: 4 } # 引号三选
- { when: paging, accept: bracketleft, send: Page_Up }
- { when: has_menu, accept: bracketright, send: Page_Down }
recognizer:
patterns:
uppercase: "^(?![`;]).*[A-Z][-_+.'0-9A-Za-z]*$"
reverse_lookup: "^`([a-z]+?)*$"