re-imported spellcheck (aspell) integration from Jose

This commit is contained in:
Ralf Becker 2008-04-15 19:25:04 +00:00
parent fc1d69e060
commit e2d0b93353

View File

@ -3,10 +3,29 @@ header('Content-type: text/html; charset=utf-8');
// The following variables values must reflect your installation needs. // The following variables values must reflect your installation needs.
$aspell_prog = '"C:\Program Files\Aspell\bin\aspell.exe"'; // by FredCK (for Windows) //$aspell_prog = '"C:\Program Files\Aspell\bin\aspell.exe"'; // by FredCK (for Windows)
//$aspell_prog = 'aspell'; // by FredCK (for Linux) //$aspell_prog = 'aspell'; // by FredCK (for Linux)
$lang = 'en_US'; if ($_GET['aspell_path'])
{
$aspell_prog = $_GET['aspell_path'];
}
else
{
$aspell_prog = 'aspell';
}
if ($_GET['spellchecker_lang'])
{
$lang = $_GET['spellchecker_lang'];
}
else
{
$lang = 'en_US';
}
//$lang = 'en_US';
$aspell_opts = "-a --lang=$lang --encoding=utf-8 -H --rem-sgml-check=alt"; // by FredCK $aspell_opts = "-a --lang=$lang --encoding=utf-8 -H --rem-sgml-check=alt"; // by FredCK
$tempfiledir = "./"; $tempfiledir = "./";