Skip to content
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

unable to input Chinese on Linux #1205

Open
30035172 opened this issue Dec 24, 2021 · 5 comments
Open

unable to input Chinese on Linux #1205

30035172 opened this issue Dec 24, 2021 · 5 comments

Comments

@30035172
Copy link

dear Shotcut team:
a bug need to fix, the shotcut can't good work in Linux, i use ubuntu maket installed the shotcut sofeware, it's unexpected quit if add a video track. then i uninstall it. then downloaded the appimage from www.shotcut.org. it's working. but another problem is can't input Chinese. i searched a article from internet , they are said need put "libfcitxplatforminputcontextplugin.so" this file. i appreciate if can fix this bug. thank you a lot.

@ddennedy ddennedy changed the title a bug need to fix unable to imput Chinese on Linux Dec 24, 2021
@ddennedy
Copy link
Member

Please use a better subject the next time. I changed it for you. Our build of Qt as provided by the Qt project does not have that library:

$ find ~/Qt -name '*platforminputcontextplugin.so*'
/home/ddennedy/Qt/5.15.2/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
/home/ddennedy/Qt/5.15.2/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so

I will try to pick it up from the ubuntu:20.04 docker image we use to make our builds. It looks a little more complicated than just this library though. Finally, I found package "fcitx-frontend-qt5" includes this library, but installing it also includes

The following NEW packages will be installed:
  fcitx fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3
  fcitx-frontend-qt5 fcitx-module-dbus fcitx-module-kimpanel fcitx-module-lua fcitx-module-x11 fcitx-modules
  fcitx-ui-classic fcitx5-module-quickphrase-editor libfcitx-config4 libfcitx-core0 libfcitx-gclient1 libfcitx-qt5-1
  libfcitx-qt5-data libfcitx-utils0 libgettextpo0 libpresage-data libpresage1v5 libtinyxml2.6.2v5 presage

I do not know how many other things might need to be included, but we can start here.

@ddennedy ddennedy added this to the v22.x milestone Dec 24, 2021
@30035172
Copy link
Author

i am appreciate you reply so quickly.
in ubuntu system, have two input software. one of the two is fcitx, for Chinese, more like this one, and the default of the two is ibus. i don't know what the library name of ibus, i think you need include ibus also.

@ddennedy
Copy link
Member

ddennedy commented Jan 14, 2022

Unfortunately, it looks like pulling this package in from Ubuntu 18.04 on which the portable tar, AppImage, and Snap are based includes Qt libraries that are incompatible with what we are using (Qt 5.15.2). Rather, we need to build it from https://github.com/fcitx/fcitx-qt5/ ourselves, and we can get fcitx dependencies from the Ubuntu base. However, there are quite a few fcitx-related packages that makes it unclear which to bundle and which not and of those to bundle, how to exactly for a relocatable package. It requires a deeper dive than I am interested in the near term, and I suggest someone who is really interested (Chinese) to try. After all, I do not even know how to confirm it is working. The easiest way to hack on this outside the build code is to download the portable tar version of Shotcut on Ubuntu (might be OK to use newer than 18.04 to develop the idea), build fcitx-qt5 from source, add required files from packages, and record the minimum steps necessary.

From looking at the files on my system, it appears the Flatpak version of Shotcut may already support this input method, and it would be nice for someone to test this.

@30035172
Copy link
Author

it's able input Chinese at the flatpak. i hope it's able input for appimage also.
Thank you a lot

Screenshot2

@ddennedy ddennedy removed this from the v22.01 milestone Jan 17, 2022
@hwiorn
Copy link

hwiorn commented Nov 18, 2022

The fcitx for Korean also does not work on AppImage, portable and snap version neither except Flatpak.
Currently, I think the Flatpak version seems to be the only reasonable option for other IME users which are non-latin, especially CJK users.

@bmatherly bmatherly changed the title unable to imput Chinese on Linux unable to input Chinese on Linux Sep 4, 2023
@mltframework mltframework deleted a comment from luzpaz Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants