fsf changes, meant to be rebased on upstream
[squirrelmail.git] / plugins / squirrelspell / sqspell_config.php
index c4f120620c239f23823575436c1ea35c362b3184..160ae38cf750ec577a999d530cb4cb738212acd2 100644 (file)
@@ -3,9 +3,9 @@
 /**
  * sqspell_config.php -- SquirrelSpell Configuration file.
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2022 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
- * @version $Id$
+ * @version $Id: sqspell_config.php 14845 2020-01-07 08:09:34Z pdontthink $
  * @package plugins
  * @subpackage squirrelspell
  */
@@ -58,8 +58,30 @@ sqgetGlobalVar('username', $username, SQ_SESSION);
  *
  * @global array $SQSPELL_APP
  */
-$SQSPELL_APP = array('English' => 'ispell -a',
-                     'Spanish' => 'ispell -d spanish -a');
+$SQSPELL_APP = array('English' => 'aspell -a');
+
+/**
+ * Sample configuration for PHP pspell extension. Sets dictionary options.
+ * Each language definition can contain up to 3 comma delimited options.
+ * First option sets language, second sets spelling, third one sets jargon.
+ * See http://www.php.net/pspell-new
+ * 
+ * Pspell extension is supported since 0.6 (sm 1.5.2)
+ */
+//$SQSPELL_APP = array('English' => 'en',
+//                     'Spanish' => 'es');
+
+/**
+ * 0 - default, command line ispell or aspell utilities configured with SQSPELL_APP
+ * 1 - use php pspell extension. WARNING requires different SQSPELL_APP options.
+ */
+$SQSPELL_SPELLCHECKER = 0;
+
+/**
+ * Can be used to turn of detection of proc_open support in command line spellcheck
+ * module. Option is not used if $SQSPELL_SPELLCHECKER is set to 1.
+ */
+$SQSPELL_FORCE_POPEN = false;
 
 /**
  * Default dictionary
@@ -82,11 +104,3 @@ $SQSPELL_APP_DEFAULT = 'English';
 $SQSPELL_WORDS_FILE =
    getHashedFile($username, $data_dir, "$username.words");
 
-/**
- * Function used for checking words in user's dictionary
- * @global string $SQSPELL_EREG
- * @deprecated It is not used since 1.5.1 (sqspell 0.5)
- */
-$SQSPELL_EREG = 'ereg';
-
-?>