+2003-11-04 Alfredo Braunstein <abraunst@libero.it>
+
+ * ControlSpellchecker.C (nextWord): do not send ligature breaks
+ and other nasty insets to the spellchecker
+
2003-11-04 Alfredo Braunstein <abraunst@libero.it>
* ControlSpellchecker.[Ch] (nextWord, check): rewrite of the text
string str;
// and find the end of the word (insets like optional hyphens
// and ligature break are part of a word)
- for (; cur != end && isLetter(cur); ++cur, ++progress)
- str += cur.pit()->getChar(cur.pos());
+ for (; cur != end && isLetter(cur); ++cur, ++progress) {
+ if (!cur.pit()->isInset(cur.pos()))
+ str += cur.pit()->getChar(cur.pos());
+ }
+
return WordLangTuple(str, lang_code);
}