WORD_OK = 1,
/// word not found
UNKNOWN_WORD,
+ /// number of personal dictionary "word"
+ LEARNED_WORD,
/// number of document dictionary "word"
DOCUMENT_LEARNED_WORD,
/// missing dictionary for language
static bool misspelled(Result res) {
return res != WORD_OK
&& res != NO_DICTIONARY
+ && res != LEARNED_WORD
&& res != DOCUMENT_LEARNED_WORD; }
/// check the given word of the given lang code and return the result
case SpellChecker::WORD_OK: {
if (wl.word().empty())
break;
+ SpellChecker * speller = theSpellChecker();
+ if (speller && speller->canCheckParagraph())
+ break;
LYXERR(Debug::GUI, "Valid Word.");
+ }
+ // FALLTHROUGH
+ case SpellChecker::LEARNED_WORD: {
+ if (res == SpellChecker::LEARNED_WORD)
+ LYXERR(Debug::GUI, "Learned Word.");
docstring const arg = wl.word() + " " + from_ascii(wl.lang()->lang());
add(MenuItem(MenuItem::Command, qt_("Remove from personal dictionary|r"),
FuncRequest(LFUN_SPELLING_REMOVE, arg)));