From 01969e59fb6a6d9d8c5924f11f487f36a8722a8d Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Wed, 15 Jan 2014 21:18:34 +0100 Subject: [PATCH] #8932 improved spell checker debug messages --- src/AspellChecker.cpp | 2 ++ src/HunspellChecker.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/AspellChecker.cpp b/src/AspellChecker.cpp index ad4ca976e8..06da1f8149 100644 --- a/src/AspellChecker.cpp +++ b/src/AspellChecker.cpp @@ -357,6 +357,8 @@ SpellChecker::Result AspellChecker::Private::check( { SpellChecker::Result result = WORD_OK; docstring w1; + LYXERR(Debug::GUI, "spellCheck: \"" << + word.word() << "\", lang = " << word.lang()->lang()) ; docstring rest = split(word.word(), w1, '-'); for (; result == WORD_OK;) { string const word_str = toAspellWord(w1); diff --git a/src/HunspellChecker.cpp b/src/HunspellChecker.cpp index 31b629671e..ea4b88c5c0 100644 --- a/src/HunspellChecker.cpp +++ b/src/HunspellChecker.cpp @@ -344,16 +344,18 @@ SpellChecker::Result HunspellChecker::check(WordLangTuple const & wl) string const encoding = h->get_dic_encoding(); string const word_to_check = to_iconv_encoding(wl.word(), encoding); + LYXERR(Debug::GUI, "spellCheck: \"" << + wl.word() << "\", lang = " << wl.lang()->lang()) ; if (h->spell(word_to_check.c_str(), &info)) return d->learned(wl) ? LEARNED_WORD : WORD_OK; if (info & SPELL_COMPOUND) { // FIXME: What to do with that? - LYXERR(Debug::FILES, "Hunspell compound word found " << word_to_check); + LYXERR(Debug::GUI, "Hunspell compound word found " << word_to_check); } if (info & SPELL_FORBIDDEN) { // This was removed from personal dictionary - LYXERR(Debug::FILES, "Hunspell explicit forbidden word found " << word_to_check); + LYXERR(Debug::GUI, "Hunspell explicit forbidden word found " << word_to_check); } return UNKNOWN_WORD;