X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fsqspell_config.php;h=160ae38cf750ec577a999d530cb4cb738212acd2;hp=d275f32e8de80a1d0b65e326b792610037f9e695;hb=306d15f3e16a7dbd9a51897b4335f357f9f62e27;hpb=e5af0839643a1546b97c884212afa73907042465 diff --git a/plugins/squirrelspell/sqspell_config.php b/plugins/squirrelspell/sqspell_config.php index d275f32e..160ae38c 100644 --- a/plugins/squirrelspell/sqspell_config.php +++ b/plugins/squirrelspell/sqspell_config.php @@ -1,21 +1,15 @@ '/usr/local/bin/aspell -a'); * * Sometimes you have to specify full path for PHP to find it. - * - * You can use Aspell or Ispell spellcheckers. Aspell might provide - * better spellchecking for Western languages. + * + * You can use Aspell or Ispell spellcheckers, the command line is the + * same. Aspell might provide better spellchecking for Western languages. * * If you want to have more than one dictionary available to users, * configure the array to look something like this: @@ -53,7 +47,7 @@ sqgetGlobalVar('username', $username, SQ_SESSION); *
@@ -64,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 @@ -78,7 +94,7 @@ $SQSPELL_APP_DEFAULT = 'English'; * * $SQSPELL_WORDS_FILE is a location and mask of a user dictionary file. * The default setting should be OK for most everyone. - * + * * This setting is used only when SquirrelSpell is upgraded from * older setup. Since SquirrelMail 1.5.1 SquirrelSpell stores all settings in * same place that stores other SquirrelMail user preferences. @@ -88,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'; - -?> \ No newline at end of file