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.
purple-line

Posted in RedHat | Tagged , | Leave a comment

IBus 1.5.11 is released

Now IBus 1.5.11 is released:
https://github.com/ibus/ibus/releases/tag/1.5.11

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
    ibus-kde5-ime
  4. Show the prefix string of XKB layouts in KDE5
    ibus-kde5-xkb
  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

ibus-fbterm

Recently I updated ibus-fbterm to work with ibus 1.5.
My patches are available here:
https://github.com/fujiwarat/ibus-fbterm

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
ibus-fbterm-0.9.1-22.fc22.x86_64

For upgrade:

# dnf update --enablerepo=updates-testing ibus-fbterm
# rpm -q ibus-fbterm
ibus-fbterm-0.9.1-22.fc22.x86_64

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
    grub1
  3. Add ‘3’ at the end of the line of “…vmlinuz…” and type Ctrl-x.
    grub2
  4. Log into the console with the permission to modify the frame buffer
    console-login
  5. Run ibus-fbterm-launch
  6. Type Ctrl+space
  7. Run ibus engine $your_engine
    ibus-fbterm

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
['<Super>space']
% 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 
'#415099'


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
400

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.
E.g.

                <engine>
                        <name>xkb:us:mac:eng</name>
                        <language>eng</language>
                        <license>GPL>/license>
                        <author>Peng Huang &lt;shawn.p.huang@gmail.com&gt;</author>
                        <layout>us</layout>
                        <layout_variant>mac</layout_variant>
                        <longname>English (Macintosh)</longname>
                        <description>English (Macintosh)</description>
                        <icon>ibus-keyboard</icon>
                        <rank>99</rank>
                </engine>

Posted in IBus | Tagged , , , | 4 Comments

ibus-anthy Emoji dictionary

ibus-anthy 1.5.6 is released.

Now it has an Emoji dictionary and a search entry text box in the view dictionary dialog.

IBus-Anthy Emoji dictionary

If you use Fedora, google-android-emoji-fonts package might be needed to show many Emoji characters. If you use Ubuntu, ttf-ancient-fonts package might be needed.

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

New input-pad 1.0.99.20140916 is released

input-pad 1.0.99.20140916 and ibus-input-pad 1.4.99.20140916 are released as a unstable version. [1]

If you use Fedora 20 or later, the new packages are available in updates-testing repository.

# yum install –enablerepo=updates-testing input-pad ibus-input-pad

Mainly the new releases support GTK3:

  • Migrate GtkWindow to GtkApplicationWindow and GtkApplication, GtkTable to GtkGrid, GtkToggleButton to GAction
  • Changed the static GtkBuilder files to the resource files.
  • Fixed some memory leaks.

Now input-pad shows the custom character table only by default (previously virtual keyboard was also shown together.) and could make each character button much smaller in the table.

Smaller input-pad

input-pad also includes the Emoji table newly.

If you use Fedora, google-android-emoji-fonts package might be needed to show many Emoji characters. If you use Ubuntu, ttf-ancient-fonts package might be needed.

Emoji table on input-pad

Also I integrated a custom viewport to show a huge number of characters in Unicode table and a scroll adjustment in the scrolled window.

custom viewport and stepper in input-pad

[1] http://code.google.com/p/input-pad/downloads/list is no longer available for the new releases and please use the release link in http://github.com above.

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