Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menubar_indicator can't recognise Chinese IME. #5

Closed
zanderzhng opened this issue Dec 5, 2016 · 2 comments
Closed

menubar_indicator can't recognise Chinese IME. #5

zanderzhng opened this issue Dec 5, 2016 · 2 comments

Comments

@zanderzhng
Copy link

I'm using "Pinyin - Simplified" and it was recognised as nil.

@liukun
Copy link

liukun commented Mar 1, 2017

Confirmed. There is no KeyboardLayout Name for some IME. Will create PR later.

~/.hammerspoon (master)> /usr/bin/defaults read ~/Library/Preferences/com.apple.HIToolbox.plist AppleSelectedInputSources
(
        {
        InputSourceKind = "Keyboard Layout";
        "KeyboardLayout ID" = 0;
        "KeyboardLayout Name" = "U.S.";
    }
)
~/.hammerspoon (master)> /usr/bin/defaults read ~/Library/Preferences/com.apple.HIToolbox.plist AppleSelectedInputSources
(
        {
        "Bundle ID" = "com.sogou.inputmethod.sogou";
        "Input Mode" = "com.sogou.inputmethod.pinyin";
        InputSourceKind = "Input Mode";
    }
)

@zzamboni
Copy link
Owner

zzamboni commented Jun 5, 2017

Hi @liukun - thanks for the fix! Sorry for the long delay in responding. In the meantime I have converted all the OMH plugins to Spoons, so I have integrated your fix into the MenubarFlag spoon, the PR is here: Hammerspoon/Spoons#34

@zzamboni zzamboni closed this as completed Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants