Last active
February 18, 2026 13:19
-
-
Save HoriLiu/86ae16c201687038ef38d706a05e1d0e to your computer and use it in GitHub Desktop.
Use RIME in ibus IME
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
| #sudo apt-get install ibus | |
| #Install RIME | |
| sudo apt-get install ibus-rime | |
| #Install bopomofo IME | |
| sudo apt-get install librime-data-terra-pinyin librime-data-bopomofo | |
| #Config in Home directory | |
| ~/.config/ibus/rime | |
| #New edit as a default.custom.yaml file | |
| patch: | |
| schema_list: | |
| - schema: bopomofo # 注音 | |
| #To make the customizations effective, you need to redeploy | |
| rm ~/.config/ibus/rime/default.yaml && ibus-daemon -drx | |
| #More setting | |
| https://gist.github.com/lotem/2309739 | |
| https://github.com/rime/weasel/issues/98#issuecomment-348450126 | |
| Linux keymap symbol names | |
| grave ` | |
| asciitilde ~ | |
| exclam ! | |
| at @ | |
| numbersign # | |
| dollar $ | |
| percent % | |
| asciicircum ^ | |
| ampersand & | |
| asterisk * | |
| parenleft ( | |
| parenright ) | |
| minus - | |
| equal = | |
| underscore _ | |
| plus + | |
| bracketleft [ | |
| bracketright ] | |
| braceleft { | |
| braceright } | |
| semicolon ; | |
| colon : | |
| apostrophe ' | |
| quotedbl " | |
| comma , | |
| period . | |
| less < | |
| greater > | |
| slash / | |
| question ? | |
| backslash \ | |
| bar | | |
| # inline_ascii 在輸入法的臨時西文編輯區內輸入字母、數字、符號、空格等,回車上屏後自動復位到中文 | |
| # commit_text 已輸入的候選文字上屏並切換至西文輸入模式 | |
| # commit_text, 按下的时候把输入对应的字上屏,commit_code 按下的时候把输入的字上屏,clear是不上屏,但是commit_text,commit_code都会切换到英 | |
| ----------------------------------------------------------------------------------------- | |
| https://gist.github.com/lotem/2981316?permalink_comment_id=5916967#gistcomment-5916967 | |
| 我想要在中文模式下,偶尔输入英文,于是配置了Shift为commit_code/commit_text, 如果用commit_code/commit_text,在输入后,要重新切回中文(無法), 如果用Enter键上屏,偶尔有些地方会触发Enter的事件(应该不是rime的问题,其他输入方式也会遇见) | |
| 所以我想问,怎样配置Shift像Enter那样,仅上屏字母,但是不切换为英文(除非inline_ascii) | |
| 好處是可以搭配commit_code/commit_text加速上屏切成英文,缺點是不會自動回到中文模式 | |
| patch: | |
| key_binder/bindings: | |
| #轉一次中英 | |
| - { when: has_menu, accept: Shift_L, send: Return } | |
| #轉一次回復中英 | |
| - { when: has_menu, accept: Shift_R, send: Return } | |
| --------------------------------------------------------------------------------------- | |
| https://github.com/sunsun8170/Onion-Rime-Bopomo-Revised | |
| Folder => bopomo_onion_enhanced => default.custom.yaml => | |
| Change the KEY "Shift_L" from VALUE "noop" to "inline_ascii" the in the end of file | |
| Then 中文模式利用空格/Enter把中文上屏後,KEYIN英文時若忘了按Shift_L,只要將正確的英數內容繼續KEYIN完畢, | |
| 再補用Shift_L把英文上屏,RIME會自動回到中文模式,不需要花時間重切到英數模去更正錯誤,節省輸入時間和來回切換中英文和大小寫的時間。 | |
| 缺點是需要先用空格或回車斷字 | |
| # ascii_composer: | |
| # good_old_caps_lock: false | |
| ascii_composer/switch_key: | |
| Shift_L: inline_ascii | |
| Shift_R: noop | |
| Caps_Lock: commit_text #clear #「commit_text」「clear」兩者皆可,但不能沒有,否則「大寫caps_lock」標點可能會是中文全形! | |
| # Eisu_toggle: clear | |
| # Control_L: noop | |
| # Control_R: noop | |
| ------------------------------------------------------------------------------------------- | |
| https://github.com/oniondelta/Onion_Rime_Files/issues/39#issuecomment-3399779987 | |
| 注音(洋蔥 plus 版)如何按下 cap 鍵切換成英文小寫: | |
| 於 default.custom.yaml 該檔案,開啟(去掉「# 」遮屏)以下: | |
| ascii_composer: | |
| good_old_caps_lock: false | |
| 以上修改完後,記得按「重新部署」! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment