masm11 / emacs

Mirror of GNU Emacs
http://www.gnu.org/software/emacs/
GNU General Public License v3.0
198 stars 14 forks source link

Non-english layout #30

Closed ghost closed 4 years ago

ghost commented 4 years ago

Without (pgtk-use-im-context t) I couldn't input russian characters, only codes like this image

But even with GtkIMContext, as you wrote in the readme, keys with modifiers still handled by emacs, and that way tools like https://github.com/a13/reverse-im.el doesn't work properly, so is there some way to fix it?

leezu commented 4 years ago

There's a similar issue with umlauts (äöü)

masm11 commented 4 years ago

Thank you, non-English users. I don't know how you input non-English text.

How to input russian text or umlauts? What emacs lisps or other programs do you use?

ghost commented 4 years ago

How to input russian text

Russian keyboard looks like this image

it's as if japanese only had hiragana, and then there would be no reason to use ibus, or other IM, I guess. You configure layout, through xorg settings, setxkbmap, or compositor - dependent options on wayland. Then just switch between the two layouts with configured shortcut.

What emacs lisps or other programs do you use?

I use doom-emacs in evil mode, so there's plenty of emacs packages. As for the other programs - I write this in firefox, for example. Maybe there's something specific that you want to know?

masm11 commented 4 years ago

it's as if japanese only had hiragana, and then there would be no reason to use ibus, or other IM, I guess.

Since Japanese people need to input Kanji, we need to use ibus or such programs to convert Hiragana to Kanji. Also such programs can convert alphabet to Hiragana, so many Japanese people don't input Hiragana directly. However some people switch keyboard layouts, input Hiragana directly, and convert it to Kanji by using ibus or something.

I have forgot direct input of non-English characters.

What emacs lisps or other programs do you use?

I use doom-emacs in evil mode, so there's plenty of emacs packages. As for the other programs - I write this in firefox, for example. Maybe there's something specific that you want to know?

I was going to ask what emacs lisps or other programs you are using to input non-English text. The answer is "nothing"?

ghost commented 4 years ago

The answer is "nothing"?

Yeah, that's right. And reverse-im.el is just a convenience tool.

masm11 commented 4 years ago

Maybe reproduced by directly inputting Katakana.

screenshot-20200720-205947

masm11 commented 4 years ago

@Svadkos Fixed. I can input Katakana directly.

screenshot-20200720-220053

Could you try #31? You should be able to input russian characters and maybe use reverse-im without GtkIMContext.

ghost commented 4 years ago

Applied it on top of https://github.com/masm11/emacs/pull/23 and it works with and without GtkIMContext. Thank you.

masm11 commented 4 years ago

Hi, @fejfighter, could you pull in #31?

fejfighter commented 4 years ago

@Svadkos should be included, with latest changes from master

@masm11 Thanks, Done!

ghost commented 4 years ago

Thanks