Chinese Input Method for Linux
Many people say that it is difficult to input Chinese under Linux, here is a program to install Sogou Input Method under X11.
The Linux version of sogou input method only supports Fcitx+X11, so you need to uninstall Fcitx5 and enter the X11 desktop environment.
Install sogou input method
sudo apt remove fcitx5-*
sudo apt install fcitx
sudo apt install qtbase5-dev
sudo apt install libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2
sudo apt install libgsettings-qt1
sudo apt install ./sogoupinyin_4.2.1.145_amd64.deb
At this point you can use im-config to configure the system to use fcitx input framework, reboot, the system automatically starts fcitx input method framework, use fcitx-config to add a sogoupinyin one can be.
However, at this point you'll realize that although it's configured, it doesn't work and you can run the/opt/sogoupinyin/files/bin/sogoupinyin-configtool
to test it and will find that there is an error reported.
This should be a problem with the qt5 library that comes with sogou, which needs to be modified to work.
The sogou input method is installed in the /opt/sogoupinyin/files directory, and can be accessed using the/opt/sogoupinyin/files/bin/sogoupinyin-configtool
Check out its use of dynamic libraries. We can see that its use of the/opt/sogoupinyin/files/lib/qt5
Inside the dynamic library, there are certain problems, we need to replace it with the operating system comes with the qt5 library inside, we have installed all the required qt5 libraries in the previous paragraph, in the/usr/lib/x86_64-linux-gnu/qt5/
We introduced it into the
Modify the file /opt/sogoupinyin/files/bin/ to read
[Paths]
Prefix = /usr/lib/x86_64-linux-gnu/qt5/
Plugins = plugins
Remove sogou's own libraries
sudo rm /opt/sogoupinyin/files/lib/qt5 -rf
At this point it's basically good enough to run/opt/sogoupinyin/files/bin/sogoupinyin-configtool
To test it out, it's usually already displaying this interface