IBus icon symbol property

Yesterday I integrated the several features for ibus in Fedora 15 and rawhide, whose version is ibus- or later.

# yum update --enablerepo=updates-testing ibus-
# yum update --enablerepo=updates-testing ibus-gnome3

I’d introduce the icon symbol property as one of the new features using GNOME 3(GNOME-Shell) here.
When a text application gets the input focus, IBus panel icon shows the current keyboard layout. E.g. I use the US keyboard below.
Icon for English Keyboard layout on IBus Panel Status.
After I type Control + Space key, IBus enables the primary input method engine and shows the engine specific icon. The new feature of the icon symbol property supports the text icon on the IBus panel status. E.g. I use ibus-anthy as the primary IM engine and which has the icon symbol ‘あ’ below.
Text Icon for IBus-Anthy on IBus Panel Status Icon
The feature also supports to switch the icon symbol by IM engine. E.g. I choose ‘Kanatana’ input mode and the status shows ‘ア’ below.
Text Icon (Katanaka) for IBus-Anthy on IBus Panel Status Icon
The icon symbol is defined in /usr/share/ibus/component/*.xml and each IBus engine also can call ibus.EngineBase.set_icon_symbol(‘text’)

% cat /usr/share/ibus/component/anthy.xml
<?xml version="1.0" encoding="utf-8"?>
	<description>Anthy Component</description>
        ... snip
			<description>Anthy Input Method</description>

As you notice, the desktop is GNOME-Shell and currently it might not work for GNOME-Panel since I have no idea about GtkIconStatus text icon. Probably we might need to think another implementation for GTK+(PyGTK2 does not export the GtkImage in GtkStatusIcon and I also tried GtkNumerableIcon however it seems the emblem text was too small on the panel).

About fujiwara

I'm an open-sourced desktop i18n developer.
This entry was posted in IBus and tagged , , . Bookmark the permalink.

1 Response to IBus icon symbol property

  1. Pingback: IBus Bridge HotKeys | DesktopI18N's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s