summaryrefslogtreecommitdiff
path: root/ext/pspell
diff options
context:
space:
mode:
authorVlad Krupin <vlad@php.net>2000-08-08 19:23:35 +0000
committerVlad Krupin <vlad@php.net>2000-08-08 19:23:35 +0000
commit831e15d0d1842611dbd70400b07291eecd543746 (patch)
treef32d66d61b44e7a1ba0c17e2523a75e291f6c597 /ext/pspell
parenta2cdb7726f9a247a36c2e4da5359469e1f3fbcbb (diff)
downloadphp-git-831e15d0d1842611dbd70400b07291eecd543746.tar.gz
Added instructions on how to use personalized dictionaries
Diffstat (limited to 'ext/pspell')
-rw-r--r--ext/pspell/README16
1 files changed, 16 insertions, 0 deletions
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