-
Reading https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/conditions/keyboard-type/ I can do this using something like this (working):
How can I find values for I am experimenting with remapping commands to enter Japanese text (unicode) and emoji. For this to work I need to tailor the rules according to the current input mode: However, checking the language string is "ja" is not enough to tell the different Japanese input modes apart - but there are additional fields available:
Specifically there are three modes I want to be able to detect and handle differently:
By experiment, Unicode Hex Input seems to have a blank language string, thus By experiment, both Japanese - Romanji and Japanese - Kana use "ja", and thus match Note that in the macOS input selection menu (top right), these three are listed as shown if all are installed. If only one of the Japanese modes is setup, it is instead shown as just "Japanese". |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I happened to be reading https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/to/select-input-source/ for the opposite issue, trying to change the input mode. That suggested using Karabiner-EventViewer's Variable screen. In "ABC" mode (i.e. English for me): "input_source": {
"input_source_id": "com.apple.keylayout.ABC",
"language": "en"
}, In romaji mode: "input_source": {
"input_mode_id": "com.apple.inputmethod.Japanese",
"input_source_id": "com.apple.inputmethod.Kotoeri.RomajiTyping.Japanese",
"language": "ja"
}, And in kana mode: "input_source": {
"input_mode_id": "com.apple.inputmethod.Japanese",
"input_source_id": "com.apple.inputmethod.Kotoeri.KanaTyping.Japanese",
"language": "ja"
}, Finally in Unicode Hex Input mode: "input_source": {
"input_source_id": "com.apple.keylayout.UnicodeHexInput",
"language": ""
}, These values worked! |
Beta Was this translation helpful? Give feedback.
I happened to be reading https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/to/select-input-source/ for the opposite issue, trying to change the input mode. That suggested using Karabiner-EventViewer's Variable screen.
In "ABC" mode (i.e. English for me):
In romaji mode:
And in kana mode: