FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Spell Checker.
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Spell Checker. [message #15898] Thu, 08 January 2004 22:16 Go to next message
mocara is currently offline  mocara   United Kingdom
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #15905 is a reply to message #15901] Fri, 09 January 2004 10:07 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
That says, "sorry, wrong spelling"

It's quite confusing this as nothing throws up a real error.

I don't think this is an error with fud so much as an error with my aspell.

Thanks for the help.
Dave.
Re: Spell Checker. [message #15911 is a reply to message #15905] Fri, 09 January 2004 12:45 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #15921 is a reply to message #15911] Fri, 09 January 2004 15:45 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
[root@xander tmp]# aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell .33.7.1 alpha)

I grabed the en dictionary from the aspell site.
aspell-en-0.51-0

Is there an alternative dictionary I should try?

Dave.
Re: Spell Checker. [message #15922 is a reply to message #15921] Fri, 09 January 2004 15:47 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #15924 is a reply to message #15922] Fri, 09 January 2004 15:58 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
Slap me silly. I'm off to look for the correct dictionary...

Thanks.
Re: Spell Checker. [message #15927 is a reply to message #15924] Fri, 09 January 2004 17:51 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
Installed aspell-0.50.2 and aspell-en-0.50-2 I assume these are the matching versions?
Recompiled apache and php with --with-pspell

Is there something else I am missing?

[root@xander apps3]# aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.2)

Which version of aspell and dictionary does fud.prohost.org use?

Regards.
Dave.
Re: Spell Checker. [message #15928 is a reply to message #15927] Fri, 09 January 2004 17:58 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #15972 is a reply to message #15928] Sat, 10 January 2004 22:42 Go to previous messageGo to next message
scoutzilla is currently offline  scoutzilla   United States
Messages: 163
Registered: April 2002
Location: Southern Califorina
Karma: 0
Senior Member

Where do we install these aspell files? Right in our forum dir, inside the www dir or the Data dir? My group needs any help they can get with spelling

Laughing


Got Torque?
Re: Spell Checker. [message #15974 is a reply to message #15972] Sat, 10 January 2004 23:40 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: Spell Checker. [message #15978 is a reply to message #15974] Sun, 11 January 2004 00:43 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
The dictionary files have a configure and make file for installing them. It should detect your settings and work fine. My Aspell and dictionary works, oddly just not in PHP Smile

Dave.
Re: Spell Checker. [message #15980 is a reply to message #15974] Sun, 11 January 2004 00:49 Go to previous messageGo to next message
scoutzilla is currently offline  scoutzilla   United States
Messages: 163
Registered: April 2002
Location: Southern Califorina
Karma: 0
Senior Member

So a good place would be ...my_site.com/spell_check_lib or ...my_site.com/fud_board/spell_check_lib?

thanks!


Got Torque?
Re: Spell Checker. [message #15981 is a reply to message #15980] Sun, 11 January 2004 00:59 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
The dictionaries would have to be installed on the system itself, not your site. I would think somewhere like /usr/local/share/aspell/dict or some such place. If you are on a hosted site and don't have root access, you would have to get the systems admin to install it for you.

Good luck.
Dave.
Re: Spell Checker. [message #15982 is a reply to message #15978] Sun, 11 January 2004 03:26 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
mocara wrote on Sat, 10 January 2004 19:43

The dictionary files have a configure and make file for installing them. It should detect your settings and work fine. My Aspell and dictionary works, oddly just not in PHP Smile

Dave.



If you installed a new version of aspell you probably should recompile your PHP, so that it links against the new library you've installed.


FUDforum Core Developer
Re: Spell Checker. [message #15984 is a reply to message #15982] Sun, 11 January 2004 03:57 Go to previous messageGo to next message
scoutzilla is currently offline  scoutzilla   United States
Messages: 163
Registered: April 2002
Location: Southern Califorina
Karma: 0
Senior Member

Quote:

The dictionaries would have to be installed on the system itself, not your site.


So as the webmaster of my site I have to have the dictionaries installed by my hosting service??

I just don't quite get it yet.

Confused


Got Torque?
Re: Spell Checker. [message #15987 is a reply to message #15982] Sun, 11 January 2004 11:48 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
Ilia wrote on Sat, 10 January 2004 22:26


If you installed a new version of aspell you probably should recompile your PHP, so that it links against the new library you've installed.


Yes, sorry forgot to mention that. I spent most of Friday recompiling php and apache, as my apache is a static install. After about 6 apache, aspell and php compilations, I gave in Smile

You will need to ask whom ever is in charge of your server to recompile the php to match your new aspell library, this may involve recompiling apache too.

Regards.
Dave.
Re: Spell Checker. [message #15990 is a reply to message #15987] Sun, 11 January 2004 17:54 Go to previous message
scoutzilla is currently offline  scoutzilla   United States
Messages: 163
Registered: April 2002
Location: Southern Califorina
Karma: 0
Senior Member

Ok I will talk to my web hosting service and see if they will set this up.

Got Torque?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: New user properties.
Next Topic: Anonymous settings
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 21:16:18 GMT 2024

Total time taken to generate the page: 0.02841 seconds