Last active
December 20, 2015 22:29
-
-
Save yxjxx/6205380 to your computer and use it in GitHub Desktop.
ibus-rime配置文件修改中西文切换按键:新增文件 default.custom.yaml
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
# default.custom.yaml | |
# | |
# 修改中西文切换按键 | |
# 佛振配製 :-) | |
# Modify by yxjxx | |
# | |
# | |
# 切換方式代碼: | |
# noop:不切換(Control鍵的默認行爲) | |
# inline_ascii:當已輸入編碼時,不上屏、內聯式編輯西文,回車上屏後復位爲中文模式(左Shift默認行爲) | |
# commit_text:當已輸入編碼時,文字上屏並切換到西文(右Shift默認行爲) | |
# commit_code:當已輸入編碼時,編碼上屏並切換到西文 | |
# | |
# 位置: | |
# ~/.config/ibus/rime (Linux) | |
# ~/Library/Rime (Mac OS) | |
# %APPDATA%\Rime (Windows) | |
# | |
# 於重新部署後生效 | |
# 部署方法 $rm ~/.config/ibus/rime/default.yaml; ibus-daemon –drx | |
patch: | |
#"menu/page_size": 9 #候选词的个数(默认为5个) | |
##########中西文切换Shift-->Ctrl | |
"ascii_composer/switch_key": | |
Control_L: commit_code | |
Control_R: commit_code | |
Shift_L: noop | |
Shift_R: noop | |
schema_list: | |
- {schema: luna_pinyin_simp} | |
#################### | |
# 全局範圍識別輸入串爲 rime + 任意數字序列,以及形如 rimeime-1.2.3 的常用西文短語 | |
# 也可將本組 patch 寫入 <輸入方案ID>.custom.yaml 使這組規則僅在一款輸入方案中有效 | |
# | |
# 第一例,輸入 rime 之後,再輸入任意一個數字,則立即識別爲西文輸入 | |
# 再加上 default.yaml 原有的 email 規則,識別包含 @ 字符的郵箱,於是可以一氣呵成 [email protected] | |
# 第二例,輸入到 rimeime 時,立即識別爲西文輸入,並可跟隨任意位數字及指定的符號 | |
#recognizer/patterns/rime123: "^rime[0-9]+$" | |
#recognizer/patterns/rimeime: "^rimeime[-_.0-9]*$" | |
recognizer/patterns/yangjing123: "^yangjing[0-9]+$" #实现yangjing2直接识别成西文 | |
recognizer/patterns/yangjing: "^yangjing[-_.0-9]*$" #实现yangjing-_.直接识别成西文 | |
############################################# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment