Jürgen Spitzmüller wrote:
Abdelrazak Younes wrote:
I think this is easy to implement. Could you tell me which languages
should use this auto wrapping mode?

Things are a bit more complicated, if we want to do this correctly. In CJK scripts, line breaks are allowed between come characters, and forbidden between others.

There's a unicode specification for this issue. I think we would improve the on-screen layout in general if we would follow this specification (not only for CJK).

QTextLayout does this, BTW.

See bug 4635 for some references.
OK, thanks for the reference. FWIW Qt objects are still forbidden in src/ and I don't feel like doing a lot of encapsulation. But, as a first step, I mean for 1.6, wouldn't disabling word-wrap in CJK be an acceptable solution? Then we can think about a more complete solution for 1.7 using QTextLayout for example.

Abdel

Reply via email to