Good morning,
I'm trying to enter Chinese characters using ibus (Intelligent Pinyin). As I enter the pinyin spelling, the Chinese characters show up in small menu. The characters are displayed in a small font that my old eyes have trouble reading. I want them to display in a size 16 kai font (AR PL Ukai CN). I ran ibus-setup, and it is set correctly. I also have the file ~/.i18n which has this line: export FC_LANG=en-US:zh-CN What else do I need to do?
thanks, Bill.
On 2/15/19 12:28 AM, home user via users wrote:
I'm trying to enter Chinese characters using ibus (Intelligent Pinyin). As I enter the pinyin spelling, the Chinese characters show up in small menu. The characters are displayed in a small font that my old eyes have trouble reading. I want them to display in a size 16 kai font (AR PL Ukai CN). I ran ibus-setup, and it is set correctly. I also have the file ~/.i18n which has this line: export FC_LANG=en-US:zh-CN What else do I need to do?
Did you right click on the ibus tray icon. Pick "Preferences" and then "Use custom font" to select the font and the size? Note: it is sometimes necessary to then restart ibus for the changes to take effect.
(I tried to respond to this yesterday morning, but the message never showed up.)
I forgot to say I'm on Gnome (is that relevant?), and using Fedora-28.
Did you right click on the ibus tray icon. Pick "Preferences" and then "Use custom font" to select the font and the size? ...
What I did was, run "ibus-setup" in a terminal, and set the font there. See the attachment for a screen capture. It seems to make no difference, even after a total reboot. I could not find any tray icon for ibus.
On 2/17/19 5:15 AM, home user via users wrote:
(I tried to respond to this yesterday morning, but the message never showed up.)
I forgot to say I'm on Gnome (is that relevant?), and using Fedora-28.
Yes, that is relevant.
Those settings appear to be ignored in Gnome. Fails for me too on a Gnome VM, F29. Fails in both wayland and Xorg.
Did you right click on the ibus tray icon. Pick "Preferences" and then "Use custom font" to select the font and the size? ...
What I did was, run "ibus-setup" in a terminal, and set the font there. See the attachment for a screen capture. It seems to make no difference, even after a total reboot. I could not find any tray icon for ibus.
The systray seems to be disabled under Gnome.
I use KDE.
I use KDE.
Now I'm trying KDE.
1. It took a lot of searching, but I found the ibus preferences. But the gui is all in Chinese. How do I get it in English?
2. In KDE, when I'm editing a file (such as with (g)vi(m) or LibreOffice), or otherwise entering text, how do I switch languages? In Gnome, there's a small drop-down near the upper right corner of the monitor.
On 2/17/19 11:36 AM, home user via users wrote:
I use KDE.
Now I'm trying KDE.
- It took a lot of searching, but I found the ibus preferences. But the gui is all in
Chinese. How do I get it in English?
Sounds like one of your environment variables is triggering the GUI to be in Chinese.
I've never had a problem so I'm not sure this is going to reveal anything.
Find the PID of ibus-daemon. Then go to /proc/PID and cat environ. Look for LC_CTYPE= and LANG=
- In KDE, when I'm editing a file (such as with (g)vi(m) or LibreOffice), or otherwise
entering text, how do I switch languages? In Gnome, there's a small drop-down near the upper right corner of the monitor.
I simply use the "Keyboard Shortcut" as indicated in preferences. In my case it is set to <Super>space which is the "start" or "alt opt" key pressed in conjunction with the space bar. Also, I have the icon on systray which can be clicked on to select directly the input method.
On 2/17/19 12:37 PM, Ed Greshko wrote:
Find the PID of ibus-daemon. Then go to /proc/PID and cat environ. Look for LC_CTYPE= and LANG=
Oh, again not sure, you may have to run "im-chooser" in a terminal on KDE before ibus is made the default input method. You'd have to logout/login to make it fully effective.
Strange: after my last post, I discovered that in Gnome, I could no longer access ibus.
...you may have to run "im-chooser" in a terminal on KDE before ibus is made the default input method....
If you're implying im-chooser doesn't work in Gnome, you're right.
In KDE, it partially worked. The ibus prefs and settings GUIs are now in English. I can now use ibus to enter Chinese, and ibus's font (including size) is what I want. Now I can not switch back to English. My ibus is set to control-space for switching. The KDE keyboard sequence setting GUIs show control-space not used for anything else.
After doing the im-chooser in KDE, I can now use ibus in Gnome, and I can switch between languages using the dropdown in the upper right corner, and control-space does work (in Gnome). But, in Gnome, I'm still stuck with the teeny font in the ibus menu of Chinese characters.
What and where is the systray (or system tray)? How do I put things in the systray? What are the "super" and "opt" keys?
On 2/18/19 7:54 AM, home user via users wrote:
Strange: after my last post, I discovered that in Gnome, I could no longer access ibus.
...you may have to run "im-chooser" in a terminal on KDE before ibus is made the default input method....
If you're implying im-chooser doesn't work in Gnome, you're right.
Yes, ibus is the default input-method for Gnome but not for KDE. If you were to run im-chooser in Gnome you'd get an error and a log entry which would say something like the desktop isn't a target for im-chooser.
In KDE, it partially worked. The ibus prefs and settings GUIs are now in English. I can now use ibus to enter Chinese, and ibus's font (including size) is what I want. Now I can not switch back to English. My ibus is set to control-space for switching. The KDE keyboard sequence setting GUIs show control-space not used for anything else.
You said "partially" worked in KDE. But, I don't see where you mention what isn't working or not to your liking.
After doing the im-chooser in KDE, I can now use ibus in Gnome, and I can switch between languages using the dropdown in the upper right corner, and control-space does work (in Gnome). But, in Gnome, I'm still stuck with the teeny font in the ibus menu of Chinese characters.
Right. You may want to file a BZ about that.
What and where is the systray (or system tray)? How do I put things in the systray? What are the "super" and "opt" keys?
Are you talking about Gnome or KDE?
In Gnome ibus-daemon is started as "ibus-daemon --xim --panel disable" which, I believe, disables the native systray icon in favor of whatever Gnome does in the upper right.
In KDE ibus-daemon is started as "ibus-daemon -r --xim" and looks like show in the screenshot.
...If you were to run im-chooser in Gnome you'd get an error and a log entry which would say something like the desktop isn't a target for im-chooser.
I get: bash.2[~]: im-chooser Gtk-Message: 10:41:25.720: GtkDialog mapped without a transient parent. This is discouraged. bash.3[~]:
You said "partially" worked in KDE. But, I don't see where you mention what isn't working or not to your liking.
What was not working is that I could not switch back to English. After playing around some more this morning, the switching is now working. But now, when entering Chinese characters, the ibus character menu is back to the small, not-kaiti font, though the ibus preferences still shows it's set to size 20 "AR PL UKai CN".
Right. You may want to file a BZ about that. [the font issue]
I've written too many false-alarm bugs in the past few years. I'll try to contact Peng Wu (the ibus programmer) first to see if he knows the solution. If he says it's really a bug, then I submit one.
What and where is the systray (or system tray)? How do I put things in the systray? What are the "super" and "opt" keys?
Are you talking about Gnome or KDE?
Since you said in your 2nd post the systray was disabled in Gnome, the first 2 questions were referring to KDE. Thanks to your attachment, I believe I found the KDE systray: the horizontal bar at the bottom of the screen. It sure looks different on my workstation (see attachment; it's a screen capture showing only the right half of it). I believe I also found how to add things to the systray.
The question about the keys was referring to both KDE and Gnome.
question: My systray (assuming that's what it is) has 4 clipboards(?) (the yellow things) and 2 or 3 ibus things (the blue-and-white thing). How do I remove the extras (3 clipboards and the rightmost ibus thing)?
On 2/19/19 2:08 AM, home user via users wrote:
Since you said in your 2nd post the systray was disabled in Gnome, the first 2 questions were referring to KDE. Thanks to your attachment, I believe I found the KDE systray: the horizontal bar at the bottom of the screen. It sure looks different on my workstation (see attachment; it's a screen capture showing only the right half of it). I believe I also found how to add things to the systray.
Probably need to get a few definitions straight.
The horizontal bar on KDE which spans (normally) the full length of the display is called a "panel". All the items, including systray are widgets. When you click on the "burger" to the far right you'll show what is on the panel. The attachment shows that when you mouse over each of the widgets (including systray) they will be grayed and show what the widget consists of. The EN in my systray is the icon which ibus is configured to place in the systray.
The question about the keys was referring to both KDE and Gnome.
question: My systray (assuming that's what it is) has 4 clipboards(?) (the yellow things) and 2 or 3 ibus things (the blue-and-white thing). How do I remove the extras (3 clipboards and the rightmost ibus thing)?
Your panel is a "mess". The 2 groupings of blue character on the left and right are called "Input Method Panel". Yes, it is unfortunate they called a widget a panel, but never mind. The middle single blue character is the ibus icon in the systray. The problem you have is that the IMP and the ibus icon are incompatible and having both is going to cause problems. You need to decide which one you want to use and have only one of them.
I'm not sure about the yellow ones. They are probably "sticky notes". The clipboard is actually shown to the left of the speaker.
To remove a widget from the panel you click on the "burger" then mouse over the widget and click on the X.
I you decide to remove the IMPs you will also have to re-run im-chooser and logout/login for things to work properly. I found this out while experimenting.
...When you click on the "burger"...
drat. now I'm hungry!
Thank-you, Ed. I learn something new every year.
I got rid of the "mess" in the panel. It was quite a struggle, but I did get "im-chooser" run successfully.
How did you configure ibus to put the "EN" rather than the blue Chinese "pin"(?) character in the systray? Does the "EN" change to something else when you're actually entering Chinese characters?
On 2/19/19 12:31 PM, home user via users wrote:
...When you click on the "burger"...
drat. now I'm hungry!
It actually changes depending on what icon theme you have. On my "work" system it is actually wrench. :-)
Thank-you, Ed. I learn something new every year.
I got rid of the "mess" in the panel. It was quite a struggle, but I did get "im-chooser" run successfully.
How did you configure ibus to put the "EN" rather than the blue Chinese "pin"(?) character in the systray? Does the "EN" change to something else when you're actually entering Chinese characters?
That should change as you cycle through the "Input Methods" you have defined in preferences.
EN being English of course. The middle blue in your example is what I would see if I were in Intelligent Pinyin.
And when I switch to Japanese.
ok, here's the solution in Gnome...
1. install "gnome-shell-extension-ibus-font", which I did from the command line: dnf install gnome-shell-extension-ibus-font
2. run "gnome-shell-extension-prefs", which I did from the command line: gnome-shell-extension-prefs This launches a GUI. Scroll down to the line "ibus-font-setting". Turn it on. Click the gear to see the current font setting. It launches a second GUI showing the current font setting. If you want another font, click the current font name. That brings up a third GUI with a menu of available fonts. Choose the one you want. Click the Select button; that closes the third GUI. Close the ibus font setting GUI. Close the Shell Extensions GUI.
That should do it.
Things do seem to be working as desired in KDE also.
No new bug was needed.
Thank-you Ed and Peng for your help. I'm marking this thread "SOLVED".
On 2/22/19 12:57 AM, home user via users wrote:
ok, here's the solution in Gnome...
- install "gnome-shell-extension-ibus-font"
Good to know.