IBus-Anthy 1.5.8

ibus-anthy 1.5.8 is now released, which is available in Fedora 22 or later.
# dnf update --enablerepo=updates-testing ibus-anthy

This release updates the Emoji dictionary and add the Emoji Variation Selectors.

E.g. variation selector emoji presentation (VS16):
Convert “えんびつ” and “からー” with Emoji dictionary, then ‘✎️’ (U+270E and U+FE0F) can be output.

E.g. variation selector text presentation (VS15):
Convert “えんぴつ” and “てきすと” with Emoji dictionary, then “✎︎” (U+270E and U+FE0E) can be output.

Here is the release note.

Posted in IBus | Tagged , , , | Leave a comment

IBus 1.5.12

IBus 1.5.12 is now released and a bug fix release.
The major change is to fix the coordinate of the IME lookup window and IBus property panel when dual monitors are used.
IBus XKB engines, aka ibus-engine-simple, now uses ISO 639-1 language codes instead of ISO 639-2 ones for the size of panel icons.
Here is the release note and download site.

Posted in IBus | Tagged , , , | Leave a comment

LINE Messenger on Linux

Recently I packaged purple-line in Fedora 22 or later, which is the plugin of LINE Messenger for pidgin:

# dnf install purple-line

You can see the plugin on pidgin.

Posted in RedHat | Tagged , | Leave a comment

IBus 1.5.11 is released

Now IBus 1.5.11 is released:

1.5.11 is available in Fedora 23.

  1. User compose file($HOME/.XCompose) is supported in IBus XKB engines
    Note: XKB engines load en_US compose table(/usr/share/X11/locale/en_US.UTF-8/Compose) on any locales.
    E.g. In case you select ‘JP’ layout, Run ‘setxkbmap -option compose:rctrl’ and you can output ‘©’ with Right Ctrl + ‘O’ + ‘C’.
  2. Put Property Panel in bottom right in KDE5
  3. Show IBus engine icon in KDE5
  4. Show the prefix string of XKB layouts in KDE5
  5. Engine Property on IBus Panel Icon
    ibus 1.5.11 + ibus-anthy 1.5.7 can show the input mode on the panel icon [1]:

[1] Here is the patch in the ibus-anthy side. This adds “icon_prop_key” tag for an IBusProperty key in /usr/share/ibus/component/anthy.xml .

Posted in IBus | Tagged , , , | Leave a comment


Recently I updated ibus-fbterm to work with ibus 1.5.
My patches are available here:

Now the patched ibus-fbterm 0.9.1-22 is available in Fedora 21 or later.
For installation:

# dnf install --enablerepo=updates-testing ibus-fbterm
# rpm -q ibus-fbterm

For upgrade:

# dnf update --enablerepo=updates-testing ibus-fbterm
# rpm -q ibus-fbterm

You also needs to install ibus and any input method engines likes ibus-anthy.

  1. Reboot the system
  2. Enter ‘e’ to edit the Grub line
  3. Add ‘3’ at the end of the line of “…vmlinuz…” and type Ctrl-x.
  4. Log into the console with the permission to modify the frame buffer
  5. Run ibus-fbterm-launch
  6. Type Ctrl+space
  7. Run ibus engine $your_engine

This example enables ibus-anthy.
Ctrl+space is bound by fbterm and it toggles to enable and disable the engine.
Probably I will think to import ibus-fbterm to ibus core since the web page of ibus-fbterm is no response.

Posted in IBus | Tagged , , , | Leave a comment

IBus panel icon in plasma-desktop KDE5

IBus 1.5.10 was released recently.
It can show the IBus panel icon in KDE5. KDE5 no longer enables notification area by default so this version communicates with KNotification via DBus instead of GtkStatusIcon.
IBus panel icon in KDE5

KDE5 is available in Fedora 22 or Ubuntu 14.10 and IBus 1.5.10 is integrated in Fedora 22.

The IBus panel checks the environment value XDG_CURRENT_DESKTOP which is set by the login manager likes GDM.
If XDG_CURRENT_DESKTOP=KDE, ibus panel shows the ibus icon connecting KNotification.
If not, ibus panel shows the ibus icon with GtkStatusIcon.
Then if you run startkde on xterm, you need to set XDG_CURRENT_DESKTOP=KDE before you launch KDE5.

If you use KDE4, the configuration can be disabled in the ibus build time and ibus always enables GtkStatusIcon. E.g.

# ./configure --disable-appindicator --prefix=/usr
# make

There are two known problems in IBus Indicator for KDE5 plasma-desktop.
One is that KNotification requires icon theme directories to show the icons. Many ibus engines have the custom paths for their icons and send the full path to GtkStatusIcon. If their engines wish the custom paths, the paths need to be icon theme paths. Probably it would be easy to move the icons to the standard theme paths, e.g. /usr/share/icons/hicolor. ibus-anthy is already done.
Another is KNotification does not support to draw the string icon under GTK3. It needs to send QIcon or something so currently IBus XKB engines always show ibus-keyboard icon instead of the strings by layouts.
I filed https://bugs.launchpad.net/bugs/1403451
Maybe KNotification needs to convert a string to QIcon or IBus panel needs to load QT libraries.

IBus 1.5.10 also has the feature to hide IBus engines on gnome-shell 3.16 lock screen so that preedit text is not shown in password.

Posted in IBus | Tagged , , , | 2 Comments

ibus tips

ibus provides “ibus” CLI utility.

ibus engine
Shows the current ibus engine. If a engine name is appended to this command, ibus switches to the engine. E.g. ibus engine anthy

ibus list-engine
Show registered engine names.

ibus version
Show ibus version number.

ibus exit
Exit ibus-daemon. You might start ibus with ibus-daemon --xim --verbose

ibus restart
Restart ibus-daemon.

ibus help
Show this information.

ibus read-cache
When ibus-daemon runs initially, ibus converts component files in /usr/share/ibus/component to a cache file and loads the cache file instead of the component files for the performance. The cache file is the system cache of /var/cache/ibus/bus/registry or the user cache of $HOME/.cache/ibus/bus/registry . ibus read-cache shows the user cache. ibus read-cache --system shows the system cache. You can notice more sub-commands with ibus read-cache --help

ibus write-cache
Write the user cache of $HOME/.cache/ibus/bus/registry . The user cache file is automatically generated if the system cache does not exist when ibus-daemon runs. You can generate the system cache of /var/cache/ibus/bus/registry with ibus write-cache --system with the root permission. Generally the system cache is generated with the package scripts during installations of ibus and ibus engine packages. You can notice more sub-commands with ibus write-cache --help

ibus read-config
Show the configuration values.

ibus reset-config
Reset the configuration values. This command resets the setting of the ibus core only but not ones of ibus engines. This command is useful to clean up the user configuration when you have a trouble. E.g. upgrade installation. You also can use gsettings command directly to set each value.

You may notice ibus-setup GUI cannot assign Shift+Ctrl to switch engines because both Shift and Ctrl is modifiers key. If you wish, you can assign it with gsettings command directly:

% gsettings get org.freedesktop.ibus.general.hotkey triggers
% gsettings set org.freedesktop.ibus.general.hotkey triggers ['<Shift>Control_L']

ibus shows the language prefix of the ibus XKB engine on ibus panel icon. The default color is a blue. You can customize the color with gsettings command.

% gsettings get org.freedesktop.ibus.panel xkb-icon-rgba 

The value format of xkb-icon-rgba is described in https://github.com/ibus/ibus/blob/master/data/ibus.schemas.in

ibus displays the engine switcher dialog with Super+space key. The default delay time is 400 milliseconds. If you switch two engines only and the dialog is not needed, you can set the value of switcher-delay-time to -1.

% gsettings get org.freedesktop.ibus.general switcher-delay-time

If your preferred XKB engine is not show on ibus-setup, you can add that engine in /usr/share/ibus/component/simple.xml by manual.

                        <author>Peng Huang &lt;shawn.p.huang@gmail.com&gt;</author>
                        <longname>English (Macintosh)</longname>
                        <description>English (Macintosh)</description>

Posted in IBus | Tagged , , , | 4 Comments