[Kbabel] some progress with the spell checker

Lars Ivar Igesund larsivar at igesund.net
Thu Jun 23 21:30:35 CEST 2005


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



More information about the kbabel mailing list