pspell problem
| From: | sam | Date: | Wed, 23 Apr 2003 14:33:39 +0000 |
| Subject: | pspell problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-145241@lists.php.net to get a copy of this message | ||
I've noticed that a phpinfo() now has pspell included in mitels sme5.6
('--with-pspell' ) (see www.e-smith.org)
To me this means it should work:
For example I've tried the pspell_suggest from the manuel:
<head><title>Untitled</title></head><body>
<?php
$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] . "<br>";
}
}
?>
</body>
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:
Could anyone help me with this problem as I have an app (LAMP) that clients
want spell checking enabled
thanks
sam
sam@duval.nsw.edu.au