On Tue, Sep 29, 2009 at 08:03:53AM +0000, corvid wrote:
I just learned that some languages don't use spaces but can only break in certain places, and that they tend to insert Zero Width Space to make life easier for software that doesn't know the complex rules.
So here's a quick little patch for them: http://www.dillo.org/test/zero_width_space.patch
Looks good to me, but do we really need to add a space? Wouldn't it be enough to just start a new word? At least dw-example seems to wrap words with textblock->addSpace(wordStyle); commented out.
PS I did just start trying to move the ideographic test to dw, but I got stuck when I realized that I can't exactly call fltk's utf8decode() directly in Textblock, and am not excited by the idea of calling it through Layout.
I think we could make the utf8 methods in fltkplatform.cc static members. Cheers, Johannes