-
Notifications
You must be signed in to change notification settings - Fork 1
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
"Unicode Hex Input" required for macOS kana entry #1
Comments
Digressing somewhat, but a proof of principle in-software approach to kana chording on macOS! This is a custom rule for the macOS Karabiner Elements software turning simultaneous use of "a" and "k" into "あ" (assuming the current input mode is "Unicode Hex Input", which could be done via another custom key mapping?):
See https://karabiner-elements.pqrs.org/docs/json/complex-modifications-manipulator-definition/ etc for their documentation. The verbosity of their rules is a known issue - we'd need almost 100 rules just for the basic hiragana and katakana, but generating those could be automated. I wouldn't use this on a normal keyboard, the current timings make typing the everyday combination of "a" and "k" troublesome, e.g. getting "あna" rather than "kana" if you type too fast. However, I think this approach would work in principle with a custom secondary keyboard (where you could probably avoid using AIUEO as the "shift" keys and/or configure the software remapping to only apply to that keyboard). e.g. Something like this "Mini X Split Keyboard" currently being sold on Ali Express, which has 3 rows of 5 on the left, and another 3 rows of 5 on the right: |
I'm trying out some ideas based on this with the macOS Japanese input modes, and software remapping with Karabiner Elements. Currently I am using an iOS flick-input like chording approach where any of the ASCII keys representing a row (like k for ka, ki, ku, ke, ko) can be pressed alone or in combination with one of four modifier keys (initially the four cursor keys) giving the five different vowel combinations: https://github.com/peterjc/kana-chording-ke Note that in macOS how to enter the kana depends on the current input mode - impossible in non-Japanese mode, by sending hex in "Unicode Hex Input" mode (as done by KanaChord), sending multiple key presses like For the KanaChord project, I assume you emulate a HID keyboard. I think you would need a macOS language mode switch on the keyboard (just like how you currently switch between Linux, Windows, or macOS in hex mode), or assume the Mac computer is in the matching mode. There are macOS add-ons which will try to switch the language mode when a different physical keyboard is used, that might work here if for example using a USA layout laptop with an external KanaChord keyboard? |
Quoting the README:
Quoting your macOS code version:
However, there is a caveat you might want to mention. First the user must enable "Unicode Hex Input" as a input source within the macOS keyboard settings (along side where they likely already have "Japanese = Romaji" and/or "Japanese - Kana"). This is right at the end of the list by coutnry under "Other" in macOS Sequoia.
With that done this works:
I have not tested your code, just pressing buttons on a QWERTY keyboard.
The text was updated successfully, but these errors were encountered: