ID:               40759
 User updated by:  david at mytton dot net
 Reported By:      david at mytton dot net
-Status:           Feedback
+Status:           Open
 Bug Type:         Pspell related
 Operating System: Windows XP
 PHP Version:      5.2.1
 New Comment:

The pspell dictionary or my custom one? The pspell one is a standard
English dictionary downloaded from the Aspell website at
http://ftp.gnu.org/gnu/aspell/w32/Aspell-en-0.50-2-3.exe. I included my
custom dictionary at the bottom of the reproduce code.


Previous Comments:
------------------------------------------------------------------------

[2007-03-09 10:34:36] [EMAIL PROTECTED]

We'll also need your dictionary to investigate it.
Though I doubt it has something to do with PHP.
If pspell doesn't use your dictionary, it's hardly PHP problem.

------------------------------------------------------------------------

[2007-03-08 17:14:15] david at mytton dot net

Corrected typo in summary

------------------------------------------------------------------------

[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
http://snaps.php.net/win32/php5.2-win32-200703081530.zip

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 http://bugs.php.net/?id=40759&edit=1

Reply via email to