[ Index ]
 

Code source de DokuWiki 2006-11-06

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/inc/ -> aspell.php (sommaire)

Aspell interface This library gives full access to aspell's pipe interface. Optionally it provides some of the functions from the pspell PHP extension by wrapping them to calls to the aspell binary.

Author: Andreas Gohr <andi@splitbrain.org>
Poids: 322 lignes (10 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Aspell:: (7 méthodes):
  Aspell()
  setMode()
  _prepareArgs()
  runAspell()
  execPipe()
  suggest()
  check()

Définit 7 fonctions

  pspell_config_create()
  pspell_config_mode()
  pspell_new_config()
  pspell_check()
  pspell_suggest()

Classe: Aspell  - X-Ref

Class to interface aspell

Needs PHP >= 4.3.0
Aspell($language, $jargon=null, $encoding='iso8859-1')   X-Ref
Constructor. Works like pspell_config_create()

author: Andreas Gohr <andi@splitbrain.org>

setMode($mode)   X-Ref
Set the spelling mode like pspell_config_mode()

Mode can be PSPELL_FAST, PSPELL_NORMAL, PSPELL_BAD_SPELLER or ASPELL_ULTRA

author: Andreas Gohr <andi@splitbrain.org>

_prepareArgs()   X-Ref
Prepares the needed arguments for the call to the aspell binary

No need to call this directly

author: Andreas Gohr <andi@splitbrain.org>

runAspell($text,&$out,&$err,$specials=null)   X-Ref
Pipes a text to aspell

This opens a bidirectional pipe to the aspell binary, writes
the given text to STDIN and returns STDOUT and STDERR

You can give an array of special commands to be executed first
as $specials parameter. Data lines are escaped automatically

author: Andreas Gohr <andi@splitbrain.org>

execPipe($command,$stdin,&$stdout,&$stderr)   X-Ref
Runs the given command with the given input on STDIN

STDOUT and STDERR are written to the given vars, the command's
exit code is returned. If the pip couldn't be opened null is returned

author: <richard at 2006 dot atterer dot net>

suggest($word)   X-Ref
Checks a single word for correctness

returns: array of suggestions or true on correct spelling
author: Andreas Gohr <andi@splitbrain.org>

check($word)   X-Ref
Check if a word is mispelled like pspell_check

author: Andreas Gohr <andi@splitbrain.org>

Fonctions
Fonctions qui ne font pas partie d'une Classe:

pspell_config_create($language, $spelling=null, $jargon=null, $encoding='iso8859-1')   X-Ref
You can define PSPELL_COMP to use this class as drop in replacement
for the pspell extension


pspell_config_mode(&$config, $mode)   X-Ref
Pas de description

pspell_new_config(&$config)   X-Ref
Pas de description

pspell_check(&$dict,$word)   X-Ref
Pas de description

pspell_suggest(&$dict, $word)   X-Ref
Pas de description



Généré le : Tue Apr 3 20:47:31 2007 par Balluche grâce à PHPXref 0.7