Lines Matching +full:- +full:- +full:no +full:- +full:suggest

44     function pspell_config_create($language, $spelling=null, $jargon=null, $encoding='iso8859-1'){
49 return $config->setMode($mode);
57 return $dict->check($word);
61 return $dict->suggest($word);
74 var $encoding = 'iso8859-1';
85 function Aspell($language, $jargon=null, $encoding='iso8859-1'){
86 $this->language = $language;
87 $this->jargon = $jargon;
88 $this->encoding = $encoding;
103 $this->mode = $mode;
110 * No need to call this directly
115 $this->args = '';
117 if($this->language != null){
118 $this->args .= ' --lang='.escapeshellarg($this->language);
120 return false; // no lang no spell
123 if($this->jargon != null){
124 $this->args .= ' --jargon='.escapeshellarg($this->jargon);
127 if($this->personal != null){
128 $this->args .= ' --personal='.escapeshellarg($this->personal);
131 if($this->encoding != null){
132 $this->args .= ' --encoding='.escapeshellarg($this->encoding);
135 switch ($this->mode){
137 $this->args .= ' --sug-mode=fast';
140 $this->args .= ' --sug-mode=bad-spellers';
143 $this->args .= ' --sug-mode=ultra';
146 $this->args .= ' --sug-mode=normal';
163 * @link http://aspell.sf.net/man-html/Through-A-Pipe.html
170 $this->_prepareArgs();
171 $command = ASPELL_BIN.' -a'.$this->args;
186 $rc = $this->execPipe($command,$stdin,$out,$err);
198 $this->version = $tmp[1]*100 + $tmp[2]*10 + $tmp[3];
200 if ($this->version <= 603) // version 0.60.3
205 // lines starting with a '?' are no realy misspelled words and some
226 * @link http://www.php.net/manual/en/function.proc-open.php#64116
240 stream_set_blocking($pipes[0], 0); // Make stdin/stdout/stderr non-blocking
289 function suggest($word){ function in Aspell
290 if($this->runAspell("^$word",$out,$err)){
297 if($line[0] == '*') return true; // no mistakes made
298 if($line[0] == '#') return array(); // mistake but no suggestions
314 if(is_array($this->suggest($word))){
322 //Setup VIM: ex: et ts=4 enc=utf-8 :