Re: mixing wrap-modes in text view



Havoc Pennington writes:

> Yes, the wrap mode is a paragraph-wide attribute. To prevent line
> breaks you may be able to use a nonbreaking space character, I think
> Unicode has that, it's even likely Pango honors it.
> 
Ok. Thanks for the clarification.
Of course there's a nonbreaking space, it's even in iso latin1 (xA0).
However my original problem were word wraps at /. (e.g. </bla> broke
to </ and bla>). I found that in this case as zero width joiner (x200D)
does the trick. Great :-)

OTOH I think the zero width nonjoiner (x200C) should allow word wraps at 
positions where pango would see no word end otherwise. 
Unfortunately it doesn't.
Wouldn't that make sense? Could that be changed in pango?

> That's not going to work, no. In nowrap mode, no width is supplied to
> Pango and no wrapping ever happens. You can maybe put in an explicit
> line break though; there's a Unicode character called "LINE SEPARATOR"
> that may work.
> 
Ok. But then I would have to calculate widths myself in order to know
where to insert the link separator. Not a tempting option.

Morus



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