Am 15.09.2010 um 13:11 schrieb Kornel Benko:

> Everything works as expected, but some words with "dot" are not recognized as 
> correct.
> 
> Say, I want enter "ggf.". This word is marked as not ok, but right klick 
> shows as 1. alternative "ggf.". Selecting it I now have "ggf..", but still 
> marked.
> 
> Document language: german
> Spellchecker: Hunspell
> 
> Could not find a way in the gui to allow "." as part of a word.

I'm trying to solve that issue.

But, I think it's not a new one. What do you think? Can you try with an older 
version, please?

The old code did the check for every word it locates in text one after the 
other.
The function to locate the words is unchanged.  With hunspell or Aspell as 
active
spell checker the behavior of the new code should be the same as with the old 
code.
That's the theory.

To fix this I tried to change the spell-check for "word-wise" checkers.
I test the character directly following the word and pass it onto the speller
when a "." is detected. Now it works for hunspell. 
But I'm not sure about Aspell. It didn't help and now the end of sentence is 
misspelled too.
A clean solution is not so easy. Perhaps the check with the trailing dot has to 
be repeated
without the dot if it failed. Or vice-versa. Not nice...

One possible solution would be to make all spell checkers able to check 
paragraphs
and move the word-splitting functionality to the interface code. But this has 
the
potential to break completely. So I would avoid that at first.

Stephan

Reply via email to