Skip to content

Instantly share code, notes, and snippets.

@staticor
Last active April 2, 2020 21:26
Show Gist options
  • Save staticor/adcda6d54ac4ca1b9f663f25bb799d27 to your computer and use it in GitHub Desktop.
Save staticor/adcda6d54ac4ca1b9f663f25bb799d27 to your computer and use it in GitHub Desktop.
Rime input method configuration - default.custom.yaml
patch:
menu:
page_size: 7 # 设置候选字数量 个人喜好 7
schema_list:
- schema: wubi_pinyin # 五笔拼音混合輸入 偶尔生字需要拼音
- shcema: luna_pinyin_simp # luna 拼音 个人几乎不用
#下面定义“输入选单”的切换控制
switcher:
abbreviate_options: true
caption: "〔切换〕" #把默认的“方案選單”修改为了“切换”。
fold_options: true
hotkeys:
- "Control+s" #默认方案
- "Command+Shift+grave" #默认方案
option_list_separator: "/" #以下都为默认custom.yaml文件的默认配置,copy过来就可以。
save_options:
- full_shape
- ascii_punct
- simplification
- extended_charset
style:
color_schema: native
horizontal: true
font_face: "Hiragino Sans GB"
font_point: 16
inline_preedit: true
corner_radius: 10
border_height: 0
border_width: 0
line_spacing: 1
spacing: 5
punctuator:
half_shape:
"!": {commit: "!"}
"\"": {pair: ["“", "”"]}
"#": "#"
"$": ["¥", "$", "€", "£", "¥", "¢"]
"%": ["%", "°", "℃"]
"&": "&"
"'": {pair: ["‘", "’"]}
"(": "("
")": ")"
"*": ["*", "·", "×"]
"+": "+"
",": {commit: ","}
"-": "-"
.: {commit: "。"}
"/": {commit: "、"}
":": {commit: ":"}
";": {commit: ";"}
"<": {commit: "《"}
"=": "="
">": {commit: "》"}
"?": {commit: "?"}
"@": "@"
"[": {commit: "["}
"\\": {commit: "\\"}
"]": {commit: "]"}
"^": {commit: "……"}
_: "——"
"`": "`"
"{": {commit: "{"}
"|": {commit: "|"}
"}": {commit: "}"}
"~": {commit: "~"}
# ~/Library/Rime/squirrel.custom.yaml
patch:
app_options:
com.alfredapp.Alfred:
ascii_mode: true
com.apple.Terminal:
ascii_mode: true
no_inline: true
com.blacktree.Quicksilver:
ascii_mode: true
com.googlecode.iterm2:
ascii_mode: true
"com.runningwithcrayons.Alfred-2":
ascii_mode: true
org.vim.MacVim:
ascii_mode: true
no_inline: true
com.sublimetext.2:
ascii_mode: true
com.sublimetext.3:
ascii_mode: true
com.github.atom:
ascii_mode: true
com.apple.calculator:
ascii_mode: true
com.kapeli.dash:
ascii_mode: true
com.github.GitHub:
ascii_mode: true
com.zennaware.Cornerstone:
ascii_mode: true
us_keyboard_layout: true # 鍵盤選項:應用美式鍵盤佈局
show_notifications_when: growl_is_running
#狀態通知,默認裝有Growl時顯示,也可設爲全開(always)全關(never)
style/horizontal: true # 候選窗横向顯示
style/font_face: "儷黑 Pro" # 我喜歡的字體名稱
#style/font_face: "Helvetica Neue"
style/font_point: 21 # 字號
style/corner_radius: 4 # 窗口圓角半徑 4,4,6
style/border_height: 4 # 窗口邊界高度,大於圓角半徑才有效果
style/border_width: 6 # 窗口邊界寬度,大於圓角半徑才有效果
# style/color_scheme: lost_temple # 選擇配色方案 [ink]
style/color_scheme: clean_white # 選擇配色方案
# 註:預設的配色方案及代碼(指定爲 style/color_scheme )
# 碧水 - aqua
# 青天 - azure
# 明月 - luna
# 墨池 - ink
# 孤寺 - lost_temple
# 暗堂 - dark_temple
# 星際我爭霸 - starcraft
# 谷歌 - google
# Rime schema settings
# encoding: utf-8
patch:
switches:
- name: ascii_mode
reset: 1
states: ["中文", "西文"]
- name: full_shape
states: ["半角", "全角"]
- name: simplification
reset: 1
states: ["漢字", "汉字"]
- name: extended_charset
states: ["常用", "增廣" ]
- name: ascii_punct
states: ["。,", ".,"]
"engine/filters/@before 0": cjk_minifier
"engine/filters/@next": simplifier
"translator/enable_charset_filter": true
"speller/max_code_length": 10 #最长4码
"speller/auto_select": false #顶字上屏
"speller/auto_select_unique_candidate": false #无重码自动上屏
"translator/dictionary": wubi_pinyin.extended #加载五笔词库
"engine/translators/@next": table_translator@custom_phrase #加载自定义短语库
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
enable_completion: false
enable_sentence: false
initial_quality: 1
# 符号快速输入和部分符号的快速上屏
punctuator:
import_preset: alternative
half_shape:
"#": "#"
.: {commit: "。"}
"`": "`"
"~": "~"
"@": "@"
"=": "="
"/": ["/", "÷"]
'\': "、"
"_" : "──"
"'": {pair: ["「", "」"]}
"[": ["【", "["]
"]": ["】", "]"]
"$": ["¥", "$", "€", "£", "¢", "¤", "👍"]
"<": ["《", "〈", "«", "<"]
">": ["》", "〉", "»", ">"]
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]+[.]).*$"
punct: "^/([a-z]+|[0-9]0?)$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment