From koffice Mon Mar 22 17:03:40 2004 From: David Faure Date: Mon, 22 Mar 2004 17:03:40 +0000 To: koffice Subject: Re: Hyphenation issues (2) Message-Id: <200403221803.41295.faure () kde ! org> X-MARC-Message: https://marc.info/?l=koffice&m=107997503003529 On Monday 22 March 2004 17:23, Prof. Dr. Eduard Werner / Edward Wornar wrote: > OK, but do you get the same thing when you type it in kword? I can't check > kohyphenator right away because I don't have the koffice source here. You were correct. The hyphenator works, but kotext was sending "zmyli" to it instead of "zmylki". Good one! Fixed. Index: kotextformatter.cc =================================================================== RCS file: /home/kde/koffice/lib/kotext/kotextformatter.cc,v retrieving revision 1.83 diff -u -p -r1.83 kotextformatter.cc --- kotextformatter.cc 18 Mar 2004 16:51:58 -0000 1.83 +++ kotextformatter.cc 22 Mar 2004 17:00:44 -0000 @@ -339,7 +339,7 @@ bool KoTextFormatterCore::format() // Breaking after i isn't possible, i is too far already int maxlen = i - wordStart; // we can't accept to break after maxlen QString word = string->mid( wordStart, maxlen ); - int wordEnd = i + 1; + int wordEnd = i; // but we need to compose the entire word, to hyphenate it while ( wordEnd < len && !settings->isBreakable( string, wordEnd ) ) { word += string->at(wordEnd).c; -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org). ____________________________________ koffice mailing list koffice@mail.kde.org To unsubscribe please visit: https://mail.kde.org/mailman/listinfo/koffice