forked from ASC8384/myRime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
double_pinyin_flypy.custom.yaml
193 lines (178 loc) · 5.32 KB
/
double_pinyin_flypy.custom.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
# https://github.com/ASC8384/myRime
# mailto:ASC_8384@foxmail.com
# 有参考
#
# 部署位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)
#
# 重新部署即可
#
patch:
switches:
- name: ascii_mode
reset: 1
states: [中文, 洋文]
- name: full_shape
reset: 0
states: [半角, 全角]
- name: zh_simp
reset: 1
states: [漢字, 汉字]
- name: ascii_punct
states: [ 。,, ., ]
- name: emoji_suggestion
reset: 0
states: [ "🈚️️\uFE0E", "🈶️️\uFE0F" ]
- name: symbol_support
reset: 1
states: [ "无符", "→符" ]
- name: gb2312 #生僻字开关
reset: 0
states: [ 增廣, 常用 ] # []
engine/+:
translators/+:
- table_translator@custom_phrase # 自定义词库
- table_translator@custom_personal # 自定义个人词库
- lua_translator@date_translator # 自定义 lua 脚本
- lua_translator@time_translator
# - echo_translator # 沒有其他候選字時,回顯輸入碼〔輸入碼可以Shift+Enter上屛〕
filters:
- charset_filter@gb2312
- simplifier@emoji_suggestion
- simplifier@symbol_support
- simplifier # 简体
- uniquifier # 去重
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " '"
algebra:
- erase/^xx$/
- derive/^([jqxy])u$/$1v/
- derive/^([aoe])([ioun])$/$1$1$2/
# 模糊音,简拼会破坏双拼的美感
# - abbrev/^([az]).+$/$1/ #简拼(首字母)
# - abbrev/^([zcs]h).+$/$1/ #简拼(zh, ch, sh)
# - derive/^([zcs])h/$1/ # zh, ch, sh => z, c, s
- derive/^([zcs])([^h])/$1h$2/ # z, c, s => zh, ch, sh
# - derive/^r/l/ # r => l
# - derive/^l/r/ # l => r
# - derive/^n/l/ # n => l
# - derive/^l/n/ # l => n
# - derive/([aei])n$/$1ng/ # en => eng, in => ing
# - derive/([aei])ng$/$1n/ # eng => en, ing => in
# - derive/([iu])an$/$lang/ # ian => iang, uan => uang
# - derive/([iu])ang$/$lan/ # iang => ian, uang => uan
- xform/^([aoe])(ng)?$/$1$1$2/
- xform/iu$/Q/
- xform/(.)ei$/$1W/
- xform/uan$/R/
- xform/[uv]e$/T/
- xform/un$/Y/
- xform/^sh/U/
- xform/^ch/I/
- xform/^zh/V/
- xform/uo$/O/
- xform/ie$/P/
- xform/i?ong$/S/
- xform/ing$|uai$/K/
- xform/(.)ai$/$1D/
- xform/(.)en$/$1F/
- xform/(.)eng$/$1G/
- xform/[iu]ang$/L/
- xform/(.)ang$/$1H/
- xform/ian$/M/
- xform/(.)an$/$1J/
- xform/(.)ou$/$1Z/
- xform/[iu]a$/X/
- xform/iao$/N/
- xform/(.)ao$/$1C/
- xform/ui$/V/
- xform/in$/B/
- xlit/QWRTYUIOPSDFGHJKLZXCVBNM/qwrtyuiopsdfghjklzxcvbnm/
#- abbrev/^(.).+$/$1/
# "recognizer/patterns/punct": "^/([a-z]+|[0-9])$" # / 键
"recognizer/patterns/punct": "^\\\\([A-Z|a-z]*|[0-9]|10)$" # \ 键
# "recognizer/patterns/punct": "^i([A-Z|a-z]*|[0-9]|10)$" # i 键
# 主翻译器
translator/dictionary: luna_pinyin.extended # 載入朙月拼音擴充詞庫
translator/initial_quality: 1 # 主翻译器的优先级设为1
translator/enable_completion: true # 开启逐鍵提示
translator/preedit_format: {} # 输入双拼码的时候不转化为全拼码
punctuator:
import_preset: mysymbols # mysymbols
half_shape:
"`": ["`", "·"]
"~": "~"
"!": "!"
"@": "@"
"#": "#"
"$": "¥"
"%": "%"
"^": "……"
"&": "&"
"*": "×"
"(": "("
")": ")"
"_": "——"
"+": "+"
"-": "-"
"=": "="
"[": "【"
"]": "】"
"{": "{"
"}": "}"
"|": "|"
"\\": "、"
"/": "、"
";": ";"
# "'": "’" fix #4
",": ","
".": "。"
"<": "《"
">": "》"
"?": "?"
# 分号上屏二候选词;引号上屏三候选词
"key_binder/bindings":
- { when: has_menu, accept: semicolon, send: 2 }
- { when: has_menu, accept: apostrophe, send: 3 }
- { when: paging, accept: bracketleft, send: Page_Up }
- { when: has_menu, accept: bracketright, send: Page_Down }
custom_phrase:
dictionary: ""
user_dict: dicts/custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1
custom_personal:
dictionary: ""
user_dict: dicts/custom_personal
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1
simplifier:
option_name: zh_simp
# tags: [ abc ] # abc 對應abc_segmentor
# https://github.com/rime/rime-emoji/blob/master/emoji_suggestion.yaml
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
tips: all
# https://github.com/fkxxyz/rime-symbols
symbol_support:
opencc_config: symbol.json
option_name: symbol_support
tips: all
reverse_lookup/+: # 笔画输入法反查
tips: 〔筆畫↔hspnz/一丨丿丶乙〕
# 加載 easy_en 依賴
"schema/dependencies/@next": easy_en
"engine/translators/@next": table_translator@english # 載入翻譯英文的碼表翻譯器,取名爲 english
english: # english 翻譯器的設定項
dictionary: easy_en
enable_completion: false # 是否启用英文输入联想补全
enable_sentence: false
initial_quality: -3