cvs: php4 /ext/pspell README

From: Date: Tue, 08 Aug 2000 19:23:35 +0000
Subject: cvs: php4 /ext/pspell README
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1106@lists.php.net to get a copy of this message
vlad Tue Aug 8 12:23:35 2000 EDT Modified files: /php4/ext/pspell README Log: Added instructions on how to use personalized dictionaries Index: php4/ext/pspell/README diff -u php4/ext/pspell/README:1.2 php4/ext/pspell/README:1.3 --- php4/ext/pspell/README:1.2 Thu Jul 13 13:39:14 2000 +++ php4/ext/pspell/README Tue Aug 8 12:23:35 2000 @@ -33,3 +33,19 @@ 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 +acheived by openeing a dictionary with pspell_new_personal() rather than +pspell_new() and secifying the custom dictionary as the first parameter. +The parameter probably should begin with '/' because otherwise it will +refer to $HOME, which is probably set to "/root", which 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. \ No newline at end of file

« previous php.cvs (#1106) next »