Show English mode in the input method icon

macOS: the input method now has two input modes in Info.plist, 中英自動 ("注")
and 英文 ("A"), each with its own menu-bar icon. A Shift tap with nothing typed
switches the mode (TISSelectInputSource), and choosing a mode in the menu bar
switches the engine (setValue:forTag:). --register enables both modes.
Windows: the taskbar IME icon switches between icon.ico and icon-en.ico.
Linux: the IBus mode property also switches its icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 16:56:08 +08:00
co-authored by Claude Opus 5.5
parent 0155ddd16e
commit 6443f771a0
19 changed files with 184 additions and 9 deletions
+61
View File
@@ -18,6 +18,67 @@
<string>0.12.0</string>
<key>CFBundleVersion</key>
<string>20</string>
<key>ComponentInputModeDict</key>
<dict>
<key>tsInputModeListKey</key>
<dict>
<key>com.autozhuyin.inputmethod.AutoZhuyin.Auto</key>
<dict>
<key>TISInputSourceID</key>
<string>com.autozhuyin.inputmethod.AutoZhuyin.Auto</string>
<key>TISIntendedLanguage</key>
<string>zh-Hant</string>
<key>tsInputModeAlternateMenuIconFileKey</key>
<string>icon.tiff</string>
<key>tsInputModeCharacterRepertoireKey</key>
<array>
<string>Hant</string>
</array>
<key>tsInputModeDefaultStateKey</key>
<true/>
<key>tsInputModeIsVisibleKey</key>
<true/>
<key>tsInputModeMenuIconFileKey</key>
<string>icon.tiff</string>
<key>tsInputModePaletteIconFileKey</key>
<string>icon.tiff</string>
<key>tsInputModePrimaryInScriptKey</key>
<true/>
<key>tsInputModeScriptKey</key>
<string>smTradChinese</string>
</dict>
<key>com.autozhuyin.inputmethod.AutoZhuyin.English</key>
<dict>
<key>TISInputSourceID</key>
<string>com.autozhuyin.inputmethod.AutoZhuyin.English</string>
<key>TISIntendedLanguage</key>
<string>zh-Hant</string>
<key>tsInputModeAlternateMenuIconFileKey</key>
<string>icon-en.tiff</string>
<key>tsInputModeCharacterRepertoireKey</key>
<array>
<string>Hant</string>
</array>
<key>tsInputModeDefaultStateKey</key>
<true/>
<key>tsInputModeIsVisibleKey</key>
<true/>
<key>tsInputModeMenuIconFileKey</key>
<string>icon-en.tiff</string>
<key>tsInputModePaletteIconFileKey</key>
<string>icon-en.tiff</string>
<key>tsInputModePrimaryInScriptKey</key>
<false/>
<key>tsInputModeScriptKey</key>
<string>smTradChinese</string>
</dict>
</dict>
<key>tsVisibleInputModeOrderedArrayKey</key>
<array>
<string>com.autozhuyin.inputmethod.AutoZhuyin.Auto</string>
<string>com.autozhuyin.inputmethod.AutoZhuyin.English</string>
</array>
</dict>
<key>InputMethodConnectionName</key>
<string>com.autozhuyin.inputmethod.AutoZhuyin_Connection</string>
<key>InputMethodServerControllerClass</key>