-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.custom.yaml
executable file
·100 lines (94 loc) · 4.87 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
patch:
schema_list:
- schema: double_pinyin_flypy
- schema: pinyin_simp
- schema: kaomoji
style:
font_face: "LXGW WenKai" # 字體名稱,從記事本等處的系統字體對話框裏能看到
font_point: 13 # 字號,只認數字的,不認「五號」、「小五」這樣的
horizontal: true # 候選橫排
menu:
page_size: 9
switcher:
abbreviate_options: true
caption: "〔切换〕" #把默认的“方案選單”修改为了“切换”。
fold_options: true
hotkeys:
- "Control+grave" #默认方案
save_options:
- full_shape
- ascii_punct
- simplification
- extended_charset
# 中西文切換鍵的默認設置寫在 default.yaml 裏面
# 以下的 default.custom.yaml 在全局範圍重定義該組快速鍵
#
# 可用的按鍵有 Caps_Lock, Shift_L, Shift_R, Control_L, control_R
# Mac 系統上的鼠鬚管不能區分左、右,因此只有對 Shift_L, Control_L 的設定起作用
#
# 已輸入編碼時按切換鍵,可以進一步設定輸入法中西文切換的形式。
# 可選的臨時切換策略有三:
# inline_ascii 在輸入法的臨時西文編輯區內輸入字母、數字、符號、空格等,回車上屏後自動復位到中文
# commit_text 已輸入的候選文字上屏並切換至西文輸入模式
# commit_code 已輸入的編碼字符上屏並切換至西文輸入模式
# 設爲 noop,屏蔽該切換鍵
#
# 如果要把 Caps Lock 設爲只改變字母的大小寫而不做中西文切換,可將 Caps_Lock 對應的切換方式設爲 noop
# 如果要以 Caps Lock 切換到西文模式,默認輸出小寫字母,請置 ascii_composer/good_old_caps_lock: false
# 如果要以 Caps Lock 切換到西文模式,默認輸出大寫字母,請使用以下設置:
ascii_composer:
good_old_caps_lock: true
switch_key:
Shift_L: inline_ascii
Shift_R: commit_code
Control_L: noop
Control_R: noop
Caps_Lock: clear
Eisu_toggle: clear
key_binder:
bindings:
# commonly used paging keys
- { when: composing, accept: ISO_Left_Tab, send: Page_Up }
- { when: composing, accept: Shift+Tab, send: Page_Up }
- { when: composing, accept: Tab, send: Page_Down }
- { when: has_menu, accept: minus, send: Page_Up }
- { when: has_menu, accept: equal, send: Page_Down }
- { when: paging, accept: comma, send: Page_Up }
- { when: has_menu, accept: period, send: Page_Down }
- { when: paging, accept: bracketleft, send: Page_Up }
- { when: has_menu, accept: bracketright, send: Page_Down }
- {accept: Escape, toggle: ascii_mode, when: always}
- {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, when: composing}
- {accept: ISO_Left_Tab, send: "Shift+Left", when: composing}
- {accept: "Shift+Tab", send: "Shift+Left", when: composing}
- {accept: Tab, send: "Shift+Right", when: composing}
- {accept: minus, send: Page_Up, when: has_menu}
- {accept: equal, send: Page_Down, when: has_menu}
- {accept: comma, send: Page_Up, when: paging}
- {accept: period, send: Page_Down, when: has_menu}
# - {accept: "Control+Shift+1", select: .next, when: always}
# - {accept: "Control+Shift+2", toggle: ascii_mode, when: always}
# - {accept: "Control+Shift+3", toggle: full_shape, when: always}
# - {accept: "Control+Shift+4", toggle: simplification, when: always}
# - {accept: "Control+Shift+5", toggle: extended_charset, when: always}
# - {accept: "Control+Shift+exclam", select: .next, when: always}
# - {accept: "Control+Shift+at", toggle: ascii_mode, when: always}
# - {accept: "Control+Shift+numbersign", toggle: full_shape, when: always}
- {accept: "Control+Shift+dollar", toggle: simplification, when: always}
- {accept: "Control+Shift+percent", toggle: extended_charset, when: always}
- {accept: "Shift+space", toggle: ascii_punct, when: always}
# - {accept: "Shift+space", toggle: full_shape, when: always}
# - {accept: "Control+period", toggle: ascii_punct, when: always}
translator/dictionary: pinyin_simp.extended # (※4) 并继续使用 pinyin_simp 字典