Re: [PHP] pspell dictionary issue

2005-12-21 Thread Adi
I found my problem...I was using:

pspell_new("en", "british");
pspell_new("en", "american");
pspell_new("en", "canadian");

and I should've been using:

pspell_new("en_GB", "british");
pspell_new("en_US", "american");
pspell_new("en_CA", "canadian");

if I want to use specific dictionaries in the english language. There is no
sign of this in the documentation; I stumbled upon this by chance...trying
everything to resolve my problem.

Take care...
Adam.


Re: [PHP] pspell dictionary issue

2005-12-20 Thread Adi
No sign of aspell packages on the machine...

Adam.

On 12/20/05, John Nichel <[EMAIL PROTECTED]> wrote:
>
> Adi wrote:
> > I am not on a RPM based system(running slackware)... I have aspell
> 0.60.4
>
> Okay, what I am asking is this:  I understand that you installed aspell
> from source.  However, it is quite possible that aspell already existed
> on your machine.  Slackware has a package management system.  Check that
> to see if a|pspell is also installed that way.  Basically, you may have
> two versions of a|pspell on your system which are conflicting with each
> other.
>
> --
> John C. Nichel IV
> Programmer/System Admin (ÜberGeek)
> Dot Com Holdings of Buffalo
> 716.856.9675
> [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Take care...
Adam


Re: [PHP] pspell dictionary issue

2005-12-20 Thread John Nichel

Adi wrote:

I am not on a RPM based system(running slackware)... I have aspell 0.60.4


Okay, what I am asking is this:  I understand that you installed aspell 
from source.  However, it is quite possible that aspell already existed 
on your machine.  Slackware has a package management system.  Check that 
to see if a|pspell is also installed that way.  Basically, you may have 
two versions of a|pspell on your system which are conflicting with each 
other.


--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] pspell dictionary issue

2005-12-20 Thread Adi
I am not on a RPM based system(running slackware)... I have aspell 0.60.4

Adam.


Re: [PHP] pspell dictionary issue

2005-12-20 Thread John Nichel

Adi wrote:

All the installs are from source...and aspell works just fine from
shell...its almost like pspell if defaulting to use the american dictionary.

Adam.



Did you check to see if your system has any of the spelling tools 
installed as a package also?  If you're on a RPM based system :


rpm -qa | grep [a\|p]spell

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] pspell dictionary issue

2005-12-20 Thread Adi
All the installs are from source...and aspell works just fine from
shell...its almost like pspell if defaulting to use the american dictionary.

Adam.


Re: [PHP] pspell dictionary issue

2005-12-20 Thread John Nichel

Adi wrote:

I am having a problem switching dictionaries from 'american', 'british' and
'canadian' English in pspell. Pspell seems to test everything against the
american dictionary for some reason. I tested aspell on command line and
worked fine if I supplied the dictionary I wanted to use with the –d option.
Below is some basic code I used to test this in php:



";

   }

} else {

   echo "All good";

}

?>



The output was "All good" instead of a list of suggestions. Also, when I
tested the string "colour" with pspell_new("en", "american"); pspell
accepted the spelling…aspell on the other hand worked as expected in shell.



Any suggestions would be much appreciated.


I had a problem similiar to this a couple of years ago; don't know if 
this will help, but  How is your version of php installed (from 
source, RPM, another package?)  If you installed php/aspell from source, 
check to see if your system also has aspell installed as an RPM (or 
other package).


--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] pspell dictionary issue

2005-12-19 Thread Adi
I am having a problem switching dictionaries from 'american', 'british' and
'canadian' English in pspell. Pspell seems to test everything against the
american dictionary for some reason. I tested aspell on command line and
worked fine if I supplied the dictionary I wanted to use with the –d option.
Below is some basic code I used to test this in php:



";

   }

} else {

   echo "All good";

}

?>



The output was "All good" instead of a list of suggestions. Also, when I
tested the string "colour" with pspell_new("en", "american"); pspell
accepted the spelling…aspell on the other hand worked as expected in shell.



Any suggestions would be much appreciated.


Re: [PHP] pspell dictionary

2001-07-03 Thread Aaron McBride

Ok, I got it to find the word list by copying en-aspell.pwli from 
/usr/share/pspell/ to ./usr/local/share/pspell/ go figure. Unfortunately, 
that didn't fix all of the problems. Now I get the following error message:
Warning: PSPELL couldn't open the dictionary. reason: Unable to load the 
"aspell" module.

I didn't configure php --with-aspell because it would always crash if I did 
that. Do I need aspell support in php to use pspell?

I'm not sure what the problem is. If anyone has solved this before, please 
let me know.
-Aaron


At 11:48 AM 7/3/2001 -0700, Aaron McBride wrote:
>I've just installed php with support for pspell. Pspell and aspell 
>installed fine, and I even have a bunch of .pwli files.
>
>Problem is that when I do:
>$pspell_link = pspell_new ("en");
>
>I get this error:
>Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't 
>find any suitable word lists for the language-tag "en".
>
>Somebody please help me!
>
>-Aaron
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] pspell dictionary

2001-07-03 Thread Aaron McBride

I've just installed php with support for pspell. Pspell and aspell 
installed fine, and I even have a bunch of .pwli files.

Problem is that when I do:
$pspell_link = pspell_new ("en");

I get this error:
Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't 
find any suitable word lists for the language-tag "en".

Somebody please help me!

-Aaron


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]