case RC_ESC_CHARS:
if (ignore_system_lyxrc ||
spellchecker_esc_chars != system_lyxrc.spellchecker_esc_chars) {
- os << "\\escape_chars \"" << spellchecker_esc_chars << "\"\n";
+ os << "\\escape_chars \"" << to_utf8(spellchecker_esc_chars) << "\"\n";
}
if (tag != RC_LAST)
break;
/// Alternate language for spellchecker
std::string spellchecker_alt_lang;
/// Escape characters
- std::string spellchecker_esc_chars;
+ docstring spellchecker_esc_chars;
/// Accept compound words in spellchecker?
bool spellchecker_accept_compound = false;
/// spellcheck continuously?
return false;
char_type const c = d->text_[pos];
// We want to pass the escape chars to the spellchecker
- docstring const escape_chars = from_utf8(lyxrc.spellchecker_esc_chars);
- return !isLetterChar(c) && !isDigitASCII(c) && !contains(escape_chars, c);
+ return !isLetterChar(c) && !isDigitASCII(c)
+ && !contains(lyxrc.spellchecker_esc_chars, c);
}
if (!speller.empty())
rc.spellchecker = speller;
rc.spellchecker_alt_lang = fromqstr(altLanguageED->text());
- rc.spellchecker_esc_chars = fromqstr(escapeCharactersED->text());
+ rc.spellchecker_esc_chars = qstring_to_ucs4(escapeCharactersED->text());
rc.spellchecker_accept_compound = compoundWordCB->isChecked();
rc.spellcheck_continuously = spellcheckContinuouslyCB->isChecked();
rc.spellcheck_notes = spellcheckNotesCB->isChecked();