Apropos of the discussion this week with the person trying to get Chinese input going on CentOS, I filed a request for enhancement with Fedora's EPEL to add fcitx-anthy as a package. Currently, I'm able to get it working with the Fedora 20 rpm, but it would be nice to not have to search for it.
It's been assigned (I'm not sure how meaningful that is, depending upon the assignee's free time), but anyone who would like to add their support to the request can view the bug at https://bugzilla.redhat.com/show_bug.cgi?id=1471924
On 07/20/2017 05:49 AM, Scott Robbins wrote:
Apropos of the discussion this week with the person trying to get Chinese input going on CentOS, I filed a request for enhancement with Fedora's EPEL to add fcitx-anthy as a package. Currently, I'm able to get it working with the Fedora 20 rpm, but it would be nice to not have to search for it.
It's been assigned (I'm not sure how meaningful that is, depending upon the assignee's free time), but anyone who would like to add their support to the request can view the bug at https://bugzilla.redhat.com/show_bug.cgi?id=1471924
And I filed a request for the fcitx-config-gkt2/gtk3 tools to be compiled.
On Tue, Jul 25, 2017 at 09:06:25PM -0400, H wrote:
On 07/20/2017 05:49 AM, Scott Robbins wrote:
assignee's free time), but anyone who would like to add their support to the request can view the bug at https://bugzilla.redhat.com/show_bug.cgi?id=1471924
And I filed a request for the fcitx-config-gkt2/gtk3 tools to be compiled.
Which would also be useful, especially as fcitx-pinyan is already available. I prefer the manual way because I've gotten so used to it, but suspect the vast majority who want to use it as a desktop would much prefer the gui tool.
On 07/25/2017 09:12 PM, Scott Robbins wrote:
On Tue, Jul 25, 2017 at 09:06:25PM -0400, H wrote:
On 07/20/2017 05:49 AM, Scott Robbins wrote:
assignee's free time), but anyone who would like to add their support to the request can view the bug at https://bugzilla.redhat.com/show_bug.cgi?id=1471924
And I filed a request for the fcitx-config-gkt2/gtk3 tools to be compiled.
Which would also be useful, especially as fcitx-pinyan is already available. I prefer the manual way because I've gotten so used to it, but suspect the vast majority who want to use it as a desktop would much prefer the gui tool.
The link is https://bugzilla.redhat.com/show_bug.cgi?id=1473715. When I checked today, there are no comments...
If anyone else is interested, please add your names to this bug. Thank you.
On 07/25/2017 09:12 PM, Scott Robbins wrote:
On Tue, Jul 25, 2017 at 09:06:25PM -0400, H wrote:
On 07/20/2017 05:49 AM, Scott Robbins wrote:
assignee's free time), but anyone who would like to add their support to the request can view the bug at https://bugzilla.redhat.com/show_bug.cgi?id=1471924
And I filed a request for the fcitx-config-gkt2/gtk3 tools to be compiled.
Which would also be useful, especially as fcitx-pinyan is already available. I prefer the manual way because I've gotten so used to it, but suspect the vast majority who want to use it as a desktop would much prefer the gui tool.
Scott, I am back at this again. I am able to switch between Chinese and two western languages in terminal sessions but not in GUI applications such as LO, Thunderbird, Firefox... Only the default language works in these GUI applications.
What setting in fcitx might I be missing?
Thanks.
On Tue, Aug 01, 2017 at 08:55:22PM -0400, H wrote:
Scott, I am back at this again. I am able to switch between Chinese and two western languages in terminal sessions but not in GUI applications such as LO, Thunderbird, Firefox... Only the default language works in these GUI applications.
What setting in fcitx might I be missing?
Well, I'm not the expert, especially at Chinese. I do remember in an older version of FreeBSD, to get it to work in firefox, I would use LC_CTYPE=ja_JP.UTF-8 firefox
from a terminal, and it would then work. I never figured out why (it worked with other GTK apps such as libreoffice. Hrrm, I don't think I tried in Thunderbird.
Ah, also, in my .xinitrc (I boot into text mode then run startx I have, above the line calling the window manager
export LC_CTYPE=en_US.UTF-8
Do you have fcitx-gtk2 and fcitx-gtk3 installed? I repeat, I'm not an expert on this, my skill is in googling and finding out how others got it done, then just copying that and summarizing it. :)
On 08/01/2017 09:09 PM, Scott Robbins wrote:
On Tue, Aug 01, 2017 at 08:55:22PM -0400, H wrote:
Scott, I am back at this again. I am able to switch between Chinese and two western languages in terminal sessions but not in GUI applications such as LO, Thunderbird, Firefox... Only the default language works in these GUI applications.
What setting in fcitx might I be missing?
Well, I'm not the expert, especially at Chinese. I do remember in an older version of FreeBSD, to get it to work in firefox, I would use LC_CTYPE=ja_JP.UTF-8 firefox
from a terminal, and it would then work. I never figured out why (it worked with other GTK apps such as libreoffice. Hrrm, I don't think I tried in Thunderbird.
Ah, also, in my .xinitrc (I boot into text mode then run startx I have, above the line calling the window manager
export LC_CTYPE=en_US.UTF-8
Do you have fcitx-gtk2 and fcitx-gtk3 installed? I repeat, I'm not an expert on this, my skill is in googling and finding out how others got it done, then just copying that and summarizing it. :)
Thank you, tried that but no difference. I have temporarily deactivated Chinese and am just trying to switch between two western languages. Again, this works fine in a terminal session but not in any GUI program I tried, including firefox, thunderbird, geany.
I do have both fcitx-gtk2 and fcitx-gtk3 installed.
I suspect there may be some configuration setting I have missed but since there is no graphical configuration utility it's hard to figure out what might be wrong by just looking at the several configuration text files.
On Wed, Aug 02, 2017 at 09:37:06AM -0400, H wrote:
Ah, also, in my .xinitrc (I boot into text mode then run startx I have, above the line calling the window manager
export LC_CTYPE=en_US.UTF-8
Do you have fcitx-gtk2 and fcitx-gtk3 installed? I repeat, I'm not an expert on this, my skill is in googling and finding out how others got it done, then just copying that and summarizing it. :)
Thank you, tried that but no difference. I have temporarily deactivated Chinese and am just trying to switch between two western languages. Again, this works fine in a terminal session but not in any GUI program I tried, including firefox, thunderbird, geany.
I do have both fcitx-gtk2 and fcitx-gtk3 installed.
I suspect there may be some configuration setting I have missed but since there is no graphical configuration utility it's hard to figure out what might be wrong by just looking at the several configuration text files.
What about, from terminal, doing something like XMODIFIERS=@im=fcitx LC_CTYPE=zh_TW.Big5 GTK_IM_MODULE=fcitx firefox
(the zh_TW.Big5 is just a guess, one that I saw googling lc_ctype for Chinese.). These are just guesses on my part. I've not had a similar issue, save for the firefox thing on FreeBSD that I mentioned.
On 08/02/2017 09:46 AM, Scott Robbins wrote:
On Wed, Aug 02, 2017 at 09:37:06AM -0400, H wrote:
Ah, also, in my .xinitrc (I boot into text mode then run startx I have, above the line calling the window manager
export LC_CTYPE=en_US.UTF-8
Do you have fcitx-gtk2 and fcitx-gtk3 installed? I repeat, I'm not an expert on this, my skill is in googling and finding out how others got it done, then just copying that and summarizing it. :)
Thank you, tried that but no difference. I have temporarily deactivated Chinese and am just trying to switch between two western languages. Again, this works fine in a terminal session but not in any GUI program I tried, including firefox, thunderbird, geany.
I do have both fcitx-gtk2 and fcitx-gtk3 installed.
I suspect there may be some configuration setting I have missed but since there is no graphical configuration utility it's hard to figure out what might be wrong by just looking at the several configuration text files.
What about, from terminal, doing something like XMODIFIERS=@im=fcitx LC_CTYPE=zh_TW.Big5 GTK_IM_MODULE=fcitx firefox
(the zh_TW.Big5 is just a guess, one that I saw googling lc_ctype for Chinese.). These are just guesses on my part. I've not had a similar issue, save for the firefox thing on FreeBSD that I mentioned.
Interesting, that seems to work! Will check it out more tomorrow. However, it seemed to work only for firefox (that you have on the command line), it did not work for thunderbird or geany.
The Big5 is likely not correct but I will check tomorrow.
Thought: I do have XMODIFIERS and GTK_IM_MODULE set in .bashrc:
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx
I guess that these settings in .bashrc are picked up by the terminal only and not by GUI applications?? If so, there is maybe another file I need to add them to?
On Wed, Aug 02, 2017 at 08:15:58PM -0400, H wrote:
On 08/02/2017 09:46 AM, Scott Robbins wrote:
On Wed, Aug 02, 2017 at 09:37:06AM -0400, H wrote:
Ah, also, in my .xinitrc (I boot into text mode then run startx I have, above the line calling the window manager
export LC_CTYPE=en_US.UTF-8
I suspect there may be some configuration setting I have missed but since there is no graphical configuration utility it's hard to figure out what might be wrong by just looking at the several configuration text files.
What about, from terminal, doing something like XMODIFIERS=@im=fcitx LC_CTYPE=zh_TW.Big5 GTK_IM_MODULE=fcitx firefox
(the zh_TW.Big5 is just a guess, one that I saw googling lc_ctype for Chinese.). These are just guesses on my part. I've not had a similar issue, save for the firefox thing on FreeBSD that I mentioned.
Interesting, that seems to work! Will check it out more tomorrow. However, it seemed to work only for firefox (that you have on the command line), it did not work for thunderbird or geany.
The Big5 is likely not correct but I will check tomorrow.
Thought: I do have XMODIFIERS and GTK_IM_MODULE set in .bashrc:
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx
In the FreeBSD install where this was an issue in firefox, I had them in .bash_profile, I think. Or maybe .bashrc. :) I don't remember. But the only thing I remember being an issues was Firefox, and the only variable I had to add at the time was changing LC_CTYPE from English to Japanese.
I guess that these settings in .bashrc are picked up by the terminal only and not by GUI applications?? If so, there is maybe another file I need to add them to?
Try .bash_profile, (and then log out and log in.)
On 08/02/2017 09:07 PM, Scott Robbins wrote:
On Wed, Aug 02, 2017 at 08:15:58PM -0400, H wrote:
On 08/02/2017 09:46 AM, Scott Robbins wrote:
On Wed, Aug 02, 2017 at 09:37:06AM -0400, H wrote:
Ah, also, in my .xinitrc (I boot into text mode then run startx I have, above the line calling the window manager
export LC_CTYPE=en_US.UTF-8
I suspect there may be some configuration setting I have missed but since there is no graphical configuration utility it's hard to figure out what might be wrong by just looking at the several configuration text files.
What about, from terminal, doing something like XMODIFIERS=@im=fcitx LC_CTYPE=zh_TW.Big5 GTK_IM_MODULE=fcitx firefox
(the zh_TW.Big5 is just a guess, one that I saw googling lc_ctype for Chinese.). These are just guesses on my part. I've not had a similar issue, save for the firefox thing on FreeBSD that I mentioned.
Interesting, that seems to work! Will check it out more tomorrow. However, it seemed to work only for firefox (that you have on the command line), it did not work for thunderbird or geany.
The Big5 is likely not correct but I will check tomorrow.
Thought: I do have XMODIFIERS and GTK_IM_MODULE set in .bashrc:
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx
In the FreeBSD install where this was an issue in firefox, I had them in .bash_profile, I think. Or maybe .bashrc. :) I don't remember. But the only thing I remember being an issues was Firefox, and the only variable I had to add at the time was changing LC_CTYPE from English to Japanese.
I guess that these settings in .bashrc are picked up by the terminal only and not by GUI applications?? If so, there is maybe another file I need to add them to?
Try .bash_profile, (and then log out and log in.)
Still struggling here. Adding them to .bash_profile does not make any difference. I /think/ I need to put them somewhere so all GUI programs get initialized. Spending a couple of minutes on the 'net it seems .xinitrc i my home directory should be suitable. This file did not exist so I created it and made it executable.
Based on my googling, this is what I came up with:
#!/bin/sh
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export LC_CTYPE=zh_CN.GB18030 export XMODIFIERS=@im=fcitx
Restarting the computer has no effect, nor does executing this script in a terminal window and then running e.g. geany. However, when I put geany in the script itself everything works fine. Note, by the way, that I changed to the encoding above since I am doing pinyin and using simplified characters.
So, I now believe there is a place where I need to add these statements for them to have effect on system-wide GUI programs but where?
Anyone know which file?
On 08/03/2017 07:34 PM, H wrote:
On 08/02/2017 09:07 PM, Scott Robbins wrote:
On Wed, Aug 02, 2017 at 08:15:58PM -0400, H wrote:
On 08/02/2017 09:46 AM, Scott Robbins wrote:
On Wed, Aug 02, 2017 at 09:37:06AM -0400, H wrote:
Ah, also, in my .xinitrc (I boot into text mode then run startx I have, above the line calling the window manager
export LC_CTYPE=en_US.UTF-8
I suspect there may be some configuration setting I have missed but since there is no graphical configuration utility it's hard to figure out what might be wrong by just looking at the several configuration text files.
What about, from terminal, doing something like XMODIFIERS=@im=fcitx LC_CTYPE=zh_TW.Big5 GTK_IM_MODULE=fcitx firefox
(the zh_TW.Big5 is just a guess, one that I saw googling lc_ctype for Chinese.). These are just guesses on my part. I've not had a similar issue, save for the firefox thing on FreeBSD that I mentioned.
Interesting, that seems to work! Will check it out more tomorrow. However, it seemed to work only for firefox (that you have on the command line), it did not work for thunderbird or geany.
The Big5 is likely not correct but I will check tomorrow.
Thought: I do have XMODIFIERS and GTK_IM_MODULE set in .bashrc:
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx
In the FreeBSD install where this was an issue in firefox, I had them in .bash_profile, I think. Or maybe .bashrc. :) I don't remember. But the only thing I remember being an issues was Firefox, and the only variable I had to add at the time was changing LC_CTYPE from English to Japanese.
I guess that these settings in .bashrc are picked up by the terminal only and not by GUI applications?? If so, there is maybe another file I need to add them to?
Try .bash_profile, (and then log out and log in.)
Still struggling here. Adding them to .bash_profile does not make any difference. I /think/ I need to put them somewhere so all GUI programs get initialized. Spending a couple of minutes on the 'net it seems .xinitrc i my home directory should be suitable. This file did not exist so I created it and made it executable.
Based on my googling, this is what I came up with:
#!/bin/sh
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export LC_CTYPE=zh_CN.GB18030 export XMODIFIERS=@im=fcitx
Restarting the computer has no effect, nor does executing this script in a terminal window and then running e.g. geany. However, when I put geany in the script itself everything works fine. Note, by the way, that I changed to the encoding above since I am doing pinyin and using simplified characters.
So, I now believe there is a place where I need to add these statements for them to have effect on system-wide GUI programs but where?
Anyone know which file?
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
I have done some experimenting:
- switching between two western languages and pinyin works well in a terminal window
- I just discovered all of this also works well in a note-type field in KeePassX BUT
- none of it works in firefox, thunderbird, libreoffice or geany
My setup is thus partly correct and I draw the conclusion that KeePassX is compiled using a different window library than the other four applications?
Can anyone shed light on this?
On 08/05/2017 11:39 AM, H wrote:
On 08/03/2017 07:34 PM, H wrote:
On 08/02/2017 09:07 PM, Scott Robbins wrote:
On Wed, Aug 02, 2017 at 08:15:58PM -0400, H wrote:
On 08/02/2017 09:46 AM, Scott Robbins wrote:
On Wed, Aug 02, 2017 at 09:37:06AM -0400, H wrote:
> Ah, also, in my .xinitrc (I boot into text mode then run startx I have, > above the line calling the window manager > > export LC_CTYPE=en_US.UTF-8 I suspect there may be some configuration setting I have missed but since there is no graphical configuration utility it's hard to figure out what might be wrong by just looking at the several configuration text files.
What about, from terminal, doing something like XMODIFIERS=@im=fcitx LC_CTYPE=zh_TW.Big5 GTK_IM_MODULE=fcitx firefox
(the zh_TW.Big5 is just a guess, one that I saw googling lc_ctype for Chinese.). These are just guesses on my part. I've not had a similar issue, save for the firefox thing on FreeBSD that I mentioned.
Interesting, that seems to work! Will check it out more tomorrow. However, it seemed to work only for firefox (that you have on the command line), it did not work for thunderbird or geany.
The Big5 is likely not correct but I will check tomorrow.
Thought: I do have XMODIFIERS and GTK_IM_MODULE set in .bashrc:
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx
In the FreeBSD install where this was an issue in firefox, I had them in .bash_profile, I think. Or maybe .bashrc. :) I don't remember. But the only thing I remember being an issues was Firefox, and the only variable I had to add at the time was changing LC_CTYPE from English to Japanese.
I guess that these settings in .bashrc are picked up by the terminal only and not by GUI applications?? If so, there is maybe another file I need to add them to?
Try .bash_profile, (and then log out and log in.)
Still struggling here. Adding them to .bash_profile does not make any difference. I /think/ I need to put them somewhere so all GUI programs get initialized. Spending a couple of minutes on the 'net it seems .xinitrc i my home directory should be suitable. This file did not exist so I created it and made it executable.
Based on my googling, this is what I came up with:
#!/bin/sh
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export LC_CTYPE=zh_CN.GB18030 export XMODIFIERS=@im=fcitx
Restarting the computer has no effect, nor does executing this script in a terminal window and then running e.g. geany. However, when I put geany in the script itself everything works fine. Note, by the way, that I changed to the encoding above since I am doing pinyin and using simplified characters.
So, I now believe there is a place where I need to add these statements for them to have effect on system-wide GUI programs but where?
Anyone know which file?
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
I have done some experimenting:
switching between two western languages and pinyin works well in a terminal window
I just discovered all of this also works well in a note-type field in KeePassX BUT
none of it works in firefox, thunderbird, libreoffice or geany
My setup is thus partly correct and I draw the conclusion that KeePassX is compiled using a different window library than the other four applications?
Can anyone shed light on this?
Seems geany uses Qt and the other four use GTK libraries. My problem is likely related to this, have to search for setup issues related to GTK.
On Sat, Aug 05, 2017 at 12:03:43PM -0400, H wrote:
I just discovered all of this also works well in a note-type field in KeePassX BUT
none of it works in firefox, thunderbird, libreoffice or geany
My setup is thus partly correct and I draw the conclusion that KeePassX is compiled using a different window library than the other four applications?
Can anyone shed light on this?
Seems geany uses Qt and the other four use GTK libraries. My problem is likely related to this, have to search for setup issues related to GTK.
It might be worth creating a new user and seeing if it works for said user.
I don't know if you mentioned what desktop you use, but it might also be worth, with said new user, trying openbox (available from EPEL) or some other less intrusive desk environment to see if there's something Gnome is doing.
On 08/05/2017 12:10 PM, Scott Robbins wrote:
On Sat, Aug 05, 2017 at 12:03:43PM -0400, H wrote:
I just discovered all of this also works well in a note-type field in KeePassX BUT
none of it works in firefox, thunderbird, libreoffice or geany
My setup is thus partly correct and I draw the conclusion that KeePassX is compiled using a different window library than the other four applications?
Can anyone shed light on this?
Seems geany uses Qt and the other four use GTK libraries. My problem is likely related to this, have to search for setup issues related to GTK.
It might be worth creating a new user and seeing if it works for said user.
I don't know if you mentioned what desktop you use, but it might also be worth, with said new user, trying openbox (available from EPEL) or some other less intrusive desk environment to see if there's something Gnome is doing.
I am using Mate. When in a terminal window I run
XMODIFIERS=@im=fcitx LC_CTYPE=zh_CN.GB18030 GTK_IM_MODULE=fcitx geany
Geany seems work as expected, i.e., I can switch between the two western keyboards and also activate pinyin using Ctrl-Space. There does seem to be some bug in fcitx however in that sometimes switching in and out of pinyin also changes the keyboards and the first time I am in geany launched as described, Ctrl-Space does not work, I have to click the systray icon to switch to pinyin, after that Ctrl-Space does work.
For some reason my setup does not pick up the GTK_IM_MODULE setting when launching a GTK program from the desktop...
At least, that's what I think.
On 08/05/2017 02:45 PM, H wrote:
On 08/05/2017 12:10 PM, Scott Robbins wrote:
On Sat, Aug 05, 2017 at 12:03:43PM -0400, H wrote:
I just discovered all of this also works well in a note-type field in KeePassX BUT
none of it works in firefox, thunderbird, libreoffice or geany
My setup is thus partly correct and I draw the conclusion that KeePassX is compiled using a different window library than the other four applications?
Can anyone shed light on this?
Seems geany uses Qt and the other four use GTK libraries. My problem is likely related to this, have to search for setup issues related to GTK.
It might be worth creating a new user and seeing if it works for said user.
I don't know if you mentioned what desktop you use, but it might also be worth, with said new user, trying openbox (available from EPEL) or some other less intrusive desk environment to see if there's something Gnome is doing.
I am using Mate. When in a terminal window I run
XMODIFIERS=@im=fcitx LC_CTYPE=zh_CN.GB18030 GTK_IM_MODULE=fcitx geany
Geany seems work as expected, i.e., I can switch between the two western keyboards and also activate pinyin using Ctrl-Space. There does seem to be some bug in fcitx however in that sometimes switching in and out of pinyin also changes the keyboards and the first time I am in geany launched as described, Ctrl-Space does not work, I have to click the systray icon to switch to pinyin, after that Ctrl-Space does work.
For some reason my setup does not pick up the GTK_IM_MODULE setting when launching a GTK program from the desktop...
At least, that's what I think.
I am pleased to report that I now have fcitx working in terminal windows, geany, firefox, thunderbird and LibreOffice, i.e., my main apps. I am now able to switch between two western keyboards and pinyin.
On Tue, Aug 15, 2017 at 02:49:16PM -0400, H wrote:
On 08/05/2017 02:45 PM, H wrote:
On 08/05/2017 12:10 PM, Scott Robbins wrote:
I am pleased to report that I now have fcitx working in terminal windows, geany, firefox, thunderbird and LibreOffice, i.e., my main apps. I am now able to switch between two western keyboards and pinyin.
Great, glad to hear it. Thanks for following up. ;)
On 08/15/2017 03:55 PM, Scott Robbins wrote:
On Tue, Aug 15, 2017 at 02:49:16PM -0400, H wrote:
On 08/05/2017 02:45 PM, H wrote:
On 08/05/2017 12:10 PM, Scott Robbins wrote:
I am pleased to report that I now have fcitx working in terminal windows, geany, firefox, thunderbird and LibreOffice, i.e., my main apps. I am now able to switch between two western keyboards and pinyin.
Great, glad to hear it. Thanks for following up. ;)
One more issue: while I can now switch between the two western keyboards and pinyin in the applications I use, as soon as I move between entry fields the keyboard selection resets to the default. Very annoying when you are using a second-choice western keyboard in an application and the keyboard selection constantly resets as you move between entry fields.
The pinyin setting, on the other hand, remains as chosen which is the expected behavior. I use the default Ctrl-Space to activate/deactivate pinyin and right Ctrl-right Shift to move between the keyboard settings.
Given the absence of a graphical configuration tool for fcitx in CentOS I am not sure where/how I can change the behavior for keyboard selection so that it does not change within any given application. Scott, do you know?
Thank you.