On Mon, Aug 10, 2009 at 12:55 PM, Diego Jacobi<[email protected]> wrote:
> 2009/8/10 Gustavo Sverzut Barbieri <[email protected]>:
>> On Mon, Aug 10, 2009 at 9:46 AM, Thiago Borges Abdnur<[email protected]> 
>> wrote:
>>>
>>>
>>> On Sun, Aug 9, 2009 at 7:27 PM, Gustavo Sverzut Barbieri
>>> <[email protected]> wrote:
>>>>
>>>> On Sat, Aug 8, 2009 at 11:24 AM, Thiago Borges Abdnur<[email protected]>
>>>> wrote:
>>>> > Hi guys!
>>>> >
>>>> > I'm trying to make a textblock wrap the text with wrap=word in style.
>>>> > It's
>>>> > working, but when long words are set, it doesn't break them. Isn't there
>>>> > a
>>>> > style option that tries to break the words and then, if there are words
>>>> > that
>>>> > won't fit, break them as wrap=char does?
>>>>
>>>> not there. I could say "go and do it", but bear in mind that this is
>>>> tricky to get good. I did it once (2002) for Freevo project and lots
>>>> of heuristics to have something acceptable in English... Latex uses
>>>> hypenization mappings to know where to break it, and it changes
>>>> between languages... just doing naive "if not word, break at ANY char"
>>>> is bad, and somethings can cause weird meanings... also, need to add
>>>> "-" and accounting that is tricky as well, as kerning and ligatures
>>>> may change the size, you cannot say width of "-" is W, so I need room
>>>> to fit W... you need to add it and recalculate the size, possible
>>>> going back more than one character.
>>>>
>>>> Anyway, it can be done, we could even do some good heuristics, but it
>>>> consumes lots of manpower... if you want to give it a try, be my guest
>>>> :-)
>>>
>>> That would be much more complex. Just breaking the text anywhere would work
>>> nicely, as wrap=char does.
>>
>> thinking this is naive. It's good enough until you expose it, then
>> people will come and complain, specially when you start breaking words
>> making one half that is an aggressive/offensive/abusive word :-P
>>
>
> Hi.
> Maybe there could be an special character in the string dedicated to
> break a word when it is required, and not drawed when it is not, like
> the "_" to unterline a single character. So that, the developer or
> translator is the responsable of breaking the words and not a
> complicated and english-only algorithm.
>
> For example, i dont know if this word exists or not, but i taked it
> from internet:
>
> pneumonoultramicroscopicsilicovolcanoconiosis
>
> It could be writen with an special character, maybe the "!" inside a
> word like this:
>
> "pneumono!ultra!microscopic!silico!volcano!coniosis"
>
> And so, if the text block needs to break it in 3 it will replace a "!"
> sign by an "-\n" and delete the others by convenience.
>
> pneumonoultra-
> microscopicsilico-
> volcanoconiosis
>
> is just an easier idea
>

That would work only on fixed strings, not dynamic user input, where it
will be used the most.

> Cheers.
> Diego
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to