Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Plasma 6 chinese pinyin input issue
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
weiypan_us
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2017
Posts: 123

PostPosted: Sat Sep 28, 2024 4:22 pm    Post subject: Plasma 6 chinese pinyin input issue Reply with quote

After upgraded to Plasma 6, I installed app-i18n/fcitx-chinese-addons-5.1.6

Pinyin works on libreoffice Konsole, kwrite and kdenlive etc most apps but not work on Chromium and Firefox and Thunderbird.

Does anyone can shed some light on how to make pinyin on Chromium and Firefox and Thunderbird under app-i18n/fcitx-chinese-addons?
Back to top
View user's profile Send private message
druggo
Guru
Guru


Joined: 24 Sep 2003
Posts: 319
Location: Hangzhou, China

PostPosted: Sun Sep 29, 2024 8:45 am    Post subject: Reply with quote

have you checkout this guide https://wiki.gentoo.org/wiki/Fcitx#Using_Fcitx
_________________
HighWayToHell(blog)
https://blog.druggo.org/
Back to top
View user's profile Send private message
weiypan_us
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2017
Posts: 123

PostPosted: Sun Sep 29, 2024 8:25 pm    Post subject: Reply with quote

druggo wrote:
have you checkout this guide https://wiki.gentoo.org/wiki/Fcitx#Using_Fcitx


Yes, I have followed the https://wiki.gentoo.org/wiki/Fcitx#Using_Fcitx
$ cat ~/.xprofile
eval "$(dbus-launch --sh-syntax --exit-with-session)"
export XMODIFIERS="@im=fcitx"
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx

/etc/portage/make.profile $ cat ~/.xinitrc|grep -v "^#"
eval "$(dbus-launch --sh-syntax --exit-with-session)"
export XMODIFIERS="@im=fcitx"
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx

so far, I do not see introduction on app-i18n/fcitx-chinese-addons in gentoo "How To" documents.
Guide https://wiki.gentoo.org/wiki/Fcitx may only fit fcitx<=4 not fcitx-5.
Back to top
View user's profile Send private message
druggo
Guru
Guru


Joined: 24 Sep 2003
Posts: 319
Location: Hangzhou, China

PostPosted: Mon Sep 30, 2024 4:37 am    Post subject: Reply with quote

I'am using fcitx5 with fcitx-rime in Gnome, input works for firefox-bin and google-chrome-beta,
my settings :
Code:
$cat /etc/env.d/02locale
LANG=zh_CN.utf8
XMODIFIERS="@im=fcitx"
XIM=fcitx
XIM_PROGRAM=fcitx
QT_IM_MODULE=fcitx5
GTK_IM_MODULE=fcitx5

_________________
HighWayToHell(blog)
https://blog.druggo.org/
Back to top
View user's profile Send private message
weiypan_us
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2017
Posts: 123

PostPosted: Mon Sep 30, 2024 5:01 pm    Post subject: Reply with quote

druggo wrote:
I'am using fcitx5 with fcitx-rime in Gnome, input works for firefox-bin and google-chrome-beta,
my settings :
Code:
$cat /etc/env.d/02locale
LANG=zh_CN.utf8
XMODIFIERS="@im=fcitx"
XIM=fcitx
XIM_PROGRAM=fcitx
QT_IM_MODULE=fcitx5
GTK_IM_MODULE=fcitx5


[ebuild NS ] app-i18n/fcitx-4.2.9.8 [5.1.10] USE="cairo%* gtk3%* introspection%* nls%* pango%* table%* xkb%* -debug% -gtk2% -lua% -opencc%" LUA_SINGLE_TARGET="lua5-1%* -lua5-3% -lua5-4%"
[ebuild N ] app-i18n/fcitx-rime-0.3.2-r1
[blocks B ] app-i18n/fcitx:5 ("app-i18n/fcitx:5" is soft blocking app-i18n/fcitx-4.2.9.8)
[blocks B ] app-i18n/fcitx:4 ("app-i18n/fcitx:4" is soft blocking app-i18n/fcitx-5.1.10)

* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.

(app-i18n/fcitx-5.1.10:5/5::gentoo, installed) pulled in by
>=app-i18n/fcitx-5.1.5:5 required by (app-i18n/fcitx-qt-5.1.5-r2:5/5::gentoo, installed) USE="X qt5 qt6 wayland -onlyplugin -staticplugin" ABI_X86="(64)"
>=app-i18n/fcitx-5.1.9:5 required by (app-i18n/fcitx-chinese-addons-5.1.6:5/5::gentoo, installed) USE="cloudpinyin data gui opencc qt5 qt6 webengine -lua -test" ABI_X86="(64)"
app-i18n/fcitx required by @selected
>=app-i18n/fcitx-5.1.6:5 required by (app-i18n/fcitx-configtool-5.1.6-r1:5/5::gentoo, installed) USE="config-qt qt6 -kcm -test" ABI_X86="(64)"
>=app-i18n/fcitx-5.1.5:5 required by (app-i18n/libime-1.1.8:5/5::gentoo, installed) USE="data -doc -test" ABI_X86="(64)"

(app-i18n/fcitx-4.2.9.8:4/4::gentoo, ebuild scheduled for merge) pulled in by
>=app-i18n/fcitx-4.2.9:4 required by (app-i18n/fcitx-rime-0.3.2-r1:4/4::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)"
app-i18n/fcitx required by @selected

In my environment, app-i18n/fcitx-rime only compatible with fcitx-4 not fcitx-5.

I also tried change /etc/env.d/02locale to
blk161@Asus ~ $ grep -v "^#" /etc/env.d/02locale
LANG="zh_CN.utf8"

XIM=fcitx
XIM_PROGRAM=fcitx
QT_IM_MODULE=fcitx5
GTK_IM_MODULE=fcitx5
blk161@Asus ~ $

Available targets for the LANG variable:
[1] C
[2] C.utf8
[3] en_CA.utf8
[4] en_US
[5] en_US.iso88591
[6] en_US.utf8
[7] POSIX
[8] zh_CN
[9] zh_CN.gb18030
[10] zh_CN.gb2312
[11] zh_CN.gbk
[12] zh_CN.utf8 *
[ ] (free form)


same as before still not work for www-client/firefox-bin-130.0.1 and www-client/chromium-129.0.6668.58 Thunderbird

I am using KDE

Do you know where can find description for XIM, XIM_PROGRAM ?
Back to top
View user's profile Send private message
druggo
Guru
Guru


Joined: 24 Sep 2003
Posts: 319
Location: Hangzhou, China

PostPosted: Tue Oct 01, 2024 2:08 pm    Post subject: Reply with quote

weiypan_us wrote:

In my environment, app-i18n/fcitx-rime only compatible with fcitx-4 not fcitx-5.


oh, I install it with ~amd keywords

weiypan_us wrote:

I am using KDE

Do you know where can find description for XIM, XIM_PROGRAM ?

are you using wayland (mine is x11) ? if so, check this https://github.com/fcitx/fcitx5/issues/1094#issuecomment-2261519970

and for XIM such thing you could refer:
https://www.csslayer.info/wordpress/fcitx-dev/gaps-between-wayland-and-fcitx-or-all-input-methods/
_________________
HighWayToHell(blog)
https://blog.druggo.org/
Back to top
View user's profile Send private message
weiypan_us
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2017
Posts: 123

PostPosted: Thu Oct 03, 2024 10:36 pm    Post subject: Reply with quote

druggo wrote:
weiypan_us wrote:

In my environment, app-i18n/fcitx-rime only compatible with fcitx-4 not fcitx-5.


oh, I install it with ~amd keywords

weiypan_us wrote:

I am using KDE

Do you know where can find description for XIM, XIM_PROGRAM ?

are you using wayland (mine is x11) ? if so, check this https://github.com/fcitx/fcitx5/issues/1094#issuecomment-2261519970

and for XIM such thing you could refer:
https://www.csslayer.info/wordpress/fcitx-dev/gaps-between-wayland-and-fcitx-or-all-input-methods/


I installed app-i18n/fcitx-rime-5.1.8 after ignore keyword ~amd64.

But I don't know how to make it works. My system is kde plasma 6 on X (not wayland)

I tried to add keyboard "Chinese -mongolian(Manchu) but only can see some strange characters like ᢤᢛ.
Back to top
View user's profile Send private message
donjuanplatinum
n00b
n00b


Joined: 06 Oct 2024
Posts: 16
Location: China

PostPosted: Sun Oct 06, 2024 2:39 am    Post subject: Reply with quote

weiypan_us wrote:
druggo wrote:
weiypan_us wrote:

In my environment, app-i18n/fcitx-rime only compatible with fcitx-4 not fcitx-5.


oh, I install it with ~amd keywords

weiypan_us wrote:

I am using KDE

Do you know where can find description for XIM, XIM_PROGRAM ?

are you using wayland (mine is x11) ? if so, check this https://github.com/fcitx/fcitx5/issues/1094#issuecomment-2261519970

and for XIM such thing you could refer:
https://www.csslayer.info/wordpress/fcitx-dev/gaps-between-wayland-and-fcitx-or-all-input-methods/


I installed app-i18n/fcitx-rime-5.1.8 after ignore keyword ~amd64.

But I don't know how to make it works. My system is kde plasma 6 on X (not wayland)

I tried to add keyboard "Chinese -mongolian(Manchu) but only can see some strange characters like ᢤᢛ.



do you install the app-i18n/librime? :D
Back to top
View user's profile Send private message
weiypan_us
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2017
Posts: 123

PostPosted: Mon Oct 07, 2024 12:16 am    Post subject: Reply with quote

donjuanplatinum wrote:
weiypan_us wrote:
druggo wrote:
weiypan_us wrote:

In my environment, app-i18n/fcitx-rime only compatible with fcitx-4 not fcitx-5.


oh, I install it with ~amd keywords

weiypan_us wrote:

I am using KDE

Do you know where can find description for XIM, XIM_PROGRAM ?

are you using wayland (mine is x11) ? if so, check this https://github.com/fcitx/fcitx5/issues/1094#issuecomment-2261519970

and for XIM such thing you could refer:
https://www.csslayer.info/wordpress/fcitx-dev/gaps-between-wayland-and-fcitx-or-all-input-methods/


I installed app-i18n/fcitx-rime-5.1.8 after ignore keyword ~amd64.

But I don't know how to make it works. My system is kde plasma 6 on X (not wayland)

I tried to add keyboard "Chinese -mongolian(Manchu) but only can see some strange characters like ᢤᢛ.



do you install the app-i18n/librime? :D


Hi Donjuanplatinum,

Thank you very much! After install app-i18n/librime, it rime shows Chinese characters now. Wondering why https://wiki.gentoo.org/wiki/Fcitx#Using_Fcitx does not mention about this package.

Although rime works, same as app-i18n/fcitx-chinese-addons it is still only working for those KDE Plasma 6 native apps not for third parting like www-client/chromium-129.0.6668.58 and firefox and Thunderbird etc.

I am wondering if it is because Fcitx-5 can't efficiently communicate with Chromium?

Recall, after I upgrade to plasma 6, my fcitx is still on 4. I found I can't type Chinese in Konsole, libreoffice but worked fine with www-client/chromium and firefox Then I upgrade it to fcitx-5 by replacing fcitx-cloudpinyin and fcitx-libpinyin with app-i18n/fcitx-chinese-addons-5.1.6. After got onto fcitx-5, things reversed, Chinese input becomes not work on chromium and firefox but works on Konsole, libreoffice.
Back to top
View user's profile Send private message
donjuanplatinum
n00b
n00b


Joined: 06 Oct 2024
Posts: 16
Location: China

PostPosted: Mon Oct 07, 2024 2:27 am    Post subject: Reply with quote

hi weiypan_us
i think you can try the wayland kde
In fact, my problem is exactly the opposite of yours
my fctix can work on firefox emacs and so on
but cant work on kde native software like konsole
Back to top
View user's profile Send private message
donjuanplatinum
n00b
n00b


Joined: 06 Oct 2024
Posts: 16
Location: China

PostPosted: Mon Oct 07, 2024 2:38 am    Post subject: Reply with quote

also
did u ran the
Code:

dispatch-conf
Back to top
View user's profile Send private message
weiypan_us
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2017
Posts: 123

PostPosted: Tue Oct 08, 2024 2:40 am    Post subject: Reply with quote

donjuanplatinum wrote:
hi weiypan_us
i think you can try the wayland kde
In fact, my problem is exactly the opposite of yours
my fctix can work on firefox emacs and so on
but cant work on kde native software like konsole


what is your fcitx version and plasma version?
Back to top
View user's profile Send private message
donjuanplatinum
n00b
n00b


Joined: 06 Oct 2024
Posts: 16
Location: China

PostPosted: Tue Oct 08, 2024 4:47 pm    Post subject: Reply with quote

weiypan_us wrote:
donjuanplatinum wrote:
hi weiypan_us
i think you can try the wayland kde
In fact, my problem is exactly the opposite of yours
my fctix can work on firefox emacs and so on
but cant work on kde native software like konsole


what is your fcitx version and plasma version?

i update the fcitx to 5 and fcitx-rime to app-i18n/fcitx-rime-5.1.8:5::gentoo
but now i cant input chinese in any window. :cry:
my plasma is 6.1.5
Back to top
View user's profile Send private message
druggo
Guru
Guru


Joined: 24 Sep 2003
Posts: 319
Location: Hangzhou, China

PostPosted: Wed Oct 09, 2024 4:34 am    Post subject: Reply with quote

donjuanplatinum wrote:

i update the fcitx to 5 and fcitx-rime to app-i18n/fcitx-rime-5.1.8:5::gentoo
but now i cant input chinese in any window. :cry:
my plasma is 6.1.5


have you install the app-i18n/fcitx-configtool:5[config-qt,kcm] ?
_________________
HighWayToHell(blog)
https://blog.druggo.org/
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2444

PostPosted: Wed Oct 09, 2024 6:32 am    Post subject: Reply with quote

weiypan_us wrote:
Hi Donjuanplatinum,

Thank you very much! After install app-i18n/librime, it rime shows Chinese characters now. Wondering why https://wiki.gentoo.org/wiki/Fcitx#Using_Fcitx does not mention about this package.

Although rime works, same as app-i18n/fcitx-chinese-addons it is still only working for those KDE Plasma 6 native apps not for third parting like www-client/chromium-129.0.6668.58 and firefox and Thunderbird etc.

I am wondering if it is because Fcitx-5 can't efficiently communicate with Chromium?

Recall, after I upgrade to plasma 6, my fcitx is still on 4. I found I can't type Chinese in Konsole, libreoffice but worked fine with www-client/chromium and firefox Then I upgrade it to fcitx-5 by replacing fcitx-cloudpinyin and fcitx-libpinyin with app-i18n/fcitx-chinese-addons-5.1.6. After got onto fcitx-5, things reversed, Chinese input becomes not work on chromium and firefox but works on Konsole, libreoffice.


Try running KDE under X11. You should be able to select X11 session from your desktop manager when logging in.

Best Regards,
Georgi
Back to top
View user's profile Send private message
donjuanplatinum
n00b
n00b


Joined: 06 Oct 2024
Posts: 16
Location: China

PostPosted: Wed Oct 09, 2024 9:11 am    Post subject: Reply with quote

logrusx wrote:
weiypan_us wrote:
Hi Donjuanplatinum,

Thank you very much! After install app-i18n/librime, it rime shows Chinese characters now. Wondering why https://wiki.gentoo.org/wiki/Fcitx#Using_Fcitx does not mention about this package.

Although rime works, same as app-i18n/fcitx-chinese-addons it is still only working for those KDE Plasma 6 native apps not for third parting like www-client/chromium-129.0.6668.58 and firefox and Thunderbird etc.

I am wondering if it is because Fcitx-5 can't efficiently communicate with Chromium?

Recall, after I upgrade to plasma 6, my fcitx is still on 4. I found I can't type Chinese in Konsole, libreoffice but worked fine with www-client/chromium and firefox Then I upgrade it to fcitx-5 by replacing fcitx-cloudpinyin and fcitx-libpinyin with app-i18n/fcitx-chinese-addons-5.1.6. After got onto fcitx-5, things reversed, Chinese input becomes not work on chromium and firefox but works on Konsole, libreoffice.


Try running KDE under X11. You should be able to select X11 session from your desktop manager when logging in.

Best Regards,
Georgi



Okay, I'll give it a try
but by the way Does the current version of FCITX not support Wayland yet
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2444

PostPosted: Wed Oct 09, 2024 9:28 am    Post subject: Reply with quote

donjuanplatinum wrote:

Okay, I'll give it a try
but by the way Does the current version of FCITX not support Wayland yet


I don't know which way around that it, but I believe is some of the applications work under Wayland, the problem is the others that do not work, don't yet support Wayland, or at least that part of the protocol responsible for the alternative input.

If everything works under X11, then that should be the case. If still some apps don't work, then it would be easier to draw conclusion which doesn't support what.

Best Regards,
Georgi
Back to top
View user's profile Send private message
donjuanplatinum
n00b
n00b


Joined: 06 Oct 2024
Posts: 16
Location: China

PostPosted: Wed Oct 09, 2024 2:27 pm    Post subject: Reply with quote

logrusx wrote:
donjuanplatinum wrote:

Okay, I'll give it a try
but by the way Does the current version of FCITX not support Wayland yet


I don't know which way around that it, but I believe is some of the applications work under Wayland, the problem is the others that do not work, don't yet support Wayland, or at least that part of the protocol responsible for the alternative input.

If everything works under X11, then that should be the case. If still some apps don't work, then it would be easier to draw conclusion which doesn't support what.

Best Regards,
Georgi


very thank you logrusx :D :D
Back to top
View user's profile Send private message
donjuanplatinum
n00b
n00b


Joined: 06 Oct 2024
Posts: 16
Location: China

PostPosted: Wed Oct 09, 2024 2:34 pm    Post subject: Reply with quote

druggo wrote:
donjuanplatinum wrote:

i update the fcitx to 5 and fcitx-rime to app-i18n/fcitx-rime-5.1.8:5::gentoo
but now i cant input chinese in any window. :cry:
my plasma is 6.1.5


have you install the app-i18n/fcitx-configtool:5[config-qt,kcm] ?


im very thank you ! when i install app-i18n/fcitx-configtool, all the things work well
i can input chinese
Back to top
View user's profile Send private message
weiypan_us
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2017
Posts: 123

PostPosted: Wed Oct 09, 2024 8:29 pm    Post subject: Reply with quote

druggo wrote:
donjuanplatinum wrote:

i update the fcitx to 5 and fcitx-rime to app-i18n/fcitx-rime-5.1.8:5::gentoo
but now i cant input chinese in any window. :cry:
my plasma is 6.1.5


have you install the app-i18n/fcitx-configtool:5[config-qt,kcm] ?


my current USES for app-i18n/fcitx-configtool as below,

* Found these USE flags for app-i18n/fcitx-configtool-5.1.6-r1:
U I
+ + config-qt : Enable fcitx5-config-qt
- - kcm : Enable KDE KCM support
+ + qt6 : Add support for the Qt 6 application and UI framework
- - test : Enable Test

after add kcm, my situation didn't change.
Back to top
View user's profile Send private message
donjuanplatinum
n00b
n00b


Joined: 06 Oct 2024
Posts: 16
Location: China

PostPosted: Thu Oct 10, 2024 3:25 am    Post subject: Reply with quote

weiypan_us wrote:
druggo wrote:
donjuanplatinum wrote:

i update the fcitx to 5 and fcitx-rime to app-i18n/fcitx-rime-5.1.8:5::gentoo
but now i cant input chinese in any window. :cry:
my plasma is 6.1.5


have you install the app-i18n/fcitx-configtool:5[config-qt,kcm] ?


my current USES for app-i18n/fcitx-configtool as below,

* Found these USE flags for app-i18n/fcitx-configtool-5.1.6-r1:
U I
+ + config-qt : Enable fcitx5-config-qt
- - kcm : Enable KDE KCM support
+ + qt6 : Add support for the Qt 6 application and UI framework
- - test : Enable Test

after add kcm, my situation didn't change.


do you upgrade your fcitx and rime and plasma
? :D
_________________
跪敷衽以陈辞兮,耿吾既得此中正
驷玉虬以椉鹥兮,溘埃风余上征
Back to top
View user's profile Send private message
weiypan_us
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2017
Posts: 123

PostPosted: Thu Oct 10, 2024 10:00 pm    Post subject: Reply with quote

donjuanplatinum wrote:
weiypan_us wrote:
druggo wrote:
donjuanplatinum wrote:

i update the fcitx to 5 and fcitx-rime to app-i18n/fcitx-rime-5.1.8:5::gentoo
but now i cant input chinese in any window. :cry:
my plasma is 6.1.5


have you install the app-i18n/fcitx-configtool:5[config-qt,kcm] ?


my current USES for app-i18n/fcitx-configtool as below,

* Found these USE flags for app-i18n/fcitx-configtool-5.1.6-r1:
U I
+ + config-qt : Enable fcitx5-config-qt
- - kcm : Enable KDE KCM support
+ + qt6 : Add support for the Qt 6 application and UI framework
- - test : Enable Test

after add kcm, my situation didn't change.


do you upgrade your fcitx and rime and plasma
? :D


Before I upgraded to Plasma6 and fcitx5, all were good. Installing latest rime does not change my situation.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum