From: Vlad Krupin Date: Tue, 8 Aug 2000 19:23:35 +0000 (+0000) Subject: Added instructions on how to use personalized dictionaries X-Git-Tag: php-4.0.2RC1~184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=831e15d0d1842611dbd70400b07291eecd543746;p=php Added instructions on how to use personalized dictionaries --- diff --git a/ext/pspell/README b/ext/pspell/README index fb4289a509..9d1c0b9175 100644 --- a/ext/pspell/README +++ b/ext/pspell/README @@ -33,3 +33,19 @@ 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 +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