-
-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated fcitx required for supporting various input methods #218
Comments
I'm not familiar with fcitx, ibus, or dealing with any types of input methods. Not sure if this is something that needs adjusted in Qt or Scintilla currently. |
我印象中这是 Qt 的问题,如果是 fcitx,需要把 libfcitxplatforminputcontextplugin.so 放在某个目录去加载。具体的细节不太记得了 |
@NichtsHsu Thanks for the info. Scintilla seems to have some sort of support for IME events, but not sure myself how to test it. Hopefully someone more familiar with it can give it a shot. |
try https://aur.archlinux.org/packages/fcitx5-qt6-git, I succeeded. use fcitx5 replace fcitx |
@imkos Thanks for looking into this! There isn't much information about fcitx and Qt, but the only thing I found was exactly what you suggested, and that is to update fcitx. So I guess the question is now is if this project is able to do anything to address this? Or best to leave it up to the user (and possibly document the solution somewhere). |
Hi everybody, here is a way to build NotepadNext with fcitx support.
|
I think packaging this library in Appimage allows NotepadNext to support fcitx easily. |
@NichtsHsu Thanks! If/when this project moves to cmake then this might be the best solution. So what is the root cause of the need to package fcitx manually? Do Linux OSs just not have an up-to-date fcitx installed by default? |
@dail8859 I guess it might be related with how the AppImage is packaged and executed. On Ubuntu, I observed several Qt programs on my PC and found that some of them installed this library file in their own directory: $ locate libfcitxplatforminputcontextplugin.so
/opt/kingsoft/wps-office/office6/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
/opt/zoom/platforminputcontexts/libfcitxplatforminputcontextplugin.so I'm not sure why, but they should have a reason for doing so. |
@NichtsHsu Thanks for the excellent info as always!
Agreed. This would seem to indicate that they've ran into this issue before and came to the same conclusion. |
wps use vendor libraries, they can't install libfcitxplatforminputcontextplugin.so to /usr/lib,otherwise it will conflict with wps will set QT_PLUGIN_PATH environment variable when startup,to use this library |
The method mentioned by @NichtsHsu is the right direction. I added fcitx's support to another Qt6 app and it works:
Just install the If P.S. I googled related problems and I somehow came to this issue. I don't even know what is this project. Hopefully, my PR can be a reference if someone wants to add related code to this project's build script |
No, not bundle fcitx entirely, just an im (input method) plugin (which I don't know in great detail, the app needs to load it so that the fcitx on the host system can communicate with the app?) There is probably already an ibus plugin under
Yes, they have, but appimage needs the lowest version possible, and ubuntu20.04 don't have fcitx's qt6 plugin, so we have to build one manually (or bump the ubuntu version to 22.10 and just |
pls add the code and PR |
If possible, please consider supporting input methods under linux, such as fcitx and ibus, which can't input Chinese at present.
The text was updated successfully, but these errors were encountered: