Install sogou input method for OpenSUSE.

The author has newly entered a ThinkPad X6 1 game, on which OpenSUSE is installed. In order to get a better input experience, it is necessary to install sogou input method. However, the package manager used by OpenSUSE is RPM, which is quite different from Debian officially supported by sogou input method and incompatible with each other. In addition, even if Debian's package manager dpkg is installed in OpenSUSE, sogou's package can't be installed normally, which shows that the dependency condition is not met.

Fortunately, the multilingual support community of OpenSUSE has written an installation program that can install sogou input method under OpenSUSE, which makes sogou not limited to the patents of Debian Linux distribution (such as Ubuntu and Deepin).

The installation program of sogou input method is in the M 17N source code of OpenSUSE, that is, the multilingual support source code. First, enter the address of the source file (http://download.OpenSUSE.org/repositories/m17n/), and then find the file corresponding to your opensuse version in the list. After input, copy the address on the address bar for later use. For example, if the author's OpenSUSE is version Leap 15.0, then click "OpenSUSE_Leap_ 15.0" to get this address in the address bar:

Open the terminal and enter the following command to add a signal source. The address in the command is just copied, but "M 17N.repo" should be added at the end:

In this way, multilingual support sources are added.

You can install directly in the terminal:

Please wait a moment for the installation process to proceed normally. Unlike other RPM Bao Butong, the sogou input method "package" here is actually an installation program, which consists of shell scripts. Its function is to obtain the official DEB installation package in sogou, and then directly extract its contents and install them in the corresponding position of the system. Accordingly, sogou's DEB installation package can be installed in OpenSUSE which does not support DEB.

Theoretically, sogou input method can be found and enabled in Fcitx input method manager on the taskbar. However, the sogou input method has been unable to work normally, and the interface and control bar showing the actual input method have never appeared. After a while, the prompt of input method error pops up.

Later, the author tried to run the main program of sogou input method, sogou -qimpanel, directly on the terminal. The result showed that the library libQtWebKit.so.4 could not be found and could not be run.

It seems that after all, it is the lack of dependence that causes the running exception-OpenSUSE does not bring this library by default. Fortunately, this library file can be installed directly with zypper:

After the installation, restart the sogou input method, and you can type normally.

The author randomly opens a text editor for typing, and finds that although sogou input method can be used normally, all punctuation marks are half-angle English punctuation marks, even if the Chinese punctuation mark option is turned on.

The solution to this problem is actually very simple: just restart the system. After the restart, sogou input method can normally input Chinese punctuation marks.

If there is still a problem, you can set the default input method in the interface tab to Fcitx in the Qt 4 setup program of OpenSUSE (you can find it by searching Qt settings in the OpenSUSE start menu).