php-src/ext/pspell
Vlad Krupin 66ebc334d6 This should allow us to read dictionary locations from the win32 registry when we use a custom config.
Not doing so when I added win32 support was an oversight.
Now all pspell_new_* functions should be usable on win32.
2004-02-03 05:40:25 +00:00
..
tests Correct test to work with later versions of GNU Aspell (more common). 2003-08-09 18:40:40 +00:00
config.m4 Cosmetic note 2003-08-09 18:43:45 +00:00
config.w32 glob-ify lib checks; this simplifies writing of config.w32 files a little. 2004-01-07 20:06:32 +00:00
CREDITS Added myself to CREDITS (vlad) 2001-02-05 19:18:04 +00:00
php_pspell.h - Happy new year and PHP 5 for rest of the files too.. 2004-01-08 17:33:29 +00:00
pspell.c This should allow us to read dictionary locations from the win32 registry when we use a custom config. 2004-02-03 05:40:25 +00:00
pspell.dsp - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
README - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00

README file for pspell (spellchecker) module for PHP
----------------------------------------------------

The latest release of pspell is always available from

  http://pspell.sourceforge.net/

This module was developed and tested with aspell-.31.1 and pspell-.11.0.2,
although slightly earlier (and hopefully later) versions of those libraries
should work as well.

General notes
-------------

Please, note that somewhere around version .27.x (I believe) aspell stopped
working with the aspell module for php. This is due to the fact that the
author changed things around a bit, and suggested that people link to pspell
in the future rather than to aspell. That's exactly what this module is for.
It has the same basic functionality as aspell (and more features are being
added). I did not want to modify existing aspell module, because it would
break things for those who are using older aspell, or result in very ugly code.
Rather, I wrote a new module - pspell.


Building pspell on a Unix system
--------------------------------

In order to use pspell, you need to have *both* aspell and pspell libraries
installed, and they have to be compatible with each other. Get the latest
release of both at the URL given above.

I expect the libraries to be in /usr/local (that's the default when you
cofigure pspell and aspell with their 'configure' scripts woth no parameters).
If that location is different, please specify it in --with-pspell=PATH, where
PATH is the path you specified for pspell libraries.

Notes on personalized dictionaries
----------------------------------

It is now possible to have personalized dictionaries with pspell. This is
achieved by opening a dictionary with pspell_new_personal() rather than
pspell_new() and specifying the custom dictionary as the first parameter.
The parameter probably should begin with '/' because otherwise it will
be relative to $HOME, which is probably set to "/root". This is probably not
what you want because you need write access for nobody to be able to write
to a dictionary. Once the dictionary is open, you can use 
pspell_add_to_personal() to add words to the wordlist and finally 
pspell_save_wordlist() to save it. 

Note that at this moment pspell_save_wordlist() will return TRUE, even if
there was an error. This will be changed once pspell library is fixed.