File/plugins/spellcheck/config.php

Description

config.php -- NaSMail SpellCheck plugin configuration file.

  • version: $Id: config.php 1249 2008-04-05 07:34:50Z tokul $
  • copyright: (c) 1999-2006 The SquirrelMail Project Team
  • copyright: (c) 2006-2007 The NaSMail Project
  • license: GNU Public License
Variables
array $SQSPELL_APP (line 62)

List of configured dictionaries

This feature was added/changed in 0.3. Use this array to set up which dictionaries are available to users. If you only have English spellchecker on your system, then let this line be:

   $SQSPELL_APP = array('English' => 'ispell -a');
     or
   $SQSPELL_APP = array('English' => '/usr/local/bin/aspell -a');
Sometimes you have to specify full path for PHP to find it.

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:

   $SQSPELL_APP = array('English' => 'aspell -a',
                        'Russian' => 'ispell -d russian -a',
                        ...
                        'Swahili' => 'ispell -d swahili -a'
                        );
WARNINGS:
  • Watch the commas, making sure there isn't one after your last dictionary declaration. Also, make sure all these dictionaries are available on your system before you specify them here.
  • Whatever your setting is, don't omit the "-a" flag.
  • Remember to keep same array keys during upgrades. Don't rename them. Users' dictionary settings use it.
  • Interface might translate array key, if used key is present in SquirrelMail translations.
 Example:
 $SQSPELL_APP = array('English' => 'ispell -a',
                      'Spanish' => 'ispell -d spanish -a' );

string $SQSPELL_APP_DEFAULT (line 92)

Default dictionary

string $SQSPELL_EREG (line 115)

Function used for checking words in user's dictionary

  • deprecated: It is not used since 1.5.1 (sqspell 0.5)
string $SQSPELL_WORDS_FILE (line 107)

File that stores user's dictionary

$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 plugin is upgraded from older setup. NaSMail SpellCheck plugin stores all settings in same place that stores other NaSMail user preferences. This option provides backwards compatibility with SquirrelMail 1.4.x personal dictionaries.

  • deprecated: setting is still needed in order to handle upgrades

Documentation generated on Sun, 22 Nov 2009 17:36:21 +0200 by phpDocumentor 1.4.3