You are not logged in.

#1 2016-11-08 14:15:57

geno_whirl
Member
Registered: 2016-11-08
Posts: 9

[Solved] Spanish accent input not working on certain applications

HI,

Since yesterday I haven't been able to input accents with my spanish keyboard on certain applications (Sublime text, Ted) whereas in others it works perfectly fine (Firefox, LibreOffice, Google Chrome)

$ setxkbmap -print -verbose 10

gives

Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc105
layout:     latam
variant:    deadtilde
options:    ctrl:swap_lalt_lctl
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+latam(deadtilde)+inet(evdev)+ctrl(swap_lalt_lctl)
geometry:   pc(pc105)
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)"    };
    xkb_types     { include "complete"    };
    xkb_compat    { include "complete"    };
    xkb_symbols   { include "pc+latam(deadtilde)+inet(evdev)+ctrl(swap_lalt_lctl)"    };
    xkb_geometry  { include "pc(pc105)"    };
};

$ localectl status

gives

System Locale: LANG=en_US.UTF-8
       VC Keymap: la-latin1
      X11 Layout: latam
       X11 Model: pc105
     X11 Variant: deadtilde
     X11 Options: ctrl:swap_lalt_lctl

I set XIM as default input method for GTK as in Keyboard configuration in Xorg#Key combinations, wanting to avoid the uncomfortable unicode input metod set to Ctrl+u.

I wish to be able to press the accent key and a vowel to produce an accented character in Sublime text e.g.: ´+a -> á

Thanks!

Last edited by geno_whirl (2016-11-08 21:18:59)


"I serve...a higher authority..."

Offline

#2 2016-11-08 14:36:46

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [Solved] Spanish accent input not working on certain applications

It works for me with a Belgian keyboard. What's the output of "locale"? You should have UTF-8 in the LC_CTYPE locale. Also check that your keyboard layout support dead keys? Launch xev and press the acute accent key (') (for example and verify that is dead_acute.

Offline

#3 2016-11-08 14:45:07

geno_whirl
Member
Registered: 2016-11-08
Posts: 9

Re: [Solved] Spanish accent input not working on certain applications

"locale" gives this as output:

LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

The accent key effectively gives dead_acute in xev.


"I serve...a higher authority..."

Offline

#4 2016-11-08 14:53:00

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [Solved] Spanish accent input not working on certain applications

What is exactly the software affected and how have you installed it? Can you launch a simple windows manager (that does not configure the keyboard); set the keyboard manually with setxkbmap and retry. I have just tried with sublime-text from the AUR and have issued "setxkbmap latam" and it works for me.

Last edited by olive (2016-11-08 14:53:25)

Offline

#5 2016-11-08 16:11:14

geno_whirl
Member
Registered: 2016-11-08
Posts: 9

Re: [Solved] Spanish accent input not working on certain applications

I am mostly interested in sublime-text, installed from the AUR via yaourt.

I am on i3. My keyboard configuration was done using

$ localectl set-keymap --no-convert la-latin1
$ localectl set-x11-keymap --no-convert latam pc105 deadtilde ctrl:swap_lalt_lctl

I tried resetting it to "us"

$ localectl set-keymap us
$ localectl set-x11-keymap us

and rebooting. Once in this configuration, I executed "setxkbmap latam" but my keyboard is still in "us", and the output of "localectl status" is

System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: us

which is bizarre. Running again

$ localectl set-keymap --no-convert la-latin1
$ localectl set-x11-keymap --no-convert latam pc105 deadtilde ctrl:swap_lalt_lctl

and rebooting reverts the keyboard to spanish but I am still getting "´a" instead of "á" in Sublime Text...

Last edited by geno_whirl (2016-11-08 16:55:59)


"I serve...a higher authority..."

Offline

#6 2016-11-08 17:52:11

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

Re: [Solved] Spanish accent input not working on certain applications

GTK_IM_MODULE= sublime

?

Offline

#7 2016-11-08 18:56:32

geno_whirl
Member
Registered: 2016-11-08
Posts: 9

Re: [Solved] Spanish accent input not working on certain applications

seth wrote:
GTK_IM_MODULE= sublime

?

Worked perfectly after reboot! Can you explain to me a little bit more what the problem was and how did this solve it? Thanks!


"I serve...a higher authority..."

Offline

#8 2016-11-08 21:07:01

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

Re: [Solved] Spanish accent input not working on certain applications

https://wiki.archlinux.org/index.php/In … talling.29

That was supposed to be a command (unsetting the variable and launching sublime)
In case you somehow

export GTK_IM_MODULE=sublime

(notice the missinb blank) you set the variable to an invalid value (and should better fix that) but the general cause is that gtk was using some other™ input method than xim.

Offline

#9 2016-11-08 21:18:04

geno_whirl
Member
Registered: 2016-11-08
Posts: 9

Re: [Solved] Spanish accent input not working on certain applications

hahaha! thanks, I actually had done that! (btw, the command to lauch sublime-text is subl in my case)

I actually had been setting my GTK_IM_MODULE to "xim" in my .xinitrc... kinda weird that it doesn't work.


"I serve...a higher authority..."

Offline

Board footer

Powered by FluxBB