Author Topic: Spell Check [Merged]  (Read 90097 times)

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,920
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Spell Check [Merged]
« Reply #180 on: March 15, 2006, 06:29:31 PM »
SMF figures this out by checking to see if the function pspell_new() exists - if it does, then SMF assumes it will work on the server, otherwise SMF says it won't.

What does this give you?

Code: [Select]
// Show ALL errors, regardless of how minor they might be

// Open english dictionary

// A bad spelling of "spelled"... This should generate a lot of suggestions
$suggestions pspell_suggest(&#39;spelt&#39;);
echo &#39;Suggestions for "spelt":<br />&#39;;
foreach($suggestions AS $a_word)
$suggestion . &#39;<br />&#39;;

That should give you an error message, since SMF doesn't think that pspell_new exists...
Michael Eshom
Cincy Space - now open!

Offline Jay?

  • Semi-Newbie
  • *
  • Posts: 70
Re: Spell Check [Merged]
« Reply #181 on: May 24, 2006, 12:36:44 PM »
Okay - Here's a fun one for ya ;)

I have a 2 SMF installations on one server - one site is and the other is  For some reason spell checker work without any issues all is happy, however (which is a fresh install) does not have the spell check button.  I have red thru the thread and tried a few different items (copying spellcheck.js file) and it had no impact.

Anyone have any ideas :)

Offline Jay?

  • Semi-Newbie
  • *
  • Posts: 70
Re: Spell Check [Merged]
« Reply #182 on: May 24, 2006, 01:09:18 PM »
Now the bloody thing is working - no idea why!  Is there a lag on a system check it does or something?!

Offline jklapp

  • Semi-Newbie
  • *
  • Posts: 18
Re: Spell Check in more than one languages
« Reply #183 on: May 25, 2006, 09:29:18 PM »
I have pspell compiled to php and English spell check works fine.

How did you fix this?? I got the same problem

The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

abnormal program termination
Unhandled Error: E:\Program Files\Aspell\dict/en-only.rws: The file "E:\Program Files\Aspell\data/iso8859-1.dat" is not in the proper format.

I was told the problem is the dictionary files are windows-formatted (but need to be unix-formatted).