Open hh9527 opened 7 years ago
I know this is an old issue, but I'd also really like support for this.
Using fcitx+mozc on linux for my part. I think QInputMethod can be used to support this.
@zeGolem If you're willing to help, we may be able to get this working!
Two approaches:
QInputMethod
, I'm happy to review and merge a pull request.I'm an English speaker, so I'm not very familiar with non-western input methods...
It would be helpful to understand specific setup instructions: keyboard layout, key sequences, observed vs expected behavior etc.
I don't really know much about Qt, only started messing around with it recently, but I can maybe try to take a look at the code later… In the meantime, here are setup instruction for the IBus Input Method Framework, with the mozc IME for Japanese input. You can read more on the ArchWiki pages for IBus and Mozc
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
ibus-daemon -drxR
ibus-setup
neovim-qt
in the terminal you used for setting the environment variables.These last two steps show the issue. Ideally, when in normal mode, neovim-qt should skip the IME and read directly from the keyboard, so that you don't have to manually switch the IME on and off every time you go in and out of insert mode.
Hope these instructions were clear enough, and you understand the problem better. Thank you for your time, if you need any more help with the setup, let me know. I really hope this problem can be solved, it'd make taking writing in languages that require IMEs much easier.
If you get something working with IBus, I can try it on my setup using fcitx5, I think if it works on one, it should work on the other as well, but if it doesn't, I think I'd be able to adapt your code for it. If you want to try to setup fcitx5 with mozc, there is this video showcasing how to do it on ArchLinux: https://www.youtube.com/watch?v=lJoXhS4EUJs
[Delete]
Weird... GitHub double posted.
@zeGolem
Those are EXCELLENT instructions! That is exactly what I was looking for...
I will work on getting a test environment set up, and I will report back in a few days with an initial investigation.
Hi, did you manage to get your testing environment set up?
This is very useful for editing no-western text document. (for example: markdown files) VIM has already support this feature for many years.