Re: PSPELL with PHP
| From: | Vlad Krupin | Date: | Tue, 03 Jul 2001 17:13:40 +0000 |
| Subject: | Re: PSPELL with PHP | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-58804@lists.php.net to get a copy of this message | ||
quite likely you missed something simple. Can you do the following?
1. go into pspell/example directory
2. do 'make example-c
3. do 'su nobody'
4. run './example-c en' (or whichever language you use)
5. try to spellcheck a word, e.g. 's helllo'
And see what happens. If this does not succeed, you probably did not install pspell or aspell correctly. Otherwise we'll have to do some more problem hunting.
I never really tried to do anything more than just a basic install of the spellchecker (e.g. different dictionaries, languages, etc.), so I might be able to help you a bit if it is not installed correctly, but not much.
Vlad
Lindsey Simon wrote:
I've just compiled and installed php-4.0.6 --with-pspell support. However, the pspell_new function gives me 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 "en". the line causing the error reads: $pspell_config = pspell_config_create ("en","american"); $pspell_link = pspell_new_config($pspell_config); I've created a file en-american.pwli in the pkgdata directory which points absolutely to a wordlist american-words.95. I've been unable to find much clear documentation about the setup procedure for pspell with php and I suspect I'm missing something simple. Does anyone have a suggestion that may help? -lindsey