#40759 [NEW]: pspell_new_personsal does not load custom dictionary

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #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

  2. Similar Questions and Discussions

    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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default #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

  4. #3

    Default #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

  5. #4

    Default #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

  6. #5

    Default #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

  7. #6

    Default #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

  8. #7

    Default #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

  9. #8

    Default #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:
    >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]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

  10. #9

    Default #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]
    >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).

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

    [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

  11. #10

    Default #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]
    >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).

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

    [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

  12. #11

    Default #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]
    >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).

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

    [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

  13. #12

    Default #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]
    >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).

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

    [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

  14. #13

    Default #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]
    >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).

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

    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

  15. #14

    Default #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

  16. #15

    Default #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

  17. #16

    Default #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

  18. #17

    Default #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

  19. #18

    Default #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

  20. #19

    Default #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:
    >Yeah. So how can we go about fixing this?
    First make sure it works for you using Aspell console utilities.
    >Is your personal dictionary in the same format as mine?
    It's a copy/paste.


    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139