Last active
August 29, 2015 14:04
-
-
Save wanewang/f12a9b0121e71dd1888e to your computer and use it in GitHub Desktop.
需注意schema_list及 ascii_composer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Rime default settings | |
| # encoding: utf-8 | |
| config_version: "0.34" | |
| # 原本的輸入法只有拼音 | |
| # 需修改schema_list | |
| # 改成 bopomofo | |
| schema_list: | |
| - schema: bopomofo | |
| switcher: | |
| caption: 〔方案選單〕 | |
| hotkeys: | |
| - Control+grave | |
| - Control+Shift+grave | |
| - F4 | |
| save_options: | |
| - full_shape | |
| - ascii_punct | |
| - simplification | |
| - extended_charset | |
| menu: | |
| page_size: 5 | |
| punctuator: | |
| full_shape: | |
| ' ' : { commit: ' ' } | |
| ',' : { commit: , } | |
| '.' : { commit: 。 } | |
| '<' : [ 《, 〈, «, ‹ ] | |
| '>' : [ 》, 〉, », › ] | |
| '/' : [ /, ÷ ] | |
| '?' : { commit: ? } | |
| ';' : { commit: ; } | |
| ':' : { commit: : } | |
| '''' : { pair: [ '‘', '’' ] } | |
| '"' : { pair: [ '“', '”' ] } | |
| '\' : [ 、, \ ] | |
| '|' : [ ·, |, '§', '¦' ] | |
| '`' : ` | |
| '~' : ~ | |
| '!' : { commit: ! } | |
| '@' : [ @, ☯ ] | |
| '#' : [ #, ⌘ ] | |
| '%' : [ %, '°', '℃' ] | |
| '$' : [ ¥, '$', '€', '£', '¥', '¢', '¤' ] | |
| '^' : { commit: …… } | |
| '&' : & | |
| '*' : [ *, ·, ・, ×, ※, ❂ ] | |
| '(' : ( | |
| ')' : ) | |
| '-' : - | |
| '_' : —— | |
| '+' : + | |
| '=' : = | |
| '[' : [ 「, 【, 〔, [ ] | |
| ']' : [ 」, 】, 〕, ] ] | |
| '{' : [ 『, 〖, { ] | |
| '}' : [ 』, 〗, } ] | |
| half_shape: | |
| ',' : { commit: , } | |
| '.' : { commit: 。 } | |
| '<' : [ 《, 〈, «, ‹ ] | |
| '>' : [ 》, 〉, », › ] | |
| '/' : [ 、, '/', /, ÷ ] | |
| '?' : { commit: ? } | |
| ';' : { commit: ; } | |
| ':' : { commit: : } | |
| '''' : { pair: [ '‘', '’' ] } | |
| '"' : { pair: [ '“', '”' ] } | |
| '\' : [ 、, '\', \ ] | |
| '|' : [ ·, '|', |, '§', '¦' ] | |
| '`' : '`' | |
| '~' : [ '~', ~ ] | |
| '!' : { 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+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 } | |
| # 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 } | |
| # hotkey switch | |
| - { when: always, 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: full_shape } | |
| - { when: always, accept: Control+period, toggle: ascii_punct } | |
| recognizer: | |
| patterns: | |
| email: "^[A-Za-z][-_.0-9A-Za-z]*@.*$" | |
| uppercase: "[A-Z][-_+.'0-9A-Za-z]*$" | |
| url: "^(www[.]|https?:|ftp[.:]|mailto:|file:).*$|^[a-z]+[.].+$" | |
| # 使用capslock切換中英要把good_old_caps_lock改成false | |
| # shift, control不切換中英就設定成noop | |
| # 設定解釋可參考此篇 | |
| # https://gist.github.com/lotem/2981316 | |
| ascii_composer: | |
| good_old_caps_lock: false | |
| switch_key: | |
| Shift_L: noop | |
| Shift_R: noop | |
| Control_L: noop | |
| Control_R: noop | |
| Caps_Lock: commit_code | |
| Eisu_toggle: clear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment