X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FASpell.cpp;h=0cef57293d15ebdde8266c42b20a91423f01b226;hb=b2475f6625efbaacbd574d5b9a2402b4d20c4047;hp=9dff24a3008fe8a66e173f2cd2496805dde98bfa;hpb=9383f4c3c6f9cfab2d658701ba66e2b54cd68bea;p=lyx.git diff --git a/src/ASpell.cpp b/src/ASpell.cpp index 9dff24a300..0cef57293d 100644 --- a/src/ASpell.cpp +++ b/src/ASpell.cpp @@ -16,6 +16,7 @@ #include #include "ASpell_local.h" +#include "LyXRC.h" #include "WordLangTuple.h" #include @@ -65,6 +66,12 @@ void ASpell::addSpeller(string const & lang) // platforms (cygwin, OS X). Therefore we use utf-8, that does // always work. aspell_config_replace(config, "encoding", "utf-8"); + if (lyxrc.isp_accept_compound) + // Consider run-together words as legal compounds + aspell_config_replace(config, "run-together", "true"); + else + // Report run-together words as errors + aspell_config_replace(config, "run-together", "false"); AspellCanHaveError * err = new_aspell_speller(config); if (spell_error_object) delete_aspell_can_have_error(spell_error_object);