You are not logged in.

#1 2022-09-17 09:05:26

tejonaco
Member
Registered: 2018-08-05
Posts: 37

[Solved] Acute and dead keys not working in kde plasma

Hi, thanks for reading.

I use spanish keyboard layout, basically we have the same characters as english plus "ñ" and accent vowels (á,é,í,ó,ú). Accents are very common and always are writed pushing the accent mark and then (not at the same time) the vowel. I can't also write "ä", "à" or "â".

I am using arch + plasma + wayland, but I had the same response in Xorg, I used similar setup a year ago or so and it works well.

I realized that somehow in firefox and vscode it works properly, but in some apps like libreoffice (where I have to use it a lot) or kate, for example it doesn't.

Things that I tried are set GTK_IM_MODULE, QT_IM_MODULE and XMODIFIERS to different values in /etc/environment but this doesn't work. I also tried to set up ibus, this somehow is working, but in a very rude way and accents just worked well in the past without need to use ibus.

This is my locale.conf:

LANG=es_ES.UTF-8.UTF-8

And my plasma-locale:

[Formats]
LANG=es_ES.UTF-8.UTF-8

[Translations]
LANGUAGE=es

Any ideas? Thanks in advance!

Last edited by tejonaco (2022-09-17 12:55:05)

Offline

#2 2022-09-17 10:00:44

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [Solved] Acute and dead keys not working in kde plasma

Add an environment variable:

XKB_DEFAULT_LAYOUT=es

Perhaps you'll also want XKB_DEFAULT_OPTIONS for any tweaks.

Offline

#3 2022-09-17 10:26:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: [Solved] Acute and dead keys not working in kde plasma

"LANG=es_ES.UTF-8.UTF-8" is not a valid locale, change that to "LANG=es_ES.UTF-8"

Then post the output of

localectl

Next up: on your x11 session (this won't work w/ wayland and I've no idea how to query the KDE compositor itr)

setxkbmap -print -query

@tucuxi, are you positive that KWin handles XKB_DEFAULT_LAYOUT (and on what precedence)?

Offline

#4 2022-09-17 12:54:34

tejonaco
Member
Registered: 2018-08-05
Posts: 37

Re: [Solved] Acute and dead keys not working in kde plasma

@tucuxi that didn't made a change at first, but this should be because what @seth said.
es_ES.UTF-8.UTF-8 isn't a valid locale, but is what locale.gen generates, if I try to change it in locale.gen the comand locale-gen gives an error, I think that's a bug.
But as workaround I modify /etc/locale.conf and ~/.config/plasma-localerc manually and now it's working flawelessy. Thanks!

Offline

#5 2022-09-17 13:39:48

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,774

Re: [Solved] Acute and dead keys not working in kde plasma

es_ES.UTF-8.UTF-8 isn't a valid locale, but is what locale.gen generates

WHAT?

grep es_ES /etc/locale.gen

Also please really post the output of

localectl

and ftr. the LANG variable has no principle impact on the X11 keyboard layout (though KDE might lever it into a layout when starting the session)

Offline

#6 2022-09-17 14:22:31

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [Solved] Acute and dead keys not working in kde plasma

seth wrote:

@tucuxi, are you positive that KWin handles XKB_DEFAULT_LAYOUT (and on what precedence)?

Confirmed, it evaluates

* XKB_DEFAULT_MODEL
* XKB_DEFAULT_LAYOUT
* XKB_DEFAULT_VARIANT
* XKB_DEFAULT_OPTIONS

Not sure about precedence though.

Offline

#7 2025-04-23 16:21:08

elcamileitor
Member
Registered: 2025-04-23
Posts: 1

Re: [Solved] Acute and dead keys not working in kde plasma

Hey, for all the new users the solution that worked for me is the one mentioned before about fixing the locales modifying the files. In my case just had to add ".UTF-8" at the end of the language and it worked. Thanks to the people in this thread, this helped me a lot.

Offline

#8 2025-04-23 16:44:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [Solved] Acute and dead keys not working in kde plasma

Using the opportunity to close this old solved thread.

Offline

Board footer

Powered by FluxBB