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: 120

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: 315
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: 120

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: 315
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: 120

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: 315
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: 120

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: 2

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: 120

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
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