PHP 4.3.4, aspell-0.50.3-16 creating and using specialised dictionary
| From: | Owen Williams | Date: | Wed, 17 Mar 2004 10:35:35 +0000 |
| Subject: | PHP 4.3.4, aspell-0.50.3-16 creating and using specialised dictionary | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180662@lists.php.net to get a copy of this message | ||
Hello,
I want to use spell checking and suggestions in PHP but with only
one dictionary, one I've created.
The dictionary I've created is called 'en_GB-modules.rws'. I wanted
to call it 'li_GB-modules.rws'. 'li' meaning library. I
didn't get anywhere with it in PHP but in one iteration I coulddo
something like:
echo frink|aspell --lang=li_GB-modules -a -b
and get a result.
I created my dictionary like this:
aspell --lang=en create master en_GB-modules.rws <modules.words
I can now use my dictionary but only if it is part of 'en.multi'
and use:
$this->pspell = pspell_new("en");
this includes the other 'en' dictionaries on the system which of course I
don't want to remove.
What am I doing wrong?
Thanks for any help,
Owen.