You are not logged in.
Pages: 1
Topic closed
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-8And my plasma-locale:
[Formats]
LANG=es_ES.UTF-8.UTF-8
[Translations]
LANGUAGE=esAny ideas? Thanks in advance!
Last edited by tejonaco (2022-09-17 12:55:05)
Offline
Add an environment variable:
XKB_DEFAULT_LAYOUT=esPerhaps you'll also want XKB_DEFAULT_OPTIONS for any tweaks.
Offline
"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
localectlNext 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
@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
es_ES.UTF-8.UTF-8 isn't a valid locale, but is what locale.gen generates
WHAT?
grep es_ES /etc/locale.genAlso please really post the output of
localectland 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
@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
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
Using the opportunity to close this old solved thread.
Offline
Pages: 1
Topic closed