note 56545 added to ref.pspell
| From: | pavic at ieee dot org | Date: | Tue, 06 Sep 2005 20:11:56 +0000 |
| Subject: | note 56545 added to ref.pspell | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94833@lists.php.net to get a copy of this message | ||
In order to make pspell work under win32 I tried everything.
there is a good tutorial at:
http://www.oblius.com/?.blogs.184
Once you have completed everything from there, add this for link creation in your scripts:
//configuration if user has win32/64
$sys="win"; //or unix
//if win32 is enabled, then fill this variable: (set this to fit your path)
$dict_path="C:/Program Files (x86)/aspell/dict/en-only.rws";
if ($sys=="unix") {
$pspell_config = pspell_config_create("en");
pspell_config_mode($pspell_config, PSPELL_FAST);
$pspell_link = pspell_new_config($pspell_config);
}
else {
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, $dict_path);
$pspell_link = pspell_new_personal($pspell_config, "en");
}
That would be all!
----
Manual Page -- http://www.php.net/manual/en/ref.pspell.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56545
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56545&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56545&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56545&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56545&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56545&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56545&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56545&report=yes
Search -- http://master.php.net/manage/user-notes.php