[Pkg-ime-devel] IBus: Surrounding Text Support

Harshula harshula at gmail.com
Mon Aug 8 13:56:30 UTC 2011


The essential input methods that use Surrounding Text Support, such as
si-wijesekera.mim (m17n), have the ability to fallback to pre-edit when
STS is not available. Hence, they will work correctly with applications
that do not support STS.

On Mon, 2011-08-08 at 09:40 -0400, Peng Huang wrote:
> Surrounding-text is for some content sensitive input methods. They
> will generate different result base on characters around the input
> cursor. And they may also edit committed text. But unfortunately not
> all applications can support surrounding-text, and those input methods
> will not work correctly with those applications. (chrome browser, old
> X applications and etc).
> 
> Peng Huang
> 
> On Sun, Aug 7, 2011 at 10:01 PM, LI Daobing <lidaobing at debian.org> wrote:
> > @phuang can you help explain what's the usage of surrounding-text?
> >
> > thanks
> >
> > On Tue, Aug 2, 2011 at 00:36, Harshula <harshula at gmail.com> wrote:
> >> Hi,
> >>
> >> 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
> >> ago.
> >>
> >> 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:
> >> https://bugzilla.redhat.com/show_bug.cgi?id=435880
> >>
> >> Thanks,
> >> #
> >>
> >> On Mon, 2011-07-25 at 21:48 +0000, Debian FTP Masters wrote:
> >>>
> >>>
> >>> Accepted:
> >>> ibus-doc_1.3.99.20110419-1_all.deb
> >>>   to main/i/ibus/ibus-doc_1.3.99.20110419-1_all.deb
> >>> ibus-gtk3_1.3.99.20110419-1_amd64.deb
> >>>   to main/i/ibus/ibus-gtk3_1.3.99.20110419-1_amd64.deb
> >>> ibus-gtk_1.3.99.20110419-1_amd64.deb
> >>>   to main/i/ibus/ibus-gtk_1.3.99.20110419-1_amd64.deb
> >>> ibus_1.3.99.20110419-1.debian.tar.gz
> >>>   to main/i/ibus/ibus_1.3.99.20110419-1.debian.tar.gz
> >>> ibus_1.3.99.20110419-1.dsc
> >>>   to main/i/ibus/ibus_1.3.99.20110419-1.dsc
> >>> ibus_1.3.99.20110419-1_amd64.deb
> >>>   to main/i/ibus/ibus_1.3.99.20110419-1_amd64.deb
> >>> ibus_1.3.99.20110419.orig.tar.gz
> >>>   to main/i/ibus/ibus_1.3.99.20110419.orig.tar.gz
> >>> libibus-1.0-0_1.3.99.20110419-1_amd64.deb
> >>>   to main/i/ibus/libibus-1.0-0_1.3.99.20110419-1_amd64.deb
> >>> libibus-1.0-dev_1.3.99.20110419-1_amd64.deb
> >>>   to main/i/ibus/libibus-1.0-dev_1.3.99.20110419-1_amd64.deb
> >>> python-ibus_1.3.99.20110419-1_all.deb
> >>>   to main/i/ibus/python-ibus_1.3.99.20110419-1_all.deb
> >>>
> >>>
> >>> Override entries for your package:
> >>> ibus-doc_1.3.99.20110419-1_all.deb - optional doc
> >>> ibus-gtk3_1.3.99.20110419-1_amd64.deb - optional utils
> >>> ibus-gtk_1.3.99.20110419-1_amd64.deb - optional utils
> >>> ibus_1.3.99.20110419-1.dsc - source utils
> >>> ibus_1.3.99.20110419-1_amd64.deb - optional utils
> >>> libibus-1.0-0_1.3.99.20110419-1_amd64.deb - optional libs
> >>> libibus-1.0-dev_1.3.99.20110419-1_amd64.deb - optional libdevel
> >>> python-ibus_1.3.99.20110419-1_all.deb - optional python
> >>>
> >>> Announcing to debian-devel-changes at lists.debian.org
> >>> Closing bugs: 635023
> >>>
> >>>
> >>> Thank you for your contribution to Debian.
> >>>
> >>> _______________________________________________
> >>> Pkg-ime-devel mailing list
> >>> Pkg-ime-devel at lists.alioth.debian.org
> >>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ime-devel
> >>
> >>
> >
> >
> >
> > --
> > Best Regards
> > LI Daobing




More information about the Pkg-ime-devel mailing list