Fcitx5-pinyin can't be activated for wps linux.

137 views
Skip to first unread message

Hongyi Zhao

unread,
Dec 21, 2020, 11:07:03 PM12/21/20
to fcitx-dev
On Ubuntu 20.10, I've installed the wps using the package downloaded from <https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/9719/wps-office_11.1.0.9719.XA_amd64.deb>. But I find that the fcitx5-pinyin can't be activated from within it, but this problem doesn't occur in libreoffice.

Any hints for this problem will be highly appreciated.

Regards,
HY



Weng Xuetian

unread,
Dec 21, 2020, 11:10:43 PM12/21/20
to fcitx-dev
FYI: https://github.com/fcitx/fcitx5/issues/83
wps ship their own fcitx im module, which only support fcitx 4. So you
may only use xim, or ibus im module with wps.

QT_IM_MODULE=xim wps
should work.

I asked wps to update but it seems that they haven't take any action yet.
> --
> You received this message because you are subscribed to the Google Groups "fcitx-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to fcitx-dev+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx-dev/c9bf62f0-3a41-4d27-af20-67653c98ee12n%40googlegroups.com.

Hongyi Zhao

unread,
Dec 22, 2020, 12:04:44 AM12/22/20
to fcitx-dev

Hongyi Zhao

unread,
Dec 22, 2020, 12:04:44 AM12/22/20
to fcitx-dev
On Tuesday, December 22, 2020 at 12:10:43 PM UTC+8 CS Slayer wrote:
FYI: https://github.com/fcitx/fcitx5/issues/83
wps ship their own fcitx im module, which only support fcitx 4. So you
may only use xim, or ibus im module with wps.

QT_IM_MODULE=xim wps
should work.

Thanks a lot, it does the trick.

Hongyi Zhao

unread,
Dec 22, 2020, 12:11:29 AM12/22/20
to fcitx-dev
On Tuesday, December 22, 2020 at 1:04:44 PM UTC+8 Hongyi Zhao wrote:
On Tuesday, December 22, 2020 at 12:10:43 PM UTC+8 CS Slayer wrote:
FYI: https://github.com/fcitx/fcitx5/issues/83
wps ship their own fcitx im module, which only support fcitx 4. So you
may only use xim, or ibus im module with wps.

QT_IM_MODULE=xim wps
should work.

For my case, based on my tries, both of the following can do the trick:

$ QT_IM_MODULE=xim wps
$ QT_IM_MODULE=ibus wps

But I still can't figure out why the following methods can't fix the problem:

$ GTK_IM_MODULE=xim wps
$ GTK_IM_MODULE=ibus wps

Regards,
HY

Weng Xuetian

unread,
Dec 22, 2020, 12:15:43 AM12/22/20
to fcitx-dev
Because wps is based on Qt.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx-dev/c32a33d3-ff80-4004-88fe-091e97aa7484n%40googlegroups.com.

Hongyi Zhao

unread,
Dec 22, 2020, 12:17:44 AM12/22/20
to fcitx-dev
On Tuesday, December 22, 2020 at 1:15:43 PM UTC+8 CS Slayer wrote:
Because wps is based on Qt.

Got it. Thanks a lot.

Hongyi Zhao

unread,
Dec 22, 2020, 12:58:08 AM12/22/20
to fcitx-dev
On Tuesday, December 22, 2020 at 12:10:43 PM UTC+8 CS Slayer wrote:
FYI: https://github.com/fcitx/fcitx5/issues/83
wps ship their own fcitx im module, which only support fcitx 4. So you
may only use xim, or ibus im module with wps.

Why other applications, say, web browser like Chrome or Firefox, don't have this problem?

Hongyi Zhao

unread,
Dec 22, 2020, 2:16:00 AM12/22/20
to fcitx-dev
On Tuesday, December 22, 2020 at 12:10:43 PM UTC+8 CS Slayer wrote:
FYI: https://github.com/fcitx/fcitx5/issues/83
wps ship their own fcitx im module, which only support fcitx 4. So you
may only use xim, or ibus im module with wps.

QT_IM_MODULE=xim wps
should work.

Based on my tries, on Ubuntu 20.10, either of the following methods will do the trick:

$ QT_IM_MODULE=xim wps
$ QT_IM_MODULE=ibus wps

But on Ubuntu 20.04, only the following works:

$ QT_IM_MODULE=ibus wps

Any hints for this phenomenon?

Regards,
HY

Weng Xuetian

unread,
Dec 22, 2020, 7:57:32 AM12/22/20
to fcitx-dev
Because they are open source and built against the system's gtk/qt,
they can use the system's im module.
Applications like wps usually come with their own Gtk/Qt library,
which could only use its own im module coming with it.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fcitx-dev/35b6ea17-3332-42f3-ad48-6aab114d6adan%40googlegroups.com.

Hongyi Zhao

unread,
Dec 22, 2020, 8:04:15 AM12/22/20
to fcitx-dev
On Tuesday, December 22, 2020 at 3:16:00 PM UTC+8 Hongyi Zhao wrote:
On Tuesday, December 22, 2020 at 12:10:43 PM UTC+8 CS Slayer wrote:
FYI: https://github.com/fcitx/fcitx5/issues/83
wps ship their own fcitx im module, which only support fcitx 4. So you
may only use xim, or ibus im module with wps.

QT_IM_MODULE=xim wps
should work.

Based on my tries, on Ubuntu 20.10, either of the following methods will do the trick:

$ QT_IM_MODULE=xim wps
$ QT_IM_MODULE=ibus wps

But on Ubuntu 20.04, only the following works:

$ QT_IM_MODULE=ibus wps

Any hints for this phenomenon?


It seems the correct environment variables should be set as below:

$ QT_IM_MODULE=ibus XMODIFIERS=@im=fcitx wps
$ QT_IM_MODULE=xim XMODIFIERS=@im=fcitx wps

Based on tries, both of the above settings work.

But for gedit using with root, only the following form can trigger the fcitx5-pinyin:

$ sudo GTK_IM_MODULE=xim XMODIFIERS=@im=fcitx gedit

The following will fail to activate the fcitx5-pinyin:
$ sudo GTK_IM_MODULE=ibus XMODIFIERS=@im=fcitx gedit
Reply all
Reply to author
Forward
0 new messages