[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: Re: Hyphenation issues (2)
From: David Faure <faure () kde ! org>
Date: 2004-03-22 17:03:40
Message-ID: 200403221803.41295.faure () kde ! org
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic