Re: [evolution-patches] gtkhtml preedit_changed callback



Hi Botond,

good news! In gtkhtml's 'new_text' branch it's possible to use pango
attributes in text object. The IM preedit string patch is also committed
and gtk_html_im_preedit_changed_cb uses them.

Please could you try that branch and test if preedit string displays
right with im-ja? I would be also very glad if you could make some nice
screenshot with im-ja in action (and with text bg color used). I will
post it on the evolution blog. Evolution itself will probably not
compile with that branch (there are many changes), but test-editor in
gtkhtml/components/html-editor/ works OK.

Best wishes
Radek

On Sat, 2003-07-12 at 00:37 +0900, Botond Botyanszki wrote:
> On Fri, 11 Jul 2003 17:06:15 +0200
> Radek Doulík <rodo ximian com> wrote:
> 
> > > The font style changes didn't have any effect on the
> > > preedit text (probably this needs the cvs tree). IMHO this approach is
> > > a dead-end street anyway, because the preedit string should be
> > > rendered with the pango attributes provided. For some languages a
> > > simple underline is enough, but complex ones like Japanese need more
> > > than that.
> > 
> > what attributes are used for Japanese preedit string? could you show me
> > some screenshots?
> 
> Here are two screenshots. One is showing japanese input with im-ja into a
> GtkEntry.
> The other is evolution(gtkhtml). In this case I have turned on the
> over-the-spot preedit window of im-ja. I implemented this feautre into
> im-ja so that the user can see the preedit text rendered properly when the
> parent widget cannot show this.
> 
> > I am thinking about translating pango attributes to HTML, but if it uses
> > attributes which can't be displayed in HTML (like background color), I
> > will probably try to use embedded GtkLabel widget for preedit text.
> 
> As you can see from the two screenshots, background and foreground colors
> are also used. I don't think translation is a good idea, there is always
> going to be something that won't work and the end result might be a bloat.
> 
> I'm also using GtkLabel in im-ja for the preedit window. It's very simple
> to use with pango attributes [gtk_label_set_attributes(GTK_LABEL(label),
> attrs)] but it's not perfect because it cannot display the cursor. Looks
> like this is what both gtkhtml and im-ja need. 
-- 
Radek Doulík <rodo ximian com>
Ximian, Inc.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]