Created
June 22, 2016 06:36
-
-
Save Chunlin-Li/d85292f8b62514e7753df5d1b722026f to your computer and use it in GitHub Desktop.
rime fcitx config
This file contains 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 alternative settings | |
# encoding: utf-8 | |
# | |
# difference from default settings: | |
# 1. ascii-style punctuation in half-shape mode | |
# 2. [ ] as paging keys | |
# | |
# save this file as: | |
# (Linux) ~/.config/ibus/rime/alternative.yaml | |
# (Mac OS) ~/Library/Rime/alternative.yaml | |
# (Windows) "%APPDATA%\Rime\alternative.yaml" | |
# | |
# edit <SCHEMA_ID>.custom.yaml: | |
# >> patch: | |
# >> 'punctuator/import_preset': alternative | |
# >> 'key_binder/import_preset': alternative | |
# | |
# for detailed explanation, refer to: | |
# http://code.google.com/p/rimeime/wiki/CustomizationGuide#%E4%BD%BF%E7%94%A8%E5%85%A8%E5%A5%97%E8%A5%BF%E6%96%87%E6%A8%99%E9%BB%9E | |
config_version: "0.3" | |
punctuator: | |
full_shape: | |
" " : { commit: " " } | |
"," : { commit: , } | |
"." : { commit: 。 } | |
"<" : [ 《, 〈, «, ‹ ] | |
">" : [ 》, 〉, », › ] | |
"/" : [ 、, /, "/", ÷ ] | |
"?" : { commit: ? } | |
";" : { commit: ; } | |
":" : : | |
"'" : { pair: [ "‘", "’" ] } | |
"\"" : { pair: [ "“", "”" ] } | |
"\\" : [ 、, \, "\\" ] | |
"|" : [ ・, |, "|", "§", "¦" ] | |
"`" : [ `, "`" ] | |
"~" : [ 〜, "~", ~, 〰 ] | |
"!" : { commit: ! } | |
"@" : [ @, "@", ☯ ] | |
"#" : [ #, "#", ⌘ ] | |
"%" : [ %, "%", "°", "℃" ] | |
"$" : [ ¥, "$", "€", "£", "¥", "¢", "¤" ] | |
"^" : { commit: …… } | |
"&" : [ &, "&" ] | |
"*" : [ *, "*", ・, ×, ※, ❂, · ] | |
"(" : ( | |
")" : ) | |
"-" : [ -, "-" ] | |
"_" : —— | |
"+" : [ +, "+" ] | |
"=" : [ =, "=" ] | |
"[" : [ 「, 【, 〔, [ ] | |
"]" : [ 」, 】, 〕, ] ] | |
"{" : [ 『, 〖, { ] | |
"}" : [ 』, 〗, } ] | |
half_shape: | |
"," : { commit: "," } | |
"." : { commit: "." } | |
"<" : "<" | |
">" : ">" | |
"/" : "/" | |
"?" : { commit: "?" } | |
";" : { commit: ";" } | |
":" : { commit: ":" } | |
"'" : "'" | |
"\"" : "\"" | |
"\\" : "\\" | |
"|" : "|" | |
"`" : "`" | |
"~" : "~" | |
"!" : { commit: "!" } | |
"@" : "@" | |
"#" : "#" | |
"%" : "%" | |
"$" : "$" | |
"^" : "^" | |
"&" : "&" | |
"*" : "*" | |
"(" : "(" | |
")" : ")" | |
"-" : "-" | |
"_" : "_" | |
"+" : "+" | |
"=" : "=" | |
"[" : "[" | |
"]" : "]" | |
"{" : "{" | |
"}" : "}" | |
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 } |
This file contains 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.35" | |
schema_list: | |
- schema: luna_pinyin_simp | |
switcher: | |
caption: 〔方案選單〕 | |
hotkeys: | |
- Control+grave | |
# - Control+Shift+grave | |
# - F4 | |
save_options: | |
# - full_shape | |
- ascii_punct | |
- simplification | |
- extended_charset | |
fold_options: true | |
abbreviate_options: true | |
option_list_separator: '/' | |
menu: | |
page_size: 4 | |
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]+[.].+$" | |
ascii_composer: | |
good_old_caps_lock: true | |
switch_key: | |
Shift_L: inline_ascii | |
Shift_R: commit_text | |
Control_L: noop | |
Control_R: noop | |
Caps_Lock: clear | |
Eisu_toggle: clear |
This file contains 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 schema | |
# encoding: utf-8 | |
schema: | |
schema_id: luna_pinyin_simp | |
name: 朙月拼音·简化字 | |
version: "0.22" | |
author: | |
- 佛振 <chen.sst@gmail.com> | |
description: | | |
朙月拼音,簡化字輸出模式。 | |
switches: | |
- name: ascii_mode | |
reset: 0 | |
states: [ 中文 ] | |
- name: zh_simp | |
reset: 1 | |
engine: | |
processors: | |
- ascii_composer | |
- recognizer | |
- key_binder | |
- speller | |
- punctuator | |
- selector | |
- navigator | |
- express_editor | |
segmentors: | |
- ascii_segmentor | |
- matcher | |
- abc_segmentor | |
- punct_segmentor | |
- fallback_segmentor | |
translators: | |
- punct_translator | |
- table_translator@custom_phrase | |
- script_translator | |
filters: | |
- simplifier | |
- uniquifier | |
speller: | |
alphabet: zyxwvutsrqponmlkjihgfedcba | |
delimiter: " '" | |
algebra: | |
- erase/^xx$/ | |
- abbrev/^([a-z]).+$/$1/ | |
- abbrev/^([zcs]h).+$/$1/ | |
- derive/^([nl])ve$/$1ue/ | |
- derive/^([jqxy])u/$1v/ | |
- derive/un$/uen/ | |
- derive/ui$/uei/ | |
- derive/iu$/iou/ | |
- derive/([aeiou])ng$/$1gn/ | |
- derive/([dtngkhrzcs])o(u|ng)$/$1o/ | |
- derive/ong$/on/ | |
- derive/ao$/oa/ | |
- derive/([iu])a(o|ng?)$/a$1$2/ | |
translator: | |
dictionary: luna_pinyin | |
prism: luna_pinyin_simp | |
preedit_format: | |
- xform/([nl])v/$1ü/ | |
- xform/([nl])ue/$1üe/ | |
- xform/([jqxy])v/$1u/ | |
custom_phrase: | |
dictionary: "" | |
user_dict: custom_phrase | |
db_class: stabledb | |
enable_completion: false | |
enable_sentence: false | |
initial_quality: 1 | |
simplifier: | |
option_name: zh_simp | |
punctuator: | |
import_preset: alternative | |
key_binder: | |
import_preset: default | |
bindings: | |
- { when: always, accept: Control+Shift+4, toggle: zh_simp } | |
- { when: always, accept: Control+Shift+dollar, toggle: zh_simp } | |
recognizer: | |
import_preset: default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment