Skip to content

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

Lukhnos Liu edited this page Dec 5, 2023 · 11 revisions

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

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

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

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

要回復成預設行為:

defaults delete org.openvanilla.inputmethod.McBopomofo KeepReadingUponCompositionError

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

選字窗字型

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

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 版後取消組字區長度限制,以上設定不再有任何作用。

Clone this wiki locally