Re: some progress with the spell checker
Lars Ivar Igesund <[email protected]> Thu, 23 Jun 2005 20:30:35 +0100
| Newsgroups | gmane.comp.kde.devel.kbabel |
|---|---|
| Message-ID | <[email protected]> |
Heiko Evermann wrote: >Hi Nicolas, > > > >>>For the umlauts, I already have an idea: the regexps will not treat it >>> >>> >>as a >> >> >>>letter. I hope that the character classes of QT will solve that. >>> >>> >>Otherwise you could try to use . for any character or \S for any >>non-space. >> >> >The problem is a bit harder that I thought. I have added a debug message >about the words that are treated in KBabelHighlighter::isMisspelled. >You should get them, too, if you compile fresh from svn. The line is split >correctly into words. The word with umlaut is then handed over to > > >>mSpell->checkWord(word, false); >> >> > >Any ideas? > >Kind regards, > >Heiko Evermann > > > If I remember correctly, characters with umlaut use two bytes in a utf8 string, and this can in some cases mean that no match is found, even in the same encoding. If I remember wrong, it might still be an encoding problem, in which case I wish you luck :) Regards, Lars Ivar Igesund