Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponpon55837 committed Dec 10, 2021
1 parent 5b2c1de commit acaf96d
Showing 1 changed file with 55 additions and 84 deletions.
139 changes: 55 additions & 84 deletions bopomo_onion.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ switches:
- name: ascii_mode
reset: 0
states: ["中文", "英文"]
- name: full_shape
reset: 0
states: ["半形", "全形"]
- name: ascii_punct
reset: 0
states: ["。,", ".,"]
- name: simplification
reset: 0
states: ["原體", "简体"]
# - name: full_shape
# reset: 0
# states: ["半形", "全形"]
# - name: ascii_punct
# reset: 0
# states: ["。,", ".,"]
# - name: simplification
# reset: 0
# states: ["原體", "简体"]
# - options: [ utf8, big5, gbk ]
# # reset: 0
# states:
Expand Down Expand Up @@ -63,12 +63,10 @@ engine:
- script_translator

menu:
# alternative_select_keys: "QAZWSXEDCRFV"
alternative_select_labels: [ QY, AH, ZN, WU, SJ, XM ]
alternative_select_keys: "123456789"
page_size: 6
############################### 濾鏡 ##################################
simplifier:
opencc_config: tw2s.json
tips: all

# big5:
Expand All @@ -83,9 +81,9 @@ speller:
delimiter: "\\"
use_space: true
algebra:
##### 非正確注音(補空碼或慣用發音)轉寫 #####
##### 非正確注音(補空碼或慣用發音)轉寫 #####
- xform/[)(]//
########################################
########################################
- xform/iu/iou/
- xform/ui/uei/
- xform/ong/ung/
Expand Down Expand Up @@ -193,8 +191,8 @@ punctuator:
"=" : [ "=", "々", "〃", "〻" ]
"[" : [ "「", 〈, 〔, "‘", [, {, <, (, ﹝, ﹛, ﹤, ﹙, ‹, ˂, "⁽", "₍", "⁅", "「", "[", "{", "<", "(" ]
"]" : [ "」", 〉, 〕, "’", ], }, >, ), ﹞, ﹜, ﹥, ﹚, ›, ˃, "⁾", "₎", "⁆", "」", "]", "}", ">", ")" ]
"{" : { commit: "" }
"}" : { commit: "" }
"{" : { commit: "" }
"}" : { commit: "" }
":" : { commit: ":" }
"'" : [ "、","—", "──", "——", "⸺", "‧", "·", "●", "•", "・", "・" ]
"\"" : { commit: ";" }
Expand All @@ -210,7 +208,7 @@ punctuator:
"?" : { commit: "?" }
":" : { commit: ":" }
"'" : [ "、","—", "──", "——", "⸺", "‧", "·", "●", "•", "・", "・" ]
"\"" : { commit: "" }
"\"" : { commit: "" }
"\\" : [ "\\", "\", "﹨" ]
"|" : [ "|", "|", "︱", "§", "¶", "⁋", "❡", "⁌", "⁍", "∣", "︳", "│", "┃", "¦", "╎", "╏", "┆", "┇", "┊", "┋", "‖", "║", "‖", "∥", "᱿", "᰼" ]
"`" : [ "`" ]
Expand All @@ -231,8 +229,8 @@ punctuator:
"=" : [ "=", "々", "〃", "〻" ]
"[" : [ "「", 〈, 〔, "‘", [, {, <, (, ﹝, ﹛, ﹤, ﹙, ‹, ˂, "⁽", "₍", "⁅", "「", "[", "{", "<", "(" ]
"]" : [ "」", 〉, 〕, "’", ], }, >, ), ﹞, ﹜, ﹥, ﹚, ›, ˃, "⁾", "₎", "⁆", "」", "]", "}", ">", ")" ]
"{" : { commit: "" }
"}" : { commit: "" }
"{" : { commit: "" }
"}" : { commit: "" }
# "3" : [ "https://", "http://", "ftp://", "mailto://", "file://" ]
# "4" : [ "www.", "line.me/", "/Users/", "/Library/", "C:\\>", "D:\\>", '<a href=""></a>', '<img sre=""></img>', '<a href="mailto:"></a>', '<a href=""><img src="" border="0"></a>' ]
# "6" : [ ".com", ".org", ".net", ".co", ".gov", ".edu", ".info" ]
Expand All @@ -241,82 +239,58 @@ punctuator:
key_binder:
import_preset: default
bindings:
### RIME 原設定鍵位衝突 ###
### 避大千注音鍵位和 RIME 原設定鍵位衝突 ###
- {accept: comma, send: comma, when: has_menu}
- {accept: comma, send: comma, when: paging}
- {accept: period, send: period, when: has_menu}
- {accept: period, send: period, when: paging}
- {accept: minus, send: minus, when: has_menu}
- {accept: minus, send: minus, when: paging}
- {accept: equal, send: equal, when: has_menu}
- {accept: equal, send: equal, when: paging}
### 切分移位 ###
- {accept: Up, send: KP_Left, when: composing} #左移一個注音
- {accept: Up, send: Up, when: paging} #修正上條目出現的bug
##
- {accept: Right, send: Shift+Right, when: composing} #右移一整個字
- {accept: Shift+Right, send: Right, when: composing} #右移一個注音
- {accept: Shift+Left, send: KP_Left, when: composing} #左移一個注音
#關# - {accept: Shift+space, send: Shift+Right, when: composing} #首節
# - {accept: Shift+space, send: KP_Left, when: composing} #左移一個注音
# - {accept: Left, send: KP_Left, when: composing} #左移一個注音
- {accept: Shift+space, send: Shift+Right, when: composing} #首節
# - {accept: Shift+space, send: KP_Left, when: composing} #左移一個注音
# - {accept: Left, send: KP_Left, when: composing} #左移一個注音
##
# - {accept: Shift+Tab, send: Right, when: composing} #右移一個注音
# - {accept: Tab, send: KP_Left, when: composing} #左移一個注音
# - {accept: Shift+Tab, send: Right, when: composing} #右移一個注音
# - {accept: Tab, send: KP_Left, when: composing} #左移一個注音
### 選字翻頁 ###
- {accept: Left, send: Page_Up, when: paging} #直式選單用 #has_menu
- {accept: Right, send: Page_Down, when: paging} #直式選單用 #has_menu
#關# - {accept: Up, send: Page_Up, when: paging} #橫式選單用
#關# - {accept: Down, send: Page_Down, when: paging} #橫式選單用
#關# - {accept: Left, send: Left, when: has_menu} #橫式選單用 #send: Shift+Up
#關# - {accept: Right, send: Right, when: has_menu} #橫式選單用 #send: Shift+Down
#其他快捷鍵翻頁
- {accept: Shift+Up, send: Page_Up, when: paging} #選字時「Shift」+「」翻頁。
# - {accept: Up, send: Page_Up, when: paging} #橫式選單用
# - {accept: Down, send: Page_Down, when: paging} #橫式選單用
# - {accept: Left, send: Left, when: has_menu} #橫式選單用 #send: Shift+Up
# - {accept: Right, send: Right, when: has_menu} #橫式選單用 #send: Shift+Down
- {accept: Tab, send: Page_Down, when: has_menu} #「tab」翻頁。
- {accept: Shift+Tab, send: Page_Up, when: paging} #選字時「Shift」+「tab」翻頁。
- {accept: Shift+Down, send: Page_Down, when: has_menu} #選字時「Shift」+「下」翻頁。
#關# - {accept: Shift+Tab, send: Page_Up, when: paging} #選字時「Shift」+「tab」翻頁。
#關# - {accept: Tab, send: Page_Down, when: has_menu} #「tab」翻頁。
- {accept: Shift+C, send: Page_Up, when: has_menu}
- {accept: Shift+space, send: Page_Down, when: has_menu} #選字時「Shift」+「空白鍵」翻頁。 #send: Right #send: Down
- {accept: Shift+O, send: Page_Up, when: has_menu}
- {accept: Shift+P, send: Page_Down, 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}
#右邊選字
- {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}
##回復到 composing 狀態:
#關# - {accept: Shift+space, send: Shift+Left, when: paging} #於選單列選字時,回復到輸入列(避免有時回復不了,故增加)。
- {accept: Tab, send: Shift+Left, when: paging} #於選單列選字時,回復到輸入列(避免有時回復不了,故增加)。
- {accept: Shift+Up, send: Page_Up, when: paging} #選字時「Shift」+「上」翻頁。
- {accept: Shift+space, send: Shift+Left, when: paging} #於選單列選字時,回復到輸入列(避免有時回復不了,故增加)。
# - {accept: Tab, send: Shift+Left, when: paging} #於選單列選字時,回復到輸入列(避免有時回復不了,故增加)。
# - {accept: Shift+space, send: Page_Down, when: has_menu} #選字時「Shift」+「空白鍵」翻頁。 #send: Right #send: Down
### 空白鍵 ###
- {accept: space, send: Return, when: paging} #方向鍵選字時,space直接上屏(避免被一聲空格影響)
# - {accept: space, send: Page_Down, when: paging} #方向鍵選字時,space翻頁(上條遮屏需開啟,否則「=」+「符號」會誤按)
# - {accept: space, send: Down, when: has_menu}
# - {accept: space, send: Down, when: paging}
# - {accept: space, send: space, when: composing}
## - {accept: space, send: Escape, when: composing} #空碼時,按空格清除
## - {accept: space, send: space, when: has_menu} #非空碼時,空白還是空白
# - {accept: space, send: Page_Down, when: paging} #方向鍵選字時,space翻頁(上條遮屏需開啟,否則「=」+「符號」會誤按)
## - {accept: space, send: Down, when: has_menu}
## - {accept: space, send: Down, when: paging}
## - {accept: space, send: space, when: composing}
## - {accept: space, send: space, when: has_menu} #非空碼時,空白還是空白
## - {accept: space, send: Escape, when: composing} #空碼時,按空格清除
### 刪除鍵 ###
- {accept: BackSpace, send: Control+BackSpace, when: has_menu} #〔關〕刪除前一個拼音字符〔開〕:刪除整組拼音字符(一個字)
- {accept: Shift+BackSpace, send: BackSpace, when: has_menu}
#關# - {accept: backslash, send: BackSpace, when: has_menu} #「\」鍵位刪除一個拼音字符。
# - {accept: backslash, send: Shift+BackSpace, when: has_menu} #「\」鍵位刪除整組拼音字符(一個字)。
#關# - {accept: backslash, send: Shift+Return, when: has_menu} #「\」鍵位上屏英文。
- {accept: backslash, send: BackSpace, when: has_menu} #「\」鍵位刪除一個拼音字符。
# - {accept: backslash, send: Shift+BackSpace, when: has_menu} #「\」鍵位刪除整組拼音字符(一個字)。
# - {accept: backslash, send: Shift+Return, when: has_menu} #「\」鍵位上屏英文。
### 功能快捷鍵 ###
# - {accept: Control+minus, toggle: back_mark, when: always } #「國際音標和符號」提示碼開關
#關# - {accept: Control+apostrophe, toggle: zh_tw, when: always} #accept: Control+semicolon
#關# - {accept: Control+Shift+6, toggle: zh_tw, when: always} #誤按沒警示,避免誤按,可關閉!(開關台灣習慣用字)
#關# - {accept: Control+Shift+7, toggle: emoji_segestion, when: always} #誤按沒警示,避免誤按,可關閉!(開關跟隨的emoji)
#關# - {accept: Control+Shift+8, toggle: back_mark, when: always} #誤按沒警示,避免誤按,可關閉!(開關標註)
# - {accept: Return, send: space, when: has_menu}
# - {accept: Control+apostrophe, toggle: zh_tw, when: always} #accept: Control+semicolon
## - {accept: Control+Shift+6, toggle: zh_tw, when: always} #誤按沒警示,避免誤按,可關閉!(開關台灣習慣用字)
## - {accept: Control+Shift+7, toggle: emoji_segestion, when: always} #誤按沒警示,避免誤按,可關閉!(開關跟隨的emoji)
## - {accept: Control+Shift+8, toggle: back_mark, when: always} #誤按沒警示,避免誤按,可關閉!(開關標註)
## - {accept: Return, send: space, when: has_menu}
### 避聲調重複按 ###
- {accept: 3, send: Escape, when: composing}
- {accept: 3, send: 3, when: has_menu}
Expand All @@ -326,14 +300,11 @@ key_binder:
- {accept: 6, send: 6, when: has_menu}
- {accept: 7, send: Escape, when: composing}
- {accept: 7, send: 7, when: has_menu}
### ctrl 打出標點 ###
#關# - {accept: "Control+comma", send: "less", when: always} #「逗號」#接受「Contol」+「,」直出「<」
#關# - {accept: "Control+period", send: "greater", when: always} #「句號」#接受「Contol」+「.」直出「>」
#關# - {accept: "Control+slash", send: "question", when: always} #「問號」#接受「Contol」+「/」直出「?」
#關# - {accept: "Control+apostrophe", send: "quotedbl", when: always} #「頓號」#接受「Contol」+「'」直出「"」
### 空白鍵不上屏設置 ###
# - {accept: space, send: bar, when: composing}
# - {accept: space, send: space, when: has_menu}
### shift 和 ctrl調換 ###
# - {accept: "Control+comma", send: "less", when: always} #「逗號」#接受「Contol」+「,」直出「<」
# - {accept: "Control+period", send: "greater", when: always} #「句號」#接受「Contol」+「.」直出「>」
# - {accept: "Control+slash", send: "question", when: always} #「問號」#接受「Contol」+「/」直出「?」
# - {accept: "Control+apostrophe", send: "quotedbl", when: always} #「頓號」#接受「Contol」+「'」直出「"」

editor:
bindings:
Expand All @@ -344,9 +315,9 @@ editor:
########################## 用正則調出各種功能 ##############################
recognizer:
patterns:
# uppercase: "^[A-Z][-_+.'0-9A-Za-z]*$"
uppercase: "^[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(https?:|ftp:|mailto:|file:).*$"
email: "^[a-z][-_.0-9a-z]*@.*$"
punct: "(?<![=`])``?[-,;/0-9a-z]*$|[[][[]?'?$|[]][]]?'?$|[[][]]$|[[][[][]][]]$|[[]'[]]'$|[[][[]'[]][]]'$|'''?$|===?$|=``?$|=''?$|=''?=''?$|=[][][][]?$|=[][][][]?=[][][][]?$|=[-,./;][-,./;]? ?$|=,,=[.][.] ?$|=[0-9] ?$|=9=0 ?$|==[].,90'[]+ ?$"
punct: "(?<![=`])`[`]?[-,;/0-9a-z]*$|[[][[]?[']?$|[]][]]?[']?$|[[][]]$|[[][[][]][]]$|[[]['][]][']$|[[][[]['][]][]][']$|[']['][']?$|[=][=][=]?$|[=][`][`]?$|[=]['][']?$|[=]['][']?[=]['][']?$|[=][][][][]?$|[=][][][][]?[=][][][][]?$|[=][-,./;][-,./;]? ?$|[=][,][,][=][.][.] ?$|[=][0-9] ?$|[=][9][=][0] ?$|[=][=][].,90'[]+ ?$"
reverse2_lookup: "=[a-z]* ?$"
# lua: "^'/[';]?[a-z0-9./-]*$"
# lua: "^'/[a-z0-9/-]*$"

0 comments on commit acaf96d

Please sign in to comment.