-
Notifications
You must be signed in to change notification settings - Fork 2
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
Keyboard map files required #13
Comments
I'm willing ti help. I'm no Coder but a keyboard map file sounds doable. |
Sailfish uses XKB layouts, which are relatively complex. See this commit for Gemini PDA as base: NotKit/xkeyboard-config-geminipda@6f15955. I started adapting it, but there is no modified key set for 3rd level yet: sailfish-on-fxtecpro1/xkeyboard-config-pro1@4622de1 Device model has to be set via dconf: https://github.com/NotKit/droid-config-geminipda/blob/master/sparse/etc/dconf/db/vendor.d/geminipda-keyboard.txt |
The good news is xkb should allow layouts with dead keys, and thus something like us-intl to type in many different languages. |
I will have a look on that next weekend. If I got it right, it look not to hard but quite time intensive. |
Sorry, haven't had much time on weekend. I will anyway look into it the next days. |
I started to create german qwertz map file. But indeed that's not so easy. Further problem. I'm not a native english speaker and do not exactly know the names for the different symbols. Is there somewhere a key map where you can see what symbol has what name? I have already searched the net for it, but couldn't find something really useful. |
I remember having used an exhaustive list of the symbols in the past to edit my xkb files on Linux. It was really helpful. I'll look for it tomorrow and post here if I can find it.
Dimanche 8 décembre 2019, popanz a écrit :
… I started to create german qwertz map file. But indeed that's not so easy.
on the Gemini file there are four different states. First is plain key, second is with pressed shift, but I have no clue to what key third and fourth state is assigned to. Any help on that?
Further problem. I'm not a native english speaker and do not exactly know the names for the different symbols. Is there somewhere a key map where you can see what symbol has what name? I have already searched the net for it, but couldn't find something really useful.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#13 (comment)
|
I'm not sure about the Gemini, but on a computer, the additional layers should be as described here ("Maj" is Shift): About the list, unfortunately I failed to find the table I had with a direct correspondance between xmodmap keycodes (or also called keysyms sometimes) and actual characters. That was really a great resource but I remember it was poorly indexed on websearches, I should definitely have saved it. Not as good, but still, here is a long list of unicode characters, You can use it to find the characters you want to map on the Pro¹, and then copy their unicode (U+xxx) in your clipboard to then search it with If I happen to find the single table combining both, I'll post it here. |
For reference, I'm also adding |
Building a keymapfile without nowing the names for the symbols is really painful! So I can continue and hopefully finish work on the keymap file on the next weekend. |
That list is an extract of the last one I linked in my previous message, but none is exhaustive unfortunately. However, for relatively standard layouts, that shouldn't be a big issue. I will probably try to work on a custom us-intl layout too at some point, but still no Pro¹ here. |
I'm an idiot! I completely overread the last link of your post. |
I made a proposal with a keymap file. I'm no coder, s I think there will be mistakes in it. Especially regarding the lowest key row. Also I don't really know how to test ist. I copied it to /usr/share/X11/xkb/symbols/fxtec_vndr/ anyway it isn't recognized. |
@popanz please see https://github.com/sailfish-on-fxtecpro1/xkeyboard-config-pro1/blob/master/xkeyboard-config-pro1/symbols/fxtec_vndr/pro1 as minimal example. As nemo:
This enables me to type / by holding left Alt instead of arrow key. Arrow key needs to be remapped in kernel first as KEY_FN has keycode larger than 255 and xkb seems to have legacy problems with that. |
[Updated for use with Yellow Arrow modifiers (kernel 4.4.153-perf+)] Temporary hack to get us-intl on SFOS (QWERTY Pro¹ model):Preamblexkb layouts are human-readable plain text files, details of every character mapped on the supplied layouts can be checked easily:
Instructions
DisclaimerThe us-intl layouts currently supplied are not the classic ones usually found on computers, they are based on my humble customized version which adds some special characters on unused levels (see screenshot here for the version with dead keys on levels 1 and 2). They otherwise mostly resemble the original us-intl layouts. Additional classic layouts will be offered soon for those who don't want the extra characters. There will always be at least two differences with vanilla us-intl layouts because Note that dead keys do not currently work in SFOS applications, not sure what is missing for that. They do work, however, in sailfish_ubu_chroot, and therefore still have a use on a Pro¹ running SFOS. As a consequence, the layout with AltGr dead keys is recommended if you plan on typing mostly in SFOS applications or if you do not need dead keys easy to reach in sailfish_ubu_chroot. Alternatively, if you want easy dead keys and plan on typing a lot in sailfish_ubu_chroot, the layout with dead keys on levels 1 and 2 is recommended. For instance, the All currently available layouts for the QWERTY Pro¹ with their revisions can be reviewed and compared here. |
Any idea if we can use the camera button as a modifier? I failed to find its keycode, not sure how to find keycodes on SFOS since xev is not available. It would be an interesting modifier because it does not require moving the hands and frees thumbs. |
For what it's worth, the above layout kinda works in Ubu chroot ran in SFOS. Dead keys work which is very nice. It really behaves like a true desktop us-intl layout, and dead keys are easy to use with a thumb keyboard since this save the need for simultaneous key presses. Unfortunately it seems to work in XFCE4 only, not when running directly Ubu Chromium without the XFCE4 |
I gladly confirm the yellow modifier key to work as <ralt_switch> after updating to 3.2.1.20. Just follow the procedure in his post above, steps 2 and 3 differ in the following:
|
Thanks for implementing AltGr TheKit! And thanks for your layout Kabouik! I took it and made minor changes to remove dead-keys from first two levels (moved them to Alt-Gr). This makes it so all keys work normally for those used to standard qwerty layouts, but still gives the advantage of available symbols and dead keys with AltGr, so I think this would make a better default English layout (and certainly what I prefer and am used to - I also swapped ¹ and ¡ so now it matches my PC exactly). The one thing I dont get is what is key AB10? I don't think that functionality is mapped to an actual key.... I'd like to map that to the SYM key if possible... How about the arrow keys? Can we make AltGr+arrows be PgUp/PgDn/Home/End? AltGr+Del-->Ins? AltGr+Alt-->Super? And lastly, can we get F1-F12 perhaps by combination of the Fx-key with the number row? Attached is my keymap... |
I fully agree @enigma9o7 that a layout without dead keys is best for SFOS. I made the version with dead keys before knowing they would not work on SFOS, and kept it still because they work in sailfish_ubu_chroot which is by far what I use the most on my device. I edited my how-to above to make it more reliable (it should avoid the copy/paste issues we discussed on Discord) and compatible with different layouts when they are available. I believe your version could be added to the list, if you agree we can make a gist with it and include it. I'll also compare it to the classic us-intl without dead keys usually found on computers and, if different, suggest we also offer the classic layouts as alternatives for those who want to stick to widespread layouts (with the exception of |
Guys if you are making keyboard layout then don't rewrite keys you are not changing. If you are not changing some key's behaviour just don't type it. |
I think I changed all keys at least on some levels in my custom us-intl, but you are right that actually the vanilla qwerty layouts should already be included in I'm not sure how to use a specific layout within the
Or do we need to reflect it in the |
@Kabouik isn't this same as us layout we already have? https://github.com/sailfish-on-fxtecpro1/xkeyboard-config-pro1/blob/master/xkeyboard-config-pro1/symbols/fxtec_vndr/pro1#L2 |
Oh, I did not see that commit. Yes it is now, but did you not use the layouts posted here? The us-intl with dead keys I proposed is not the original one (it's a version on steroids with extra characters on empty levels of the original us-intl with dead keys). Now since you included the community layouts and since the altgr-intl seems to be already included in the |
@Kabouik to be honest i got confused about which layout to include as there are 3 of them and all of them rewrite all keys so i have no idea what is the difference between them. also that us layout was before commit. |
I was referring to us-intl section in the file (line 73), not us. From what I can collect (but I am no expert), I think us-intl with dead keys rewrites all keys but most of them are actually new because it is a custom version with extra keys on level 4. There might be a few duplicates that did not need to be rewritten, but most are not duplicates. Same for us-intl with altgr dead keys because @enigma9o7 based it on my custom version of us-intl with dead keys, with the extra characters on level 4, so again there might be some duplicates but not so many. German lists all keys too but I think that was necessary because the keycodes differ from normal keyboards. Russian layout does not rewrite all keys (but Coderus is a lot more skilled than @eLtMosen, @enigma9o7 and I combined, so that was to be expected!). Actually those possible duplicates were one of my concerns when I decided to describe the fix as "Temporary hack" in the post above, because I was not sure the full rewrite was the most parsimonious way, but still wanted to post it since it was still helping on the short term. I don't think @enigma907's version (us-intl with AltGr dead keys) is included at the moment, it would be nice to add it because it differs from the default one (it has some extra chars). |
Okay so which layouts should we also include? the current us-intl is @enigma9o7's |
It depends if we want the custom versions included by default or if we want interested people to install them manually. My vote would be to include:
If we don't want the custom versions, that is totally fine with me, but the extra characters don't hurt. I would feel more comfortable if someone more experienced than me could comment too. |
On the DE layout, yes it is necessary to rewrite all the keys because like Kabouik mentioned the QWERTZ keyboard is completely different to the QWERTY one since it is not shifted. Thanks for including our layouts in the commit you linked, much appreciated! I think it does not hurt to offer all available layouts since they are properly named and people with special demands sure know what they are looking for. |
Then there is an issue on line 77, it should read as follows: This version of @enigma9o7's us-intl with AltGr dead keys should be correct. The other version with non-AltGr dead keys could be included too (but not selected as default), I believe, since dead keys are currently useless in SFOS, but working great in chroot. |
I'm not sure this has been picked up, but the things above should be fixed in this PR, plus formatting improvements and an alternate international layout. Some testing would be welcome from Russian or German speakers but it works well for me on Qwerty with US-intl, I've been using this since the PR was submitted with no issue. |
Can this be closed? |
The map files are on the device now, but the appropriate ones are not automatically selected. I still had to do the Shall I open a new issue on that one? |
Just a short note on a regression i found when flashing the 3.4 build.
and restart lipstick to activate it. |
No description provided.
The text was updated successfully, but these errors were encountered: