-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.custom.yaml
162 lines (147 loc) · 5.74 KB
/
default.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
# default.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
patch:
# 菜单中可选的方案列表,可根据喜好自行调整顺序,第一位为默认方案
schema_list:
- schema: mishi_wubi # 五笔
- schema: numbers # 大写数字
- schema: mishi_wubi_pinyin # 五笔拼音混输
- schema: mishi_wubi_trad # 五笔 - 简入繁出
- schema: mishi_wubi_trad_pinyin # 五笔拼音混输 - 简入繁出
- schema: pinyin_simp # 普通拼音
switcher:
caption: "【 输入法设置 】"
option_list_separator: "|"
hotkeys: # 弹出菜单的快捷键
- "Control+0"
- "Shift+Control+0"
abbreviate_options: true
menu:
page_size: 7 # 候选词数量,最多支持 10 个
#-----------------------------------------------
# 中英文切换自定义
#-----------------------------------------------
# inline_ascii 在输入法的临时英文编辑区内输入字母,数字,符号,空格等,回车上屏后自动复位到中文
# commit_text 已输入的候选文字上屏并切换至英文输入模式
# commit_code 已输入的编码字符上屏并切换至英文输入模式
# -----------------------------------------------
# 参考链接: https://gist.github.com/lotem/2981316
ascii_composer:
good_old_caps_lock: true # true: 在保持 cap 键原有的特征, false: 点击不会切换大小写
switch_key:
Caps_Lock: commit_code # 如果想用 cap 键切换中英文输入,就修改为上面三种的任一一种,否则用 noop
Shift_L: commit_code # macOs 上 shift 键不区别左右,设置参数同上
Shift_R: commit_code
Control_L: noop
Control_R: noop
key_binder:
bindings:
# - { when: has_menu, accept: comma, send: 2 } # 候选2 用逗号选择
# - { when: has_menu, accept: period, send: 3 } # 候选3 用句号选择
- { when: has_menu, accept: semicolon, send: 2 } # 候选2 用分号
- { when: has_menu, accept: apostrophe, send: 3 } # 候选3 用单引号
# 上下翻页 [ ]
# - { when: has_menu, accept: bracketleft, send: Page_Up }
# - { when: has_menu, accept: bracketright, send: Page_Down }
# 上下翻页 - =
- { when: has_menu, accept: minus, send: Page_Up }
- { when: has_menu, accept: equal, send: Page_Down }
-
# 上下翻页 tab
- { when: has_menu, accept: Shift+Tab, send: Page_Up }
- { when: has_menu, accept: Tab, send: Page_Down }
# 左右候选 ←→
- { when: composing, accept: Left, send: Up }
- { when: composing, accept: Right, send: Down }
# 回车清码
- { when: composing, accept: Return, send: Escape }
# emacs key bindings, copy from https://github.com/rime/rime-prelude/blob/master/key_bindings.yaml
- { when: composing, accept: Control+p, send: Up }
- { when: composing, accept: Control+n, send: Down }
- { when: composing, accept: Control+b, send: Left }
- { when: composing, accept: Control+f, send: Right }
- { when: composing, accept: Control+a, send: Home }
- { when: composing, accept: Control+e, send: End }
- { when: composing, accept: Control+d, send: Delete }
- { when: composing, accept: Control+k, send: Shift+Delete }
- { when: composing, accept: Control+h, send: BackSpace }
- { when: composing, accept: Control+g, send: Escape }
- { when: composing, accept: Control+bracketleft, send: Escape }
- { when: composing, accept: Alt+v, send: Page_Up }
- { when: composing, accept: Control+v, send: Page_Down }
punctuator:
full_shape: # 全角符号
" ": {commit: " "}
"!": {commit: "!"}
"\"": {pair: ["“", "”"]}
"#": ["#", "⌘"]
"$": "¥"
"%": "%"
"&": "&"
"'": {pair: ["‘", "’"]}
"(": "("
")": ")"
"*": ["*", "・", "×"]
"+": "+"
",": {commit: ","}
"-": "-"
.: {commit: "。"}
"/": ["/", "÷"]
":": {commit: ":"} # commit 的意思是这个符号输入时,会将当前处于第一位的候选词上屏
";": {commit: ";"}
"<": ["《", "〈", "«", "‹"]
"=": "="
">": ["》", "〉", "»", "›"]
"?": {commit: "?"}
"@": "@"
"[": ["「", "【", "〔", "["]
"\\": ["、", "\"]
"]": ["」", "】", "〕", "]"]
"^": {commit: "……"}
_: "——"
"`": "`"
"{": ["『", "〖", "{"]
"|": ["·", "|", "§", "¦"]
"}": ["』", "〗", "}"]
"~": "~"
half_shape: # 半角符号
"!": {commit: "!"}
"\"": {pair: ["“", "”"]}
"#": "#"
"$": "¥"
"%": ["%", "%", "°", "℃"]
"&": "&"
"'": {pair: ["‘", "’"]}
"(": "("
")": ")"
"*": ["·","×"]
"+": "+"
",": {commit: ","}
"-": {commit: "-"}
.: {commit: "。"}
# "/": {commit: "、"}
":": {commit: ":"}
";": {commit: ";"}
"<": {commit: "《"}
"=": {commit: "="}
">": {commit: "》"}
"?": {commit: "?"}
"@": "@"
"[": {commit: "【"}
"\\": {commit: "、"}
"]": {commit: "】"}
"^": {commit: "……"}
_: "——"
"`": "`"
"{": "「"
"|": "|"
"}": "」"
"~": "~"
recognizer:
patterns: # 一些常见的英文组合,当正则匹配到这些时,都不会生成候选词,而只输入英文
email: "^[-_.0-9A-Za-z]+@.*$"
uppercase: "[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(www[.]|https?:|ftp[.:]|mailto:|file:|localhost).*$|^[a-z]+[.].+$"