From kde-core-devel Tue Jan 15 09:29:55 2002 From: Thomas Zander Date: Tue, 15 Jan 2002 09:29:55 +0000 To: kde-core-devel Subject: Re: Word-wrap in message boxes. X-MARC-Message: https://marc.info/?l=kde-core-devel&m=101108717704568 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--JP+T4n/bALQSJXh8" --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 14, 2002 at 10:58:12PM -0800, Waldo Bastian wrote: > On Monday 14 January 2002 10:07 pm, Ellis Whitehead wrote: > > Is this really so difficult to write an algorithm for? Not that I'm > > volunteering, but I'd rather go with the problems that were existent in > > KMessageBox and see them eventually fixed, rather than continue with the > > seemingly poor tradition of hard-coding line breaks. >=20 > Whether line-breaks need to be hard-coded or not is a change of the API w= hich=20 > is rather tricky because you don't get any compiler warnings/errors for i= t. I=20 > didn't see anyone going over all the dialogs and removing all the linefee= ds=20 > after word-break was enabled and we currently don't have a decent algorit= hm,=20 > so if we want to have dialogs in 3.0 that don't look a lot worse than tho= se=20 > of 2.2 we need a solution now. Whatever direction we go, it will affect= =20 > translations so it really needs to be done ASAP. IMO single words need the treatment of shortening them to 80 chars max (or= =20 whatever the width of the diag), but the QT bugs should not create the API= =20 for KDE3. These bugs will be fixed before the QT4 I hope :) I was showing KDE2.2 to a friend that has bad eyes, and was surprised about the bad way KDE handeled huge fonts (> 20), its still pethethic in KDE3, bu= t=20 auto-line-breaks are _needed_ to fix this in the future. Your example of line breaking one word before the manual line break only points to a direct example that can be fixed in the line breaking algoritm. IMO this needs to be reverted. --=20 Thomas Zander zander@earthling.n= et The only thing worse than failure is the fear of trying something new --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8Q/aTCojCW6H2z/QRAoq3AKC4h2IZWROH6I8ogMWAP4ETOzeBHgCeN18L J9jZPRVjgQzRsCM1MXnnVGs= =PSXN -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--