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

>This is with the bundled library with PHP i.e. php_pspell.dll on
Windows. 
>So is that not a PHP problem?
In the previous post you said you also tested in on Linux (but didn't
say what was the result).


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

[2007-03-12 13:49:26] david at mytton dot net

This is with the bundled library with PHP i.e. php_pspell.dll on
Windows. So is that not a PHP problem?

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

[2007-03-12 09:41:06] [EMAIL PROTECTED]

So why is that PHP problem?
You pspell doesn't use your custom dictionary, I don't think PHP can
fix it.

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

[2007-03-10 20:05:05] david at mytton dot net

I tested the code on another XP computer and also on my Linux server,
all with PHP 5.2.1 and it doesn't seem to work (even with full
permissions).

<?php
$spelling = pspell_new_personal('/home/site/public_html/custom.dict',
'en');          
$suggestions = pspell_suggest($spelling, 'bloomsbur');
echo '<pre>'; print_r($suggestions); '</pre>';
?>

[EMAIL PROTECTED] [/home/site/public_html]# ls -al
...
-rwxrwxrwx   1 site site    32 Mar 10 19:57 custom.dict*
...

Output:
Array
(
    [0] => blooms bur
    [1] => blooms-bur
    [2] => blooms
    [3] => Bloom's
    [4] => bloom's
    [5] => bloomers
    [6] => Bloomer
    [7] => bloomer
)

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

[2007-03-10 00:11:03] [EMAIL PROTECTED]

Works perfectly fine here, on Linux.
<?php
$spelling = pspell_new_personal('/tmp/.aspell.en.pws', 'en');
$suggestions = pspell_suggest($spelling, 'bloomsbur');
var_dump(print_r($suggestions));
?>
Array
(
    [0] => blooms bur
    [1] => blooms-bur
    [2] => Bloomsbury
    [3] => bloomsbury <--------
    [4] => blooms
    [5] => Bloom's
    [6] => bloom's
)
bool(true)


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

[2007-03-09 19:23:31] david at mytton dot net

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.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/40759

-- 
Edit this bug report at http://bugs.php.net/?id=40759&edit=1

Reply via email to