definite/ibus-chewing — pull request #30 by buganini (2012-11-24 06:21:05+00:00)
Title: Rework decorate_preedit()

Rework decorate_preedit(), including one bugfix and one improvement.
bugfix: properly offset intervals after written zhuyin, intervals are calculated regardless of it.

improvement: refine underline style, use single/low underline for phrase marking, double underline for phrase which is selecting target.

there is another unsolved bug may affect the visual result, you may want to apply a workaround before test this patch:
in update_preedit(), add
ibus_engine_update_preedit_text (IBUS_ENGINE(self),SELF_GET_CLASS(self)->emptyText, 0, TRUE);
before
switch (self->_priv->inputStyle){