3

I have Ubuntu 19.04 and I'm using the English US International keyboard layout because I want to use accented letters like á, ö, ã, etc. Everything works well, but maybe a little too well.

When I type ' + a, I get the character á, which is the expected behaviour. But when I type ' + s or ' + m then I get ś and ḿ respectively and I don't want these characters.

If I type ' + s then I expect the layout to output 's instead of ś, or if I type ' + m then I expect the layout to output 'm instead of ḿ.

Before somebody says that I'm asking for something crazy because I want the keyboard layout to selectively put accents in some letters, but ignores the accent on other letters, I also use US International keyboard layout on macOS and on Windows computers and they both behave in the way that I expect: ' + a outputs á but ' + s outputs 's instead of ś.

Is it possible to have the same behaviour on Linux?

vegidio
  • 131

1 Answers1

2

I'm not aware of a way on Linux to achieve the exact behavior you describe. At least it cannot be done only via XKB.

I would suggest that you try another keyboard layout. Assuming that you only need to type accented characters occasionally, check out the English (intl., with AltGr dead keys) keyboard layout. It only triggers the dead key behavior together with the Right Alt modifier.

' followed by a => 'a

Right Alt+' followed by a => á