[Pkg-ime-devel] Bug#639552: ibus: --enable-surrounding-text

Harshula harshula at gmail.com
Sun Aug 28 06:13:06 UTC 2011

Package: ibus
Severity: normal


Could you please enable surrounding text support (STS) by passing
"--enable-surrounding-text" to configure? This is the first upstream
IBus release in Debian that contains STS code. SCIM had STS a long time

Daiki (CC'd) implemented the feature:
commit 06e6abee9f221bdf7c277538ce136154465619d7
Author: Daiki Ueno <daiki.ueno at gmail.com>
Date:   2011-04-05 10:11:49 -0400

    Support surrounding-text retrieval.
    Unlike the GtkIMContext API, IBus automatically retrieves
    surrounding-text when certain events occurred to the
    client ("before filter_keypress", for example).  This makes the
    engine API simpler but causes periodical emission of D-Bus
    signals for updating surrounding-text information, which is
    unwanted for typical engines.
    For this reason, the surrounding-text support is currently
    disabled by default.  To enable it, pass
    --enable-surrounding-text to configure.  Also, even
    surrounding-text support is compiled in, IBus does not start
    polling until an engine requests surrounding-text using
    ibus_engine_get_surrounding_text().  To make the function work
    for the first time, clients should retrieve
    initial surrounding-text when the engine is enabled (see
ibus_im_context_focus_in() and
    _ibus_context_enabled_cb() in client/gtk2/ibusimcontext.c).

The reasons why STS is needed are documented here:


More information about the Pkg-ime-devel mailing list