Koozali.org: home of the SME Server

get pspell working

sam

get pspell working
« on: April 27, 2003, 09:21:21 AM »
I wish someone would help a layman like me get pspell working. I've noticed that a phpinfo() now has pspell included in Mitel sme5.6 ('--with-pspell' )
BUT I cannot get it to work:
For example I've tried the pspell_suggest from the manuel:
Untitled
$pspell_link = pspell_new ("en");
if (!pspell_check ($pspell_link, "testt")) {
$suggestions = pspell_suggest ($pspell_link, "testt");

for ($i=0; $i < count ($suggestions); $i++) {
echo "Possible spelling: " . $suggestions[$i] . "
";
}
}
?>


and I get the following error:
Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "english". in /home/e-smith/files/ibays/five-six/html/checkspell.php on line 5

Warning: 0 is not an PSPELL result index in /home/e-smith/files/ibays/five-six/html/checkspell.php on line 6

Warning: 0 is not an PSPELL result index in /home/e-smith/files/ibays/five-six/html/checkspell.php on line 7
Possible spelling:

maybe mitel could have a english dictionary version working upon a fresh install (maybe they have but I just don't know what I'm doing!)

Bill Talcott

Re: get pspell working
« Reply #1 on: April 28, 2003, 06:17:13 PM »
sam wrote:
>
> Warning: 0 is not an PSPELL result index in
> /home/e-smith/files/ibays/five-six/html/checkspell.php on
> line 6
>
> Warning: 0 is not an PSPELL result index in
> /home/e-smith/files/ibays/five-six/html/checkspell.php on
> line 7
> Possible spelling:
>
> maybe mitel could have a english dictionary version working
> upon a fresh install (maybe they have but I just don't know
> what I'm doing!)

I have absolutely no experience with this, but perhaps it's a "base directory" error? Those errors are looking in your ibay. Should it be in a central location?