Re: [E-devel] Evas Word-Wrapping and Long Chinese String

2009-11-02 Thread Brian Wang
> A non-printable character is a different concept from a zero width > character. Think of the zero width character as hyphenation hint or word > border. The rule of using blanks works well for Indogermanic languages. > The zero width rule works as fallback for other languages that don't > have a n

Re: [E-devel] Evas Word-Wrapping and Long Chinese String

2009-10-29 Thread Joerg Sonnenberger
On Thu, Oct 29, 2009 at 08:53:47AM +0800, Brian Wang wrote: > On Wed, Oct 28, 2009 at 9:11 PM, Joerg Sonnenberger > wrote: > > On Wed, Oct 28, 2009 at 01:41:01PM +0100, Peter Wehrfritz wrote: > >> Your patch assumes that an UTF8 character initiates a new word. That is > >> wrong for the most Europ

Re: [E-devel] Evas Word-Wrapping and Long Chinese String

2009-10-28 Thread Brian Wang
> Your patch assumes that an UTF8 character initiates a new word. That is > wrong for the most European language, if not for all. So there must be > another solution. Maybe a hybrid of word and character wrap? I.e. try to > wrap a word (separated by a white space) first, if this is not possible, do

Re: [E-devel] Evas Word-Wrapping and Long Chinese String

2009-10-28 Thread Brian Wang
On Wed, Oct 28, 2009 at 9:11 PM, Joerg Sonnenberger wrote: > On Wed, Oct 28, 2009 at 01:41:01PM +0100, Peter Wehrfritz wrote: >> Your patch assumes that an UTF8 character initiates a new word. That is >> wrong for the most European language, if not for all. So there must be >> another solution. >

Re: [E-devel] Evas Word-Wrapping and Long Chinese String

2009-10-28 Thread Joerg Sonnenberger
On Wed, Oct 28, 2009 at 01:41:01PM +0100, Peter Wehrfritz wrote: > Your patch assumes that an UTF8 character initiates a new word. That is > wrong for the most European language, if not for all. So there must be > another solution. The best bet you can do is likely iswblank(x) || wcwidth(x) == 0

Re: [E-devel] Evas Word-Wrapping and Long Chinese String

2009-10-28 Thread Peter Wehrfritz
Brian Wang schrieb: > Hello all, > > Evas's word-wrapping calculation does not work well with long Chinese strings. > This is how it looks (no wrapping): > http://cool-idea.com.tw/brian/edje-long-chinese-text-orig.png > > I made my effort to make it work with Chinese but it is certainly not > for t

[E-devel] Evas Word-Wrapping and Long Chinese String

2009-10-27 Thread Brian Wang
Hello all, Evas's word-wrapping calculation does not work well with long Chinese strings. This is how it looks (no wrapping): http://cool-idea.com.tw/brian/edje-long-chinese-text-orig.png I made my effort to make it work with Chinese but it is certainly not for the majority. This is how the patch