]>
Commit | Line | Data |
---|---|---|
d598f25f | 1 | --- spell_checker/pspell_comp.php.oryg 2007-04-19 14:37:05.000000000 +0200 |
2 | +++ spell_checker/pspell_comp.php 2007-04-19 14:38:49.000000000 +0200 | |
726425e4 ER |
3 | @@ -44,9 +44,9 @@ |
4 | ||
5 | if(!defined('ASPELL_BIN')) define('ASPELL_BIN','aspell'); | |
6 | ||
7 | -define(PSPELL_FAST,1); # Fast mode (least number of suggestions) | |
8 | -define(PSPELL_NORMAL,2); # Normal mode (more suggestions) | |
9 | -define(PSPELL_BAD_SPELLERS,3); # Slow mode (a lot of suggestions) ) | |
10 | +define('PSPELL_FAST',1); # Fast mode (least number of suggestions) | |
11 | +define('PSPELL_NORMAL',2); # Normal mode (more suggestions) | |
12 | +define('PSPELL_BAD_SPELLERS',3); # Slow mode (a lot of suggestions) ) | |
13 | ||
14 | function pspell_config_create($language, $spelling=null, $jargon=null, $encoding='iso8859-1'){ | |
15 | return new Pspell($language, $spelling, $jargon, $encoding); | |
d598f25f | 16 | @@ -129,11 +129,11 @@ |
726425e4 ER |
17 | #FIXME how to support spelling? |
18 | ||
d598f25f | 19 | if($this->$jargon){ |
726425e4 | 20 | - $this->args .= ' --jargon='.escapeshellarg($jargon); |
726425e4 ER |
21 | + $this->args .= ' --jargon='.escapeshellarg($this->jargon); |
22 | } | |
23 | ||
d598f25f | 24 | if($this->$encoding){ |
726425e4 | 25 | - $this->args .= ' --encoding='.escapeshellarg($encoding); |
726425e4 ER |
26 | + $this->args .= ' --encoding='.escapeshellarg($this->encoding); |
27 | } | |
28 | ||
d598f25f | 29 | switch ($this->mode){ |
30 | @@ -233,4 +233,4 @@ | |
31 | } | |
32 | } | |
33 | ||
34 | -?> | |
35 |