Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2768  / 2 Years ago, fri, august 19, 2022, 4:13:17

I'm using Compiz, but not sure if that's the problem or not.



My alt keys are working fine, but I'm trying to do something particular with the Alt-Gr key for a custom Russian keyboard layout.



Glad to provide specific information on request.



Any help would be greatly appreciated.



Steps already taken:




  1. I've gone into Keyboard Layout Settings --> Options, and made sure the correct Compose key option is set (at Right Alt).

  2. Chosen my custom keyboard layout (from the Keyboard Layouts section) and then brought up the onscreen keyboard which allows me to check which key is being pressed with onscreen feedback cue.



Doing this indicates that my Compose key is indeed the right alt, and it does flash when pressed. It also indicates that in my custom keyboard layout is correct on the key that I want: for the z key I have mapped 'З' (pronounced "ze") and for Alt-Gr + z I have mapped 'Ж' ('zhe'). This information shows up in the onscreen keyboard. However, trying this key combination produces no text on the first press, and on subsequent (joint / combo) presses, this produces only the non-altered 'З', same as I'm expecting from the non-combo z press only.



In summary, the Compose key is mapped correctly, and the character I want is mapped correctly (all 4 options (2 letters each with upper and lower case) appear in the onscreen keyboard), but the combination does nothing (on first press) and then the non-altered thing subsequently.



This is what my usrshareX11xkbsymbols
u file looks like:
[...]
key <AB10> { [ U0417, U0437, U0416, U0436 ] };



According to the documentation I've seen, the first two entries should be produced by pressing the z key and shift + z respectively (I'm working in Dvorak, so that's the key just to the left of the right-shift key), and the last two should be produced with the Compose + z and shift + Compose + z respectively. But, as mentioned, the actual behaviour I'm getting with Alt-Gr is nothing and then the default z and shift+z behaviour only.


More From » 13.04

 Answers
0

You have modified usrshareX11xkbsymbols
u
to follow a Dvorak layout, and you have modifed the key <AB10> section within the name[Group1]= "Russian" section by adding 2 additional keys.



Extra keys that are defined in the keyboard layout file in this way are not Compose key sequences. These keys are 3rd/4th-level keys.



In order to reach Ж that you defined in key <AB10>, you need to use a 3rd level chooser rather than the compose key. The 4th-level key is reached with 3rd-level-chooser+Shift



In the Keyboard Layout Options dialog, open Key to choose 3rd level, and choose whatever key works best for you.



I modified my Russian keyboard with the changes you indicate, set menu as the 3rd level chooser and menu+key-to-left-of-right-shift now correctly inserts Ж.



I chose menu because I never use it otherwise, and because I prefer Right-Alt as the Compose key.



The main point here is that the same key can't serve as both the Compose key and the 3rd level chooser. The system won't complain, but the 3rd level setting will have no effect.



If you prefer Right-Alt as the 3rd level chooser, be sure to select something else for the Compose key. When trying out different combinations, sometimes I've had to logout out before they took effect.



(Btw, you seem to have the capital/small letters in the swapped positions, unless that is what you want.)


[#30388] Saturday, August 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rmodmi

Total Points: 390
Total Questions: 122
Total Answers: 111

Location: Venezuela
Member since Mon, Oct 18, 2021
3 Years ago
;