Ho incontrato lo stesso problema con cinese e giapponese. (L'icona sulla barra dei menu è cambiata ma la sorgente di input non è stata effettivamente modificata finché non sono passato a un'altra sorgente di input e viceversa.) È un bug noto in base a un post alla mailing list di Karabiner :
It's one of the most annoying bug of OS X.
Changing CJK input sources directly from program is not handled appropriately.
So, you need the following procedures.
Step1:
Enable "Select next source in Input menu" (command-option-space) on System Preferences > Keyboard > Shortcuts.
Step2:
Change input source by sending command-option-space.
<autogen>
__KeyToKey__
KeyCode::K, ModifierFlag::OPTION_L,
KeyCode::VK_CHANGE_INPUTMODE_US,
KeyCode::VK_WAIT_100MS,
KeyCode::SPACE, ModifierFlag::COMMAND_R | ModifierFlag::OPTION_L,
<!-- adjust wait for your machine -->
KeyCode::VK_WAIT_10MS,
KeyCode::VK_WAIT_10MS,
KeyCode::VK_WAIT_10MS,
KeyCode::SPACE, ModifierFlag::COMMAND_R | ModifierFlag::OPTION_L,
<!-- adjust wait for your machine -->
KeyCode::VK_WAIT_10MS,
KeyCode::VK_WAIT_10MS,
KeyCode::VK_WAIT_10MS,
KeyCode::SPACE, ModifierFlag::COMMAND_R | ModifierFlag::OPTION_L,
Option::NOREPEAT,
</autogen>
changeinput è influenzato dallo stesso bug.
Un'altra soluzione è passare a un'altra fonte di input e viceversa:
<root>
<vkchangeinputsourcedef>
<name>KeyCode::VK_CHANGE_INPUTSOURCE_HIRAGANA</name>
<inputsourceid_equal>com.apple.inputmethod.Kotoeri.Japanese</inputsourceid_equal>
</vkchangeinputsourcedef>
<vkchangeinputsourcedef>
<name>KeyCode::VK_CHANGE_INPUTSOURCE_SPANISH</name>
<inputsourceid_equal>com.apple.keylayout.Spanish</inputsourceid_equal>
</vkchangeinputsourcedef>
<vkchangeinputsourcedef>
<name>KeyCode::VK_CHANGE_INPUTSOURCE_US</name>
<inputsourceid_equal>com.apple.keylayout.US</inputsourceid_equal>
</vkchangeinputsourcedef>
<vkchangeinputsourcedef>
<name>KeyCode::VK_CHANGE_INPUTSOURCE_CHINESE</name>
<inputsourceid_equal>com.apple.inputmethod.TCIM.Pinyin</inputsourceid_equal>
</vkchangeinputsourcedef>
<item>
<name>inputsources</name>
<identifier>inputsources</identifier>
<autogen>__KeyOverlaidModifier__ KeyCode::COMMAND_L, ModifierFlag::COMMAND_L | ModifierFlag::NONE, KeyCode::VK_CHANGE_INPUTSOURCE_US, KeyCode::COMMAND_L</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::COMMAND_R, ModifierFlag::COMMAND_R | ModifierFlag::NONE, KeyCode::VK_CHANGE_INPUTSOURCE_SPANISH, KeyCode::COMMAND_R</autogen>
<autogen>__KeyToKey__ KeyCode::C, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L | ModifierFlag::NONE, KeyCode::VK_CHANGE_INPUTSOURCE_CHINESE, KeyCode::VK_CHANGE_INPUTSOURCE_US, KeyCode::VK_CHANGE_INPUTSOURCE_CHINESE</autogen>
<autogen>__KeyToKey__ KeyCode::C, ModifierFlag::OPTION_R | ModifierFlag::COMMAND_R | ModifierFlag::NONE, KeyCode::VK_CHANGE_INPUTSOURCE_HIRAGANA, KeyCode::VK_CHANGE_INPUTSOURCE_US, KeyCode::VK_CHANGE_INPUTSOURCE_HIRAGANA</autogen>
</item>
</root>