Ask a Question related to PHP Bugs, Design and Development.
-
david at mytton dot net #1
#40759 [Opn]: pspell_new_personal does not load custom dictionary
ID: 40759
User updated by: david at mytton dot net
-Summary: pspell_new_personsal does not load custom dictionary
Reported By: david at mytton dot net
Status: Open
Bug Type: Pspell related
Operating System: Windows XP
PHP Version: 5.2.1
New Comment:
Corrected typo in summary
Previous Comments:
------------------------------------------------------------------------
[2007-03-08 17:13:40] david at mytton dot net
Description:
------------
The personal dictionary does not appear to be used when asking pspell
for suggestions.
The same result occurs whether or not custom.dict actually exists. E.g.
if I change the filename to customdict no error is output and the output
is the same.
I tried this with the latest php_pspell.dll from
[url]http://snaps.php.net/win32/php5.2-win32-200703081530.zip[/url]
Reproduce code:
---------------
<?php
$spelling = pspell_new_personal('C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\custom.dict', 'en');
$suggestions = pspell_suggest($spelling, 'bloomsbur');
echo '<pre>'; print_r($suggestions); '</pre>';
?>
custom.dict:
personal_ws-1.1 en 1
bloomsbury
Expected result:
----------------
Array of suggestions including bloomsbury in the suggestions.
Actual result:
--------------
bloomsbury is not in the suggestions list:
Array
(
[0] => blooms bur
[1] => blooms-bur
[2] => blooms
[3] => Bloom's
[4] => bloom's
[5] => bloomers
[6] => Bloomer
[7] => bloomer
)
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
david at mytton dot net Guest
-
#40759 [NEW]: pspell_new_personsal does not load custom dictionary
From: david at mytton dot net Operating system: Windows XP PHP version: 5.2.1 PHP Bug Type: Pspell related Bug description: ... -
Persisting custom dictionary property
I have a custom ASP control (an extension of DataSourceControl) that contains a custom property, which contains a custom dictionary property. I... -
load custom components from app directory not workingfms2.0 trial
I spent 2 years developing apps for flashcom now I have a problem. Previous versions allowed me to use my custom components for each indivdual... -
Unable to load custom control in Toolbox
Hi, I have built a set of custom ASP.Net contols quite some time ago (in VB) and successfully placed them on the Toolbox. Since then I have... -
Export/Import custom dictionary
How do I export a dictionary full of added words, from ID 2, so I can use it on my laptop? --I searched the forum (PITA) dug through help and the...



Reply With Quote

