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

This commit is contained in:
Jean-Francois Dockes
2015-08-07 10:13:15 +02:00
parent 72da3ba2a9
commit 06fcd4602a
2 changed files with 16 additions and 1 deletions
+7
View File
@@ -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;
args.push_back("--encoding=utf-8");
cmdstring += string(" ") + "--encoding=utf-8";
if (!addCreateParam.empty()) {
args.push_back(addCreateParam);
cmdstring += string(" ") + addCreateParam;
}
args.push_back("create");
cmdstring += string(" ") + "create";
args.push_back("master");