Spell Checker. [message #15898] |
Thu, 08 January 2004 22:16 |
mocara
Messages: 157 Registered: January 2004
Karma: 0
|
Senior Member |
|
|
Hi all,
I have pspell installed with English language. I get no php errors with this, but bizarrely it still doesn't work.
The spell checker puts ever word in a drop down, as if to say it is incorrect. The problem is it doesn't offer any replacements. undoubtedly this is a mistake of mine, but with no error messages it's a tad hard to figure out. aspell works from the command-line on a given file. Anyone had this problem? Any ideas?
Regards,
Dave.
[Updated on: Thu, 08 January 2004 22:17] Report message to a moderator
|
|
|
Re: Spell Checker. [message #15901 is a reply to message #15898] |
Fri, 09 January 2004 02:00 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Sounds like you're missing the dictionary file or it's incomplete or possibly webserver does not have permission to open it.
Try making a simple test script using the following example
<?php $pspell_link = pspell_new("en"); if (pspell_check($pspell_link, "testt")) { echo "This is a valid spelling"; } else { echo "Sorry, wrong spelling"; } ?>
FUDforum Core Developer
|
|
|
|
Re: Spell Checker. [message #15911 is a reply to message #15905] |
Fri, 09 January 2004 12:45 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Which version of aspell are you using? Did you explicitly install aspell's english dictionary?
FUDforum Core Developer
|
|
|
|
Re: Spell Checker. [message #15922 is a reply to message #15921] |
Fri, 09 January 2004 15:47 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You are using a dictionary not compatible with your version of aspell. You need to download and install aspell 0.50.3 or later.
Your aspell --version should say:
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.3)
FUDforum Core Developer
|
|
|
|
|
Re: Spell Checker. [message #15928 is a reply to message #15927] |
Fri, 09 January 2004 17:58 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
That looks correct. FUDforum uses english dictionary for english locale.
FUDforum Core Developer
|
|
|
|
Re: Spell Checker. [message #15974 is a reply to message #15972] |
Sat, 10 January 2004 23:40 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Aspell is a library, the dictionary files should go where the apsell install expects them to be.
FUDforum Core Developer
|
|
|
|
|
|
|
|
|
|