Re: Hyphenation Design (Was Re: Possible Pango 1.4 ideas)



On Thu, 2003-01-23 at 01:41, Owen Taylor wrote:
> 
> Matthias Clasen <maclas gmx de> writes:
> 
> > One question that just occurred to me is if layout-generated characters
> > in the PangoLayout (or, if you want, PangoSuperDuperLayout) like hypens
> > or ZWNBSPs inserted for kerning won't interfere with uses of PangoLayout
> > for visual navigation like gtk_text_layout_move_iter_visually() does ?
> 
> The set of possible cursor positions is defined by the results of
> pango_break() which would be called on the pre-hyphenation text, so 
> the hyphen glyph should't effect cursor positioning at all. (*)
> 

I guess that also applies to justification-inserted glyphs like Arabic
Kashidas, but what about your proposal to represent manual kerning by 
ZWNBSPs ? Even if the user explicitly specified the kerning, he would
probably still be surprised to stumble over the extra invisible
character when navigating with the cursor. 
 
> Regards,
>                                         Owen
> 
> (*) Except for the problems with positioning at the ends of lines
>     without trailing whitespace that we have now in GtkTextView.
>     There should a bug open about it somewhere. 

That would be http://bugzilla.gnome.org/show_bug.cgi?id=75270 and maybe
http://bugzilla.gnome.org/show_bug.cgi?id=81412

Matthias





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