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
Enable Gboard CJK keyboards #620
base: master
Are you sure you want to change the base?
Conversation
Incorrect text UTF8 text sometimes sent to X clients. Not a bug of this commit, instead there are likely some problems in |
Cannot reproduce the aforementioned bug after re-run Only for record: as far as I can tell, there may be bug in XCB receiver side. Log by |
Sorry for confusion. I will stop editing here and look for @twaik your comments on this "Workaround to enable CJK Gboard" option. More testing are done as below.
This workaround is by no mean elegant but probably the only existing workaround siince being last discussed in 2021 termux/termux-app#1539. Bit more context of the problem and welcome smarter workaround: the Grateful for merging given importance to Gboard CJK users. I don't mind putting it onto an "Experimental" section of perefernces.xml. Thanks. |
Not related.
There is no "XCB receiver" in termux-x11. There is some custom light weight protocol to avoid XCB dependency (which adds 1MB+ for every architecture variant and 4.5MB to universal build).
Termux:X11 sends characters the same way tigervnc-server and x11vnc do. It maps characters to keycodes with no associated keysyms ( termux-x11/app/src/main/cpp/lorie/InputXKB.c Lines 52 to 54 in 6fbd332
I did not find better way to implement this, x11vnc way is the best option I found. |
Thanks. Since the bug is really not a problem of this PR and neither Gboard, I opened #625 for test result and further discussion. Back to this PR, I tested together with #617 (which makes available the 3-finger swipe up gesture to activate soft keyboard in DeX mode) and commit another workaround for DeX mode in which Any adjustment to this PR you would like me to do before merging? |
Relates to #115 and #147.Add a preference option "Workaround to enable CJK Gboard".
InputMethodManager#getCurrentInputMethodInfo()
is not available until recent API level (34).