|Summary:||chinese/fcitx chinese/ibus-pinyin can not input any chinese characters in gtk2, qt5 and linux programmes|
|Product:||Ports & Packages||Reporter:||dybnu|
|Component:||Individual Port(s)||Assignee:||freebsd-ports-bugs mailing list <ports-bugs>|
|Severity:||Affects Some People||CC:||jinlong.hao, lichray|
Description dybnu 2017-01-03 10:31:02 UTC
My setting is setenv LANG en_US.UTF-8 setenv XMODIFIERS "@im=fcitx" setenv LC_CTYPE zh_CN.UTF-8 It works well in gtk3 (like x11/sakura ) and qt4 (graphics/qcomicbook),and even normal X program like x11/xterm, but can not works in any gtk2, qt5 nor linux programmes such as graphics/gimp, editors/libreoffice, www/chromium, print/lyx, www/linux-firefox, www/flashplayer. both chinese/fcitx and chinese/ibus-pinyin have the same problem, even I installed the package textproc/fcitx-qt5.
Comment 1 lichray 2017-01-03 17:51:20 UTC
(In reply to dybnu from comment #0) Can you try set GTK_IM_MODULE=fcitx and QT_IM_MODULE=fcitx also?
Comment 2 dybnu 2017-01-06 10:30:52 UTC
(In reply to lichray from comment #1) qt5 programmes work with QT_IM_MODULE=fcitx , but gtk2 and linux still keep quiet.
Comment 3 lichray 2017-01-07 05:36:33 UTC
(In reply to dybnu from comment #2) I don't think GTK IM module support Linux at the same time, because that will require a Linux binary of the module. About Gtk2, can you confirm that the GTK2 option of your fcitx port is selected and the installed version has that option turned on?
Comment 4 dybnu 2017-01-09 00:44:16 UTC
(In reply to lichray from comment #3) I used to install fcitx from pkg. With your suggestion I reinstall it from ports ,and it finally get into work with gtk2. So ,I reinstall it from pkg again , it continue works, of cause, "GTK_IM_MODULE=fcitx" needs to be set. And the linux problem ,it used to work very well in the linux_fc6 age. linux_f10, linux_c6, linux_c7 can't
Comment 5 dybnu 2017-01-09 00:47:04 UTC
(In reply to lichray from comment #3) btw, please add a pkg-message include the "QT_IM_MODULE=fcitx" setting to textproc/fcitx-qt5 to make it works well. Thank you.
Comment 6 lichray 2017-01-10 05:12:01 UTC
(In reply to dybnu from comment #5) You can contribute a patch right? I will take care of the rest :)
Comment 7 lichray 2017-01-10 05:14:48 UTC
(In reply to dybnu from comment #4) It may be hard for you to confirm whether those Linux bases were using XIM interface right now, but let me ask the author and come back to you...
Comment 8 dybnu 2017-01-14 10:43:34 UTC
Created attachment 178877 [details] patches to add a pkg-message for textproc/fcitx-qt5
Comment 9 dybnu 2017-01-14 10:44:32 UTC
Created attachment 178878 [details] patches to add a pkg-message for textproc/fcitx-qt5
Comment 10 dybnu 2017-01-14 10:47:30 UTC
(In reply to lichray from comment #6) I don't know how to make a patch exactly, but these two files works in my PC.