* src/ASpell.cpp:

- implement lyxrc.isp_accept_compound (bug 4408).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22191 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-12-17 16:53:07 +00:00
parent edfaaca4b2
commit cf0411cffa
2 changed files with 11 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#include <aspell.h>
#include "ASpell_local.h"
#include "LyXRC.h"
#include "WordLangTuple.h"
#include <boost/assert.hpp>
@ -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);

View File

@ -26,6 +26,7 @@ What's new
- Updated French Introduction manual.
* USER INTERFACE
@ -55,6 +56,9 @@ What's new
- Fix access to network drives on Windows.
- "Accept compound words" in Preferences->Spellchecker now also works
with aspell (library) (bug 4408).
* DOCUMENTATION