Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

Integrate Linux input methods

Open GrimPixel opened this issue 2 years ago • 5 comments

Congratulations! You realized my idea before I getting to learn Java. This is exactly what I thought: an optimized common Japanese keyboard on mobile for all languages.

On the desktop, there are four characters for a key: not pressing any other key, Shift, AltGr, Shift+AltGr. So I guess it can be corresponding to the "no direction" and 3 directions.

On Linux they are located at a folder, every language has a XKB file, where its keyboards are stored. It is very easy to customize your keyboards there. There are plenty of layouts.

If you are not familiar with Linux, I recommend you to use Debian in a virtual machine and go to 'usr/share/X11/xkb/symbols/' to find out.

GrimPixel avatar Jan 20 '22 07:01 GrimPixel

Hi! Thanks for the suggestion. This is harder than it looks, the keyboard currently has dead keys that don't exist in xkb and has custom key combinations and key actions specific to android.

If you want to experiment with this, I'd suggest writing a standalone script that outputs layout descriptions for this app (see qwerty.xml).

One thing from xkb that I have on my TODO list is the Compose key.

Julow avatar Jan 20 '22 08:01 Julow

I think the sequence of typing letter first and then diacritics is better as is the order of writing. The problem of Compose key is having to keep in mind to tap it before tapping the letter to be diacritized. I see in O Keyboard, there is an AltGr key but it's used after tapping the letter. The AltGr recognizes the letter and show available diacritized letters of that one. The input is done by swifting.

GrimPixel avatar Jan 20 '22 10:01 GrimPixel

i noticed that the keyboard keys like Ctrl doesn't work in Linux via Anydesk. Since the main purpose of the app to be a helper for developers it's not the best situation and probably needs more attention. You can look at Full Keyboard if you interesting about implementation details. It works ideally

avently avatar Feb 03 '22 18:02 avently

@avently I've fixed a bug related to modifier keys (14dabb6) that might fix your problem in Anydesk.

Julow avatar Feb 22 '22 18:02 Julow

I don't use Anydesk, but I use Remote Desktop Manager (by Devolutions), and the Ctrl, Alt and Meta keys didn't worked there either. I can confirm that now they work with Unexpected Keyboard v 13.0. Huray! But the Shift still doesn't unfortunately.

sdrapha avatar Feb 22 '22 21:02 sdrapha

Two years later, integrating layouts from other systems is not planned. This app is quite different from linux input methods and layouts must be tailored to it.

The compose key is still planned but need someone to put time into it.

The shift key bug is tracked here: https://github.com/Julow/Unexpected-Keyboard/issues/512

Julow avatar Jan 15 '24 18:01 Julow

Update: The shift key bug is fixed and the compose key is implemented.

Julow avatar Feb 17 '24 22:02 Julow