Ask a Question related to PHP Bugs, Design and Development.
-
david at mytton dot net #1
#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: pspell_new_personsal does not load custom dictionary
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 bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40759&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40759&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40759&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40759&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40759&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40759&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40759&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40759&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40759&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40759&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40759&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40759&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40759&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40759&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40759&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40759&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40759&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40759&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40759&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40759&r=mysqlcfg[/url]
david at mytton dot net Guest
-
#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... -
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... -
tony2001@php.net #2
#40759 [Opn->Fbk]: pspell_new_personal does not load custom dictionary
ID: 40759
Updated by: [email]tony2001@php.net[/email]
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:
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.
Previous Comments:
------------------------------------------------------------------------
[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
[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]
tony2001@php.net Guest
-
david at mytton dot net #3
#40759 [Fbk->Opn]: pspell_new_personal does not load custom dictionary
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
[url]http://ftp.gnu.org/gnu/aspell/w32/Aspell-en-0.50-2-3.exe[/url]. I included my
custom dictionary at the bottom of the reproduce code.
Previous Comments:
------------------------------------------------------------------------
[2007-03-09 10:34:36] [email]tony2001@php.net[/email]
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
[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
-
tony2001@php.net #4
#40759 [Opn->Fbk]: pspell_new_personal does not load custom dictionary
ID: 40759
Updated by: [email]tony2001@php.net[/email]
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:
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)
Previous Comments:
------------------------------------------------------------------------
[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
[url]http://ftp.gnu.org/gnu/aspell/w32/Aspell-en-0.50-2-3.exe[/url]. I included my
custom dictionary at the bottom of the reproduce code.
------------------------------------------------------------------------
[2007-03-09 10:34:36] [email]tony2001@php.net[/email]
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
[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]
tony2001@php.net Guest
-
david at mytton dot net #5
#40759 [Fbk->Opn]: pspell_new_personal does not load custom dictionary
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:
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>';
?>
david@server1 [/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
)
Previous Comments:
------------------------------------------------------------------------
[2007-03-10 00:11:03] [email]tony2001@php.net[/email]
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
[url]http://ftp.gnu.org/gnu/aspell/w32/Aspell-en-0.50-2-3.exe[/url]. I included my
custom dictionary at the bottom of the reproduce code.
------------------------------------------------------------------------
[2007-03-09 10:34:36] [email]tony2001@php.net[/email]
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
[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
-
tony2001@php.net #6
#40759 [Opn->Fbk]: pspell_new_personal does not load custom dictionary
ID: 40759
Updated by: [email]tony2001@php.net[/email]
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:
So why is that PHP problem?
You pspell doesn't use your custom dictionary, I don't think PHP can
fix it.
Previous Comments:
------------------------------------------------------------------------
[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>';
?>
david@server1 [/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]tony2001@php.net[/email]
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
[url]http://ftp.gnu.org/gnu/aspell/w32/Aspell-en-0.50-2-3.exe[/url]. I included my
custom dictionary at the bottom of the reproduce code.
------------------------------------------------------------------------
[2007-03-09 10:34:36] [email]tony2001@php.net[/email]
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
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
tony2001@php.net Guest
-
david at mytton dot net #7
#40759 [Fbk->Opn]: pspell_new_personal does not load custom dictionary
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:
This is with the bundled library with PHP i.e. php_pspell.dll on
Windows. So is that not a PHP problem?
Previous Comments:
------------------------------------------------------------------------
[2007-03-12 09:41:06] [email]tony2001@php.net[/email]
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>';
?>
david@server1 [/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]tony2001@php.net[/email]
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
[url]http://ftp.gnu.org/gnu/aspell/w32/Aspell-en-0.50-2-3.exe[/url]. I included my
custom dictionary at the bottom of the reproduce code.
------------------------------------------------------------------------
[2007-03-09 10:34:36] [email]tony2001@php.net[/email]
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.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
david at mytton dot net Guest
-
tony2001@php.net #8
#40759 [Opn->Fbk]: pspell_new_personal does not load custom dictionary
ID: 40759
Updated by: [email]tony2001@php.net[/email]
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:
Windows.>This is with the bundled library with PHP i.e. php_pspell.dll onIn the previous post you said you also tested in on Linux (but didn't>So is that not a PHP problem?
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]tony2001@php.net[/email]
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>';
?>
david@server1 [/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]tony2001@php.net[/email]
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
[url]http://ftp.gnu.org/gnu/aspell/w32/Aspell-en-0.50-2-3.exe[/url]. 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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
tony2001@php.net Guest
-
david at mytton dot net #9
#40759 [Fbk->Opn]: pspell_new_personal does not load custom dictionary
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:
In my comment 10 Mar 8:05pm UTC this is the test on Linux with the
output i.e. it is the same result as on Windows - not working.
Previous Comments:
------------------------------------------------------------------------
[2007-03-12 13:55:11] [email]tony2001@php.net[/email]
Windows.>This is with the bundled library with PHP i.e. php_pspell.dll onIn the previous post you said you also tested in on Linux (but didn't>So is that not a PHP problem?
say what was the result).
------------------------------------------------------------------------
[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]tony2001@php.net[/email]
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>';
?>
david@server1 [/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]tony2001@php.net[/email]
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)
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
david at mytton dot net Guest
-
tony2001@php.net #10
#40759 [Opn->Fbk]: pspell_new_personal does not load custom dictionary
ID: 40759
Updated by: [email]tony2001@php.net[/email]
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:
What Pspell/Aspell version are you using?
Previous Comments:
------------------------------------------------------------------------
[2007-03-12 18:44:16] david at mytton dot net
In my comment 10 Mar 8:05pm UTC this is the test on Linux with the
output i.e. it is the same result as on Windows - not working.
------------------------------------------------------------------------
[2007-03-12 13:55:11] [email]tony2001@php.net[/email]
Windows.>This is with the bundled library with PHP i.e. php_pspell.dll onIn the previous post you said you also tested in on Linux (but didn't>So is that not a PHP problem?
say what was the result).
------------------------------------------------------------------------
[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]tony2001@php.net[/email]
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>';
?>
david@server1 [/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
)
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
tony2001@php.net Guest
-
david at mytton dot net #11
#40759 [Fbk->Opn]: pspell_new_personal does not load custom dictionary
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:
Windows:
Aspell-0.50-3
Aspell-en-0.50-2
Linux:
International Ispell Version 3.1.20 (but really Aspell 0.50.3)
Previous Comments:
------------------------------------------------------------------------
[2007-03-12 18:50:34] [email]tony2001@php.net[/email]
What Pspell/Aspell version are you using?
------------------------------------------------------------------------
[2007-03-12 18:44:16] david at mytton dot net
In my comment 10 Mar 8:05pm UTC this is the test on Linux with the
output i.e. it is the same result as on Windows - not working.
------------------------------------------------------------------------
[2007-03-12 13:55:11] [email]tony2001@php.net[/email]
Windows.>This is with the bundled library with PHP i.e. php_pspell.dll onIn the previous post you said you also tested in on Linux (but didn't>So is that not a PHP problem?
say what was the result).
------------------------------------------------------------------------
[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]tony2001@php.net[/email]
So why is that PHP problem?
You pspell doesn't use your custom dictionary, I don't think PHP can
fix it.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
david at mytton dot net Guest
-
tony2001@php.net #12
#40759 [Opn->Fbk]: pspell_new_personal does not load custom dictionary
ID: 40759
Updated by: [email]tony2001@php.net[/email]
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:
Try to update it to the latest stable version and see if this fixes the
problem.
Previous Comments:
------------------------------------------------------------------------
[2007-03-12 18:54:36] david at mytton dot net
Windows:
Aspell-0.50-3
Aspell-en-0.50-2
Linux:
International Ispell Version 3.1.20 (but really Aspell 0.50.3)
------------------------------------------------------------------------
[2007-03-12 18:50:34] [email]tony2001@php.net[/email]
What Pspell/Aspell version are you using?
------------------------------------------------------------------------
[2007-03-12 18:44:16] david at mytton dot net
In my comment 10 Mar 8:05pm UTC this is the test on Linux with the
output i.e. it is the same result as on Windows - not working.
------------------------------------------------------------------------
[2007-03-12 13:55:11] [email]tony2001@php.net[/email]
Windows.>This is with the bundled library with PHP i.e. php_pspell.dll onIn the previous post you said you also tested in on Linux (but didn't>So is that not a PHP problem?
say what was the result).
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
tony2001@php.net Guest
-
david at mytton dot net #13
#40759 [Fbk->Opn]: pspell_new_personal does not load custom dictionary
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:
This is the latest Windows version.
Previous Comments:
------------------------------------------------------------------------
[2007-03-12 19:03:17] [email]tony2001@php.net[/email]
Try to update it to the latest stable version and see if this fixes the
problem.
------------------------------------------------------------------------
[2007-03-12 18:54:36] david at mytton dot net
Windows:
Aspell-0.50-3
Aspell-en-0.50-2
Linux:
International Ispell Version 3.1.20 (but really Aspell 0.50.3)
------------------------------------------------------------------------
[2007-03-12 18:50:34] [email]tony2001@php.net[/email]
What Pspell/Aspell version are you using?
------------------------------------------------------------------------
[2007-03-12 18:44:16] david at mytton dot net
In my comment 10 Mar 8:05pm UTC this is the test on Linux with the
output i.e. it is the same result as on Windows - not working.
------------------------------------------------------------------------
[2007-03-12 13:55:11] [email]tony2001@php.net[/email]
Windows.>This is with the bundled library with PHP i.e. php_pspell.dll onIn the previous post you said you also tested in on Linux (but didn't>So is that not a PHP problem?
say what was the result).
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
david at mytton dot net Guest
-
tony2001@php.net #14
#40759 [Opn->Fbk]: pspell_new_personal does not load custom dictionary
ID: 40759
Updated by: [email]tony2001@php.net[/email]
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:
I'm talking about Linux.
Previous Comments:
------------------------------------------------------------------------
[2007-03-12 19:42:06] david at mytton dot net
This is the latest Windows version.
------------------------------------------------------------------------
[2007-03-12 19:03:17] [email]tony2001@php.net[/email]
Try to update it to the latest stable version and see if this fixes the
problem.
------------------------------------------------------------------------
[2007-03-12 18:54:36] david at mytton dot net
Windows:
Aspell-0.50-3
Aspell-en-0.50-2
Linux:
International Ispell Version 3.1.20 (but really Aspell 0.50.3)
------------------------------------------------------------------------
[2007-03-12 18:50:34] [email]tony2001@php.net[/email]
What Pspell/Aspell version are you using?
------------------------------------------------------------------------
[2007-03-12 18:44:16] david at mytton dot net
In my comment 10 Mar 8:05pm UTC this is the test on Linux with the
output i.e. it is the same result as on Windows - not working.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
tony2001@php.net Guest
-
tony2001@php.net #15
#40759 [Fbk->Bgs]: pspell_new_personal does not load custom dictionary
ID: 40759
Updated by: [email]tony2001@php.net[/email]
Reported By: david at mytton dot net
-Status: Feedback
+Status: Bogus
Bug Type: Pspell related
Operating System: Windows XP
PHP Version: 5.2.1
New Comment:
Not reproducible on Windows either.
Check your Aspell install and make sure the dictionary format is
correct.
Not PHP problem.
Previous Comments:
------------------------------------------------------------------------
[2007-03-12 19:50:15] [email]tony2001@php.net[/email]
I'm talking about Linux.
------------------------------------------------------------------------
[2007-03-12 19:42:06] david at mytton dot net
This is the latest Windows version.
------------------------------------------------------------------------
[2007-03-12 19:03:17] [email]tony2001@php.net[/email]
Try to update it to the latest stable version and see if this fixes the
problem.
------------------------------------------------------------------------
[2007-03-12 18:54:36] david at mytton dot net
Windows:
Aspell-0.50-3
Aspell-en-0.50-2
Linux:
International Ispell Version 3.1.20 (but really Aspell 0.50.3)
------------------------------------------------------------------------
[2007-03-12 18:50:34] [email]tony2001@php.net[/email]
What Pspell/Aspell version are you using?
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
tony2001@php.net Guest
-
david at mytton dot net #16
#40759 [Bgs->Opn]: pspell_new_personal does not load custom dictionary
ID: 40759
User updated by: david at mytton dot net
Reported By: david at mytton dot net
-Status: Bogus
+Status: Open
Bug Type: Pspell related
Operating System: Windows XP
PHP Version: 5.2.1
New Comment:
I reinstalled Aspell on Windows and am still unable to get it to pick
up the custom dictionary. The file format I am using is:
personal_ws-1.1 en 1
bloomsbury
in custom.dict with the code in my original description.
Previous Comments:
------------------------------------------------------------------------
[2007-03-13 11:04:52] [email]tony2001@php.net[/email]
Not reproducible on Windows either.
Check your Aspell install and make sure the dictionary format is
correct.
Not PHP problem.
------------------------------------------------------------------------
[2007-03-12 19:50:15] [email]tony2001@php.net[/email]
I'm talking about Linux.
------------------------------------------------------------------------
[2007-03-12 19:42:06] david at mytton dot net
This is the latest Windows version.
------------------------------------------------------------------------
[2007-03-12 19:03:17] [email]tony2001@php.net[/email]
Try to update it to the latest stable version and see if this fixes the
problem.
------------------------------------------------------------------------
[2007-03-12 18:54:36] david at mytton dot net
Windows:
Aspell-0.50-3
Aspell-en-0.50-2
Linux:
International Ispell Version 3.1.20 (but really Aspell 0.50.3)
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
david at mytton dot net Guest
-
tony2001@php.net #17
#40759 [Opn->Fbk]: pspell_new_personal does not load custom dictionary
ID: 40759
Updated by: [email]tony2001@php.net[/email]
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:
As I said, it works fine here both on Linux and Windows.
Previous Comments:
------------------------------------------------------------------------
[2007-03-13 15:28:41] david at mytton dot net
I reinstalled Aspell on Windows and am still unable to get it to pick
up the custom dictionary. The file format I am using is:
personal_ws-1.1 en 1
bloomsbury
in custom.dict with the code in my original description.
------------------------------------------------------------------------
[2007-03-13 11:04:52] [email]tony2001@php.net[/email]
Not reproducible on Windows either.
Check your Aspell install and make sure the dictionary format is
correct.
Not PHP problem.
------------------------------------------------------------------------
[2007-03-12 19:50:15] [email]tony2001@php.net[/email]
I'm talking about Linux.
------------------------------------------------------------------------
[2007-03-12 19:42:06] david at mytton dot net
This is the latest Windows version.
------------------------------------------------------------------------
[2007-03-12 19:03:17] [email]tony2001@php.net[/email]
Try to update it to the latest stable version and see if this fixes the
problem.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
tony2001@php.net Guest
-
david at mytton dot net #18
#40759 [Fbk->Opn]: pspell_new_personal does not load custom dictionary
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:
Yeah. So how can we go about fixing this? The pspell_new_personal()
function doesn't seem to return any kind of error even if the personal
dictionary path provided doesn't exist (error reporting all on etc). Is
your personal dictionary in the same format as mine?
custom.dict:
personal_ws-1.1 en 1
bloomsbury
Previous Comments:
------------------------------------------------------------------------
[2007-03-13 15:45:20] [email]tony2001@php.net[/email]
As I said, it works fine here both on Linux and Windows.
------------------------------------------------------------------------
[2007-03-13 15:28:41] david at mytton dot net
I reinstalled Aspell on Windows and am still unable to get it to pick
up the custom dictionary. The file format I am using is:
personal_ws-1.1 en 1
bloomsbury
in custom.dict with the code in my original description.
------------------------------------------------------------------------
[2007-03-13 11:04:52] [email]tony2001@php.net[/email]
Not reproducible on Windows either.
Check your Aspell install and make sure the dictionary format is
correct.
Not PHP problem.
------------------------------------------------------------------------
[2007-03-12 19:50:15] [email]tony2001@php.net[/email]
I'm talking about Linux.
------------------------------------------------------------------------
[2007-03-12 19:42:06] david at mytton dot net
This is the latest Windows version.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
david at mytton dot net Guest
-
tony2001@php.net #19
#40759 [Opn->Fbk]: pspell_new_personal does not load custom dictionary
ID: 40759
Updated by: [email]tony2001@php.net[/email]
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:
First make sure it works for you using Aspell console utilities.>Yeah. So how can we go about fixing this?
It's a copy/paste.>Is your personal dictionary in the same format as mine?
Previous Comments:
------------------------------------------------------------------------
[2007-03-13 18:39:15] david at mytton dot net
Yeah. So how can we go about fixing this? The pspell_new_personal()
function doesn't seem to return any kind of error even if the personal
dictionary path provided doesn't exist (error reporting all on etc). Is
your personal dictionary in the same format as mine?
custom.dict:
personal_ws-1.1 en 1
bloomsbury
------------------------------------------------------------------------
[2007-03-13 15:45:20] [email]tony2001@php.net[/email]
As I said, it works fine here both on Linux and Windows.
------------------------------------------------------------------------
[2007-03-13 15:28:41] david at mytton dot net
I reinstalled Aspell on Windows and am still unable to get it to pick
up the custom dictionary. The file format I am using is:
personal_ws-1.1 en 1
bloomsbury
in custom.dict with the code in my original description.
------------------------------------------------------------------------
[2007-03-13 11:04:52] [email]tony2001@php.net[/email]
Not reproducible on Windows either.
Check your Aspell install and make sure the dictionary format is
correct.
Not PHP problem.
------------------------------------------------------------------------
[2007-03-12 19:50:15] [email]tony2001@php.net[/email]
I'm talking about Linux.
------------------------------------------------------------------------
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
[url]http://bugs.php.net/40759[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=40759&edit=1[/url]
tony2001@php.net Guest



Reply With Quote

