Version: (using KDE Devel) Installed from: Compiled sources I am attaching a patch that provides a useful utility function for word wrapping as a public static function in KWordWrap in the kdeui library, and also a small part to change khtml to use this function so that it word-wraps more languages properly. It is based on code found in the Qt library version 3.2+. I had to pull it out because it is contained all within private classes that are not exported in the Qt API. It doesn't solve all problems, but it should still do better than anything KDE has before. Qt also goes into various per-script type stuff that I did not bother to pull out, as it requires a greater infrastructural change to support in most applications. Most of the stuff that I added is either public static member functions and file-static arrays and such. I'm not sure if this breaks ABI, but it would be great to get it into 3.2 in some form, as I think this kind of thing can be considered an more an i18n-bug than a feature. I've been trying to work it into the kate part as well, but can't seem to find exactly where to plug in.
Created attachment 3264 [details] described patch Includes code pulled out of Qt, based on the unicode line breaking algorithm. handles cjk languages as well as western, and parentheses, brackets and the like.
Oh, and its based on 11/15/2003 HEAD branch of cvs.
Created attachment 3265 [details] added some comments
forget about it. You can't take GPL code and put it in LGPL code
Perhaps also send the trolls a patch to expose said functions in qt.
Ive filed bug 69760 as a workaround.. wrote a different patch not based on the qt stuff that should still make wrapping a bit better in konqueror