Commit 1d439465 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

Allow setting additional aspell param as alternate workaround to Debian #772415

branch : RECOLL_1_21_MAINT
parent eef46c4f
......@@ -268,6 +268,9 @@ bool Aspell::buildDict(Rcl::Db &db, string &reason)
if (!ok())
return false;
string addCreateParam;
m_config->getConfParam("aspellAddCreateParam", addCreateParam);
// We create the dictionary by executing the aspell command:
// aspell --lang=[lang] create master [dictApath]
string cmdstring(m_data->m_exec);
......@@ -277,6 +280,10 @@ bool Aspell::buildDict(Rcl::Db &db, string &reason)
cmdstring += string(" ") + string("--lang=") + m_lang;
cmdstring += string(" ") + "--encoding=utf-8";
if (!addCreateParam.empty()) {
cmdstring += string(" ") + addCreateParam;
cmdstring += string(" ") + "create";
......@@ -266,11 +266,19 @@ filtermaxmbytes = 2000
# Language definitions to use when creating the aspell dictionary.
# The value must match a set of aspell language definition files.
# You can type "aspell config" to see where these are installed.
# You can type "aspell dicts" to see a list
# The default if this is not set is to use the NLS environment to guess the
# value
# aspellLanguage = en
# Somme aspell packages may need an additional option (e.g. on Debian
# Jessie). See Debian bug 772415
# aspellAddCreateParam = --local-data-dir=/usr/lib/aspell
# You may also want to set this to have a look at aspell dictionary
# creation errors. But there are always many, so this is mostly for debugging
# aspellKeepStderr = 1
# Disabling aspell use. The aspell dictionary generation takes some time,
# and some combinations of aspell version, language, and local terms,
# result in aspell dumping core each time. You can disable the aspell
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment