Lazy loaded image
精通 Rime:如何設定 Shift 鍵切換中英文輸入模式
字數 508閱讀時間≈ 2 分鐘
2024-11-6
2026-1-25
1

Mastering Rime: How to Toggle Shift Key for Chinese/English Switching

精通 Rime:如何設定 Shift 鍵切換中英文輸入模式

Rime is a highly customizable input method framework, and one of the most common requests is configuring how the Shift key behaves.
Rime 是一款高度可客製化的輸入法框架,而最常見的需求之一就是設定 Shift 鍵的行為。

1. Locate the User Folder / 定位用戶資料夾

All custom settings in Rime should be placed in the User Folder to ensure they aren't overwritten during updates.
Rime 的所有自定義設定都應放在**「用戶資料夾」**中,以確保更新時不會被覆蓋。
  • Windows (Weasel): Right-click the tray icon → "User folder".
  • Windows (小狼毫): 右鍵點擊系統匣圖示 →「用戶資料夾」。
  • macOS (Squirrel): Click the input method icon → "Settings..." (or find ~/Library/Rime).
  • macOS (鼠鬚管): 點擊輸入法圖示 →「使用者設定」。

2. Modify default.custom.yaml / 修改設定檔

You need to add or edit the ascii_composer section within your default.custom.yaml file.
您需要在 default.custom.yaml 檔案中新增或編輯 ascii_composer 區塊。
 

yaml

patch: "ascii_composer/switch_key": Shift_L: commit_code # Left Shift behavior Shift_R: commit_code # Right Shift behavior Control_L: noop # Example: Disable Left Control
YAML
 

3. Understanding the Modes / 模式說明

You can assign different values to Shift_L or Shift_R depending on your preference:
您可以根據喜好為 Shift_LShift_R 指定不同的數值:
Value / 參數
Effect / 效果
inline_ascii
Temporary English mode; press Enter to commit English. (暫時英文模式,回車上屏)
commit_code
Switch to English and automatically commit the current buffer. (切換並直接上屏已打字母)
clear
Switch to English and clear the current buffer. (切換並清除目前輸入的編碼)
noop
Do nothing (Disables the toggle). (不執行動作,即停用該鍵切換功能)

4. Apply Changes / 套用變更

After saving the file, you must Deploy Rime for the changes to take effect.
儲存檔案後,您必須執行**「重新佈署」**才能使變更生效。
  • Right-click the Rime icon and select "Deploy" (or press Ctrl + Alt + ~).
  • 右鍵點擊 Rime 圖示並選擇**「重新佈署」**(或按下 Ctrl + Alt + ~)。

 
上一篇
Rime如何切換輸入法
下一篇
SWE 匯出pdf不切邊

留言
Loading...