daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
717 stars 56 forks source link

Spanish accents are not shown #6

Closed jorrete closed 6 years ago

jorrete commented 7 years ago

Hi, I am using a spanish layout and the keys are in the right place but accents don't appear. Usually to set an accent in a letter "a" - "á", you have to press the accent key and the the letter. It seems that that combination is not working.

daa84 commented 7 years ago

Looks like this can be fixed by implementing GtkImContext support. This is in my plan 😄

jorrete commented 6 years ago

Hi, I still can not user accents as per today's build. Thanks.

daa84 commented 6 years ago

Can you provide details? OS and the actual layout settings.

RoGryza commented 6 years ago

Getting the same problem on arch using the aur neovim-gtk-git package.

What do you mean by actual layout settings? I didn't change any neovim-gtk settings

felmab commented 6 years ago

In the meantime, you can use digraphs, for instance ^K + a + ' to insert á.

daa84 commented 6 years ago

Ok, what i do:

  1. set composite key in gnome settings to rwin
  2. run neovim-gtk
  3. press rwin+a '

for me it works and inserts á i find that behavior changed when GTK_IM_MODULE is changed echo $GTK_IM_MODULE show me ibus.

So to reproduce problem i need more details on actual keyboard layout settings.

felmab commented 6 years ago

I use the Archlinux package, my window manager is Awesome. Compose key is set to ralt in /etc/X11/xorg.conf.d/10-evdev.conf. My keyboard layout is mainly standard QWERTY. It indeed happens that I also use fcitx to type non-latin script from time to time (though in my understanding it should not be directly related to the compose key problem), with the following configuration:

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
export XIM_PROGRAM=/usr/bin/fcitx

As I said, I do not think it is related though. I did try to switch fcitx off. Beware that although input programs like fcitx and ibus may provide an emulation for this feature, I am referring to the X11 compose key.

Other GTK applications (like gvim) have no issue with the compose key.

felmab commented 6 years ago

It works, thank you so much!

felmab commented 6 years ago

Mmmh I noticed I can no longer type the '<' character, is this related?

daa84 commented 6 years ago

Hard to say, for me it works :smile: to enter '<' character in your keyboard layout do you use shift?

daa84 commented 6 years ago

Ups, sorry, yes, problem with '<' exists

felmab commented 6 years ago

Great! Dead keys and '<' character work fine now, thanks again!

Now, sorry to be so picky, I think I might have found something else ^^; When I input CJK script (with fcitx), I can only insert one character at a time, e.g. (in pinyin mode):

This worked correctly before these last two commits, I've just checked with an older version on another machine.

felmab commented 6 years ago

Cool, it is now working like a charm!