1 diff -u ../pspell_comp.php ./pspell_comp.php
2 --- ../pspell_comp.php 2005-06-24 15:32:02.000000000 +0300
3 +++ ./pspell_comp.php 2005-06-24 15:38:15.000000000 +0300
6 if(!defined('ASPELL_BIN')) define('ASPELL_BIN','aspell');
8 -define(PSPELL_FAST,1); # Fast mode (least number of suggestions)
9 -define(PSPELL_NORMAL,2); # Normal mode (more suggestions)
10 -define(PSPELL_BAD_SPELLERS,3); # Slow mode (a lot of suggestions) )
11 +define('PSPELL_FAST',1); # Fast mode (least number of suggestions)
12 +define('PSPELL_NORMAL',2); # Normal mode (more suggestions)
13 +define('PSPELL_BAD_SPELLERS',3); # Slow mode (a lot of suggestions) )
15 function pspell_config_create($language, $spelling=null, $jargon=null, $encoding='iso8859-1'){
16 return new Pspell($language, $spelling, $jargon, $encoding);
18 function _prepareArgs(){
21 - if($this->$language){
22 - $this->args .= ' --lang='.escapeshellarg($language);
24 + if ($this->language) {
25 + $this->args .= ' --lang='.escapeshellarg($this->language);
27 return false; // no lang no spell
30 #FIXME how to support spelling?
33 - $this->args .= ' --jargon='.escapeshellarg($jargon);
35 + $this->args .= ' --jargon='.escapeshellarg($this->jargon);
38 - if($this->$encoding){
39 - $this->args .= ' --encoding='.escapeshellarg($encoding);
40 + if($this->encoding){
41 + $this->args .= ' --encoding='.escapeshellarg($this->encoding);
44 - switch ($this->mode){
45 + switch ($this->mode) {
47 $this->args .= ' --sug-mode=fast';