2013年10月17日星期四

RIME自定義化

按照個人習慣定制RIME輸入法
停用左右shift功能,按SHIFT不會切換中/英輸入功能
停recognizer大寫圖案,SHIFT+字母直接打大寫英文字母不用按多一下Enter
直交〜全形符號,喜歡直接打這個符號。其他符號其實也可以照辦煮碗


$ cat ~/.config/ibus/rime/default.yaml
# Rime default settings
# vim: set sw=2 sts=2 et:
# encoding: utf-8

config_version: "0.13"

schema_list:
- schema: luna_pinyin
- schema: cangjie5
- schema: luna_pinyin_fluency
- schema: luna_pinyin_simp

switcher:
caption: 〔方案選單〕
hotkeys:
- Control+grave
- Control+Shift+grave
- F4
save_options:
- full_shape
- simplification
- extended_charset

menu:
page_size: 5

punctuator:
full_shape:
" " : { commit: " " }
"," : { commit: , }
"." : { commit: 。 }
"<" : [ 《, 〈, «, ‹ ]
    ">" : [ 》, 〉, », › ]
"/" : [ /, "/", ÷ ]
"?" : { commit: ? }
";" : { commit: ; }
":" : :
"'" : { pair: [ "‘", "’" ] }
"\"" : { pair: [ "“", "”" ] }
"\\" : [ 、, \, "\\" ]
"|" : [ ・, |, "|", "§", "¦" ]
"`" : [ `, "`" ]
#"~" : [ 〜, "~", ~, 〰 ]
"~" : { commit: 〜}
"!" : { commit: ! }
"@" : [ @, "@", ☯ ]
"#" : [ #, "#", ⌘ ]
"%" : [ %, "%", "°", "℃" ]
"$" : [ ¥, "$", "€", "£", "¥", "¢", "¤" ]
"^" : { commit: …… }
"&" : [ &, "&" ]
"*" : [ *, "*", ・, ×, ※, ❂, · ]
"(" : (
")" : )
"-" : [ -, "-" ]
"_" : ——
"+" : [ +, "+" ]
"=" : [ =, "=" ]
"[" : [ 「, 【, 〔, [ ]
"]" : [ 」, 】, 〕, ] ]
"{" : [ 『, 〖, { ]
"}" : [ 』, 〗, } ]
half_shape:
"," : { commit: , }
"." : { commit: 。 }
"<" : [ 《, 〈, «, ‹ ]
    ">" : [ 》, 〉, », › ]
"/" : [ 、, "/", /, ÷ ]
"?" : { commit: ? }
";" : { commit: ; }
":" : :
"'" : { pair: [ "‘", "’" ] }
"\"" : { pair: [ "“", "”" ] }
"\\" : [ 、, "\\", \ ]
"|" : [ ・, "|", |, "§", "¦" ]
"`" : "`"
"~" : { commit: 〜}
#"~" : [ "~", 〜, ~, 〰 ]
"!" : { commit: ! }
"@" : "@"
"#" : "#"
"%" : [ "%", %, "°", "℃" ]
"$" : [ ¥, "$", "€", "£", "¥", "¢", "¤" ]
"^" : { commit: …… }
"&" : "&"
"*" : [ "*", *, ・, ×, ※, ❂, · ]
"(" : (
")" : )
"-" : "-"
"_" : ——
"+" : "+"
"=" : "="
"[" : [ 「, 【, 〔, [ ]
"]" : [ 」, 】, 〕,  ] ]
"{" : [ 『, 〖, { ]
"}" : [ 』, 〗, } ]

key_binder:
bindings:
# Emacs style
- { 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+g, send: Escape }
- { when: composing, accept: Alt+v, send: Page_Up }
- { when: composing, accept: Control+v, send: Page_Down }
# 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: paging, 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 }

recognizer:
patterns:
email: "^[a-z][-_.0-9a-z]*@.*$"
#uppercase: "[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(www[.]|https?:|ftp:|mailto:).*$|^[a-z]+[.].+$"

ascii_composer:
switch_key:
#Shift_L: inline_ascii
Shift_L: noop
#Shift_R: commit_text
Shift_R: noop
Control_L: noop
Control_R: noop


++++++++++++

M
ac OS平台順便把squirrel.yaml也改一下
我喜歡在iterm2裏繼續使用輸入法的,把對應幾行刪掉即可。
發佈留言

熱門文章