You are not logged in.

#1 2020-11-12 21:07:22

sol_caliente
Member
Registered: 2020-11-12
Posts: 18

Can't write tildes nor umlauts in spanish Keyboard.

Greetings. I've configured my spanish keyboard and something bizarre happens. In firefox (and in mozilla applications in general) I can write tildes and umlauts correctly (áàö... etc) but that's not the case in the rest of my programs. I can't write these characters neither in libreoffice nor in any other text editor. The output of localectl status is:

 
System Locale: LANG=es_MX.UTF-8
VC Keymap: es
X11 Layout: n/a

If it helps, I couldn't edit my keyboard mapping with the vconsole file. I ended up resorting to the KDE Plasma settings GUI.
Thanks for the help!


I just want to sleep the sleep of ages, to know again the Great Rest, the perpetual bliss, to hear the songs the stars sing on the shores of the great sea.

Offline

#2 2020-11-12 21:23:00

fistrosan
Member
Registered: 2020-04-01
Posts: 171

Re: Can't write tildes nor umlauts in spanish Keyboard.

From the tty, if you do:

loadkeys es

Can you now type ñ ?

Inside X (wm or de), if you open a terminal and do:

setxkbmap -layout es

Can you now type ñ ?

If the answer is yes, then I suggest to edit or create /etc/X11/xorg.conf.d/XX-keyboard.conf and add these lines:

 Section "InputClass"
	Identifier "system-keyboard"
	MatchIsKeyboard "on"
	Option "XkbLayout" "es"
EndSection

Restart X and it should (fingers crossed!) work ...

Offline

#3 2020-11-12 21:34:44

sol_caliente
Member
Registered: 2020-11-12
Posts: 18

Re: Can't write tildes nor umlauts in spanish Keyboard.

fistrosan wrote:

From the tty, if you do:

loadkeys es

Can you now type ñ ?

Inside X (wm or de), if you open a terminal and do:

setxkbmap -layout es

Can you now type ñ ?

If the answer is yes, then I suggest to edit or create /etc/X11/xorg.conf.d/XX-keyboard.conf and add these lines:

 Section "InputClass"
	Identifier "system-keyboard"
	MatchIsKeyboard "on"
	Option "XkbLayout" "es"
EndSection

Restart X and it should (fingers crossed!) work ...

That's the funny thing: I  don't have problem with the ñ character, only tildes and umlauts. Tried that and sadly the problem persists. If it helps, I've realized that in the terminal, the output that should contain tilde characters (For example, in the terminal the word "Instaló" is outputted) instead of the tilde character, there's a question mark symbol, as if my computer didn't have that character encoding. And that's even weirder because Thunderbird and Firefox don't have any problem with tilde and umlaut characters.


I just want to sleep the sleep of ages, to know again the Great Rest, the perpetual bliss, to hear the songs the stars sing on the shores of the great sea.

Offline

#4 2020-11-12 22:10:41

fistrosan
Member
Registered: 2020-04-01
Posts: 171

Re: Can't write tildes nor umlauts in spanish Keyboard.

Don't know what to say except that (I believe) the locale should not interfere with your keyboard layout. My locale has only EN_US and yet I constantly change my keyboard layout between us,es,de. Maybe is a problem with your keyboard model ? You can try to select that with setxkbmap -model XXX -layout es and see if you can match it. In my case it just works with -model pc104 and I can write all tildes and umlauts. You can also see if you find a solution in the wiki:

https://wiki.archlinux.org/index.php/Xo … figuration

Offline

#5 2020-11-12 22:11:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,692

Re: Can't write tildes nor umlauts in spanish Keyboard.

there's a question mark symbol, as if my computer didn't have that character encoding

localectl
locale
locale -a

but it's probably the used font? Does it work w/ DejaVu?

Offline

#6 2020-11-12 22:23:40

sol_caliente
Member
Registered: 2020-11-12
Posts: 18

Re: Can't write tildes nor umlauts in spanish Keyboard.

seth wrote:

there's a question mark symbol, as if my computer didn't have that character encoding

localectl
locale
locale -a

but it's probably the used font? Does it work w/ DejaVu?

Yep, it's the locale, at least with the issues I'm having of the characters not being showed correctly on the terminal. Changing the locale.conf file didn't change anything, my system still insists in using the es_MX.ISO instead of the es_MX.UTF-8. Tried with export LC_ALL="es_MX.UTF-8" just to see if that was it and well, after running that command, locale shows that everything is UTF-8 as it should be, and now tildes and umlauts output correctly on the terminal. I still can't write those characters on libreoffice or kate though. Besides thunderbird and firefox, emacs seems to also write tilde characters correctly.

Obviously, the export thing isn't a solution. I'd like to make it persistent.

Last edited by sol_caliente (2020-11-12 22:24:34)


I just want to sleep the sleep of ages, to know again the Great Rest, the perpetual bliss, to hear the songs the stars sing on the shores of the great sea.

Offline

#7 2020-11-13 06:58:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,692

Re: Can't write tildes nor umlauts in spanish Keyboard.

https://wiki.archlinux.org/index.php/Locale

Changing locale.conf and doing what afterwards?
You'll at least have to re-login.

If that doesn't suffice, you need to isolate where the locale is overridden.
Log into a linux console (no GUI) and check the locale.
If it's ok there but not in your GUI session, it's altered by the GUI session - either the DM starting it or the session itself.

Offline

#8 2020-11-15 03:28:49

sol_caliente
Member
Registered: 2020-11-12
Posts: 18

Re: Can't write tildes nor umlauts in spanish Keyboard.

seth wrote:

https://wiki.archlinux.org/index.php/Locale

Changing locale.conf and doing what afterwards?
You'll at least have to re-login.

If that doesn't suffice, you need to isolate where the locale is overridden.
Log into a linux console (no GUI) and check the locale.
If it's ok there but not in your GUI session, it's altered by the GUI session - either the DM starting it or the session itself.

Sorry for the late response: I've been busy lately.
Already tried even chrooting in the live environment- to no avail. Adding the export line thing to the .bashrc seems to have solved the error. Still, I still can't write tildes nor umlauts in libreoffice and other KDE Programs like Kate and the search bar and in dolphin etc.


I just want to sleep the sleep of ages, to know again the Great Rest, the perpetual bliss, to hear the songs the stars sing on the shores of the great sea.

Offline

#9 2020-11-15 07:32:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,692

Re: Can't write tildes nor umlauts in spanish Keyboard.

I still can't write tildes nor umlauts in libreoffice and other KDE Programs like Kate and the search bar and in dolphin etc.

Because the locale of the session is still wrong.

chrooting in the live environment

What's that supposed to be good for?

Post the outputs of the commands in #5 as well a

loginctl session-status --no-pager

Offline

Board footer

Powered by FluxBB