Skip to content

使用說明_其他可以透過終端機調整的進階設定

Lukhnos Liu edited this page Jan 7, 2026 · 11 revisions

除了鍵盤配置外,小麥注音還有一些可以從終端機調整的選項。

注音組不出字時,不要清除目前注音

小麥注音在輸入打不出字的注音時(例如ㄌㄨㄚ ˇ),會將目前的注音清除。要保留注音,可以在終端機下輸入以下指令:

defaults write org.openvanilla.inputmethod.McBopomofo KeepReadingUponCompositionError -bool true

要回復成預設行為:

defaults delete org.openvanilla.inputmethod.McBopomofo KeepReadingUponCompositionError

請參考 #331 了解設計此一隱藏設定的動機。

在組字區輸入注音調號,直接改變游標前最末一字的聲調

這個選項從小麥注音 2.9.5 版開始提供。

這是 macOS 內建注音輸入法的行為:例如打「文花」,發現「花」打錯了,再按一次四聲調號(標準鍵盤排列的 4),就會將最末改成「化」,不需要刪除「花」一字。

要開啟這個選項,請從終端機輸入:

defaults write org.openvanilla.inputmethod.McBopomofo AllowChangingPriorTone -bool true

要回復成預設行為:

defaults delete org.openvanilla.inputmethod.McBopomofo AllowChangingPriorTone

要注意的是,這個選項只有在鍵盤排列為標準或是倚天時才有效。

選字窗字型

以下命令會將選字窗選項的字型改為仿宋體:

defaults write org.openvanilla.inputmethod.McBopomofo CandidateTextFontName -string STFangsong

以下命令會將選字窗數字標籤的字型改為羅馬體:

defaults write org.openvanilla.inputmethod.McBopomofo CandidateKeyLabelFontName -string Times

字體名稱必須是 macOS 的系統識別名,可從「字體簿」(Font Book) 應用程式中取得。

以下命令會將上述兩個設定還原到預設值:

defaults delete org.openvanilla.inputmethod.McBopomofo CandidateTextFontName
defaults delete org.openvanilla.inputmethod.McBopomofo CandidateKeyLabelFontName

使用外接鍵盤的數字鍵區,選取候選字

defaults write org.openvanilla.inputmethod.McBopomofo SelectCandidateWithNumericKeypad -bool YES

要回復為預設值:

defaults delete org.openvanilla.inputmethod.McBopomofo SelectCandidateWithNumericKeypad

組字區長度(2.3 版之前)

小麥注音預設組字區最多可放十個字。如果需要加長或縮短,可從終端機輸入以下命令:

defaults write org.openvanilla.inputmethod.McBopomofo ComposingBufferSize -int 20

上述命令會將長度改為 20 個字。

下列指令將設定還原到預設值:

defaults delete org.openvanilla.inputmethod.McBopomofo ComposingBufferSize

小麥注音 2.3 版可以從偏好設定中直接修改這個設定。2.4 版後取消組字區長度限制,以上設定不再有任何作用。

傳統注音內的用戶自訂字庫

defaults write org.openvanilla.inputmethod.McBopomofo EnableUserPhrasesInPlainBopomofo -bool true

請參考 #540 所提及的設計考量與功能限制。

Clone this wiki locally