想請問如何改成Shift+數字鍵選字 #43
-
|
不好意思有個問題想詢問大大: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
沒說哪個方案呀?!
以下修改「Shift」+「數字」可選字
去除以下內容:# 以下 alternative_select_labels 只是 menu 顯示用,沒實際作用。
# 有一個可作用之訂製為 alternative_select_keys,別混淆。
menu:
alternative_select_labels: [ 𝚀𝚈, 𝙰𝙷, 𝚉𝙽, 𝚆𝚄, 𝚂𝙹, 𝚇𝙼 ] # 強制等寬體
page_size: 6
# 這邊為實際作用之處。
key_binder:
bindings:
#左邊選字
- {accept: Shift+Q, send: Control+1, when: has_menu}
- {accept: Shift+A, send: Control+2, when: has_menu}
- {accept: Shift+Z, send: Control+3, when: has_menu}
- {accept: Shift+W, send: Control+4, when: has_menu}
- {accept: Shift+S, send: Control+5, when: has_menu}
- {accept: Shift+X, send: Control+6, when: has_menu}
#右邊選字
- {accept: Shift+Y, send: Control+1, when: has_menu}
- {accept: Shift+H, send: Control+2, when: has_menu}
- {accept: Shift+N, send: Control+3, when: has_menu}
- {accept: Shift+U, send: Control+4, when: has_menu}
- {accept: Shift+J, send: Control+5, when: has_menu}
- {accept: Shift+M, send: Control+6, when: has_menu}
recognizer:
patterns:
# 以下會影響「Shift」+「2(@)」選字,需刪除!
email: "^[a-z][-_.0-9a-z]*@.*$"參考1-1:https://github.com/oniondelta/Onion_Rime_Files/blob/main/rimefiles/bopomo_onion.schema.yaml#L85 改成以下:menu:
alternative_select_labels: ['⇧1', '⇧2', '⇧3', '⇧4', '⇧5', '⇧6', '⇧7', '⇧8', '⇧9', '⇧0']
page_size: 10
# 「KP_1」為右邊「數字小板鍵 1」,預設選字等同「Control+1」,以此類推!
key_binder:
bindings:
# 「shift」+「數字」選字(Mac)
- { when: has_menu, accept: Shift+exclam, send: KP_1 }
- { when: has_menu, accept: Shift+at, send: KP_2 }
- { when: has_menu, accept: Shift+numbersign, send: KP_3 }
- { when: has_menu, accept: Shift+dollar, send: KP_4 }
- { when: has_menu, accept: Shift+percent, send: KP_5 }
- { when: has_menu, accept: Shift+asciicircum, send: KP_6 }
- { when: has_menu, accept: Shift+ampersand, send: KP_7 }
- { when: has_menu, accept: Shift+asterisk, send: KP_8 }
- { when: has_menu, accept: Shift+parenleft, send: KP_9 }
- { when: has_menu, accept: Shift+parenright, send: KP_0 }
# 「shift」+「數字」選字(Win)
- { when: has_menu, accept: Shift+1, send: KP_1 }
- { when: has_menu, accept: Shift+2, send: KP_2 }
- { when: has_menu, accept: Shift+3, send: KP_3 }
- { when: has_menu, accept: Shift+4, send: KP_4 }
- { when: has_menu, accept: Shift+5, send: KP_5 }
- { when: has_menu, accept: Shift+6, send: KP_6 }
- { when: has_menu, accept: Shift+7, send: KP_7 }
- { when: has_menu, accept: Shift+8, send: KP_8 }
- { when: has_menu, accept: Shift+9, send: KP_9 }
- { when: has_menu, accept: Shift+0, send: KP_0 }
recognizer:
patterns:
# 以下會影響「Shift」+「2(@)」選字,需刪除!
# email: "^[a-z][-_.0-9a-z]*@.*$"參考3-1:https://github.com/rime/rime-bopomofo/blob/master/bopomofo.schema.yaml#L66C1-L67C90 備註:
|
Beta Was this translation helpful? Give feedback.

沒說哪個方案呀?!
通靈猜測是注音方案,但這邊注音方案也很多個呀!
以下修改「Shift」+「數字」可選字
去除以下內容: