From 84c5ba593f359ff30cee945e152f868f695c8065 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 15 Apr 2008 19:22:59 +0000 Subject: [PATCH] re-imported spellcheck (aspell) integration from Jose --- .../server-scripts/spellchecker.php | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/phpgwapi/js/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php b/phpgwapi/js/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php index 9c747c9167..00c9d49df6 100644 --- a/phpgwapi/js/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php +++ b/phpgwapi/js/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php @@ -3,10 +3,29 @@ header('Content-type: text/html; charset=utf-8'); // 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) -$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 $tempfiledir = "./";