Re: wordwrap + ellipsize



ext Matthias Clasen wrote:

>
>
> On 12/14/05, *Tapani P�i* <tapani palli nokia com
> <mailto:tapani palli nokia com>> wrote:
>
>     Hello,
>     Is it possible to have both, ellipsizing and wordwrapping on a
>     pango-layout?
>     If not, how big changes (or dirty hacks) would need to be done? The
>     usecase would be a multiline infoprint but last word could be
>     ellipsized,
>
>     like this :
>
>     ----------------------------
>     dialog with
>     many lines
>     and ellipsiz...
>     ----------------------------
>
>
>
> Ellipsization works with wrapping, but maybe not as you would expect.
> You'll get
>
> dialog wi...
> many lin...
> and ellips...
>

OK, my proposition would be used for a case where the last word(s) would
be for example filename or other 'not so important to show' information.
Due localisation to some languages, sometimes the infoprints get quite
large and long, it would be nice to print the most important info and
then ellipsize rest if it does not fit well. Do you think it would it be
possible to make 'priority' levels for textblocks using <markup>'s ?

// Tapani




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