[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    [aspell-user] Pspell/Aspell and PHP == Frustration
From:       Joe Stump <joe () joestump ! net>
Date:       2002-04-25 19:40:02
Message-ID: 20020425215348.B7655 () zorka ! com
[Download RAW message or body]


Ok. I've installed aspell .33.7.1 and pspell .12.1 with PHP 4.1.2. I downloaded
an english dictionary and installed it. My /usr/share/aspell dir looks like
this:

ASCII.dat                    en.dat              iso8859-3.dat  iso8859-8.map
ASCII.map                    en_phonet.dat       iso8859-3.map  iso8859-9.dat
SGML.map                     english.dat         iso8859-4.dat  iso8859-9.map
dvorak.kbd                   english_phonet.dat  iso8859-4.map  ispell
en-american-aspell.pwli      german.dat          iso8859-5.dat  koi8-f.dat
en-american-med-aspell.pwli  iso8859-1.dat       iso8859-5.map  koi8-r.dat
en-aspell.pwli               iso8859-1.map       iso8859-6.dat  spell
en-british-aspell.pwli       iso8859-10.dat      iso8859-6.map  standard.kbd
en-british-med-aspell.pwli   iso8859-10.map      iso8859-7.dat  unicode.dat
en-canadian-aspell.pwli      iso8859-2.dat       iso8859-7.map  viscii.dat
en-canadian-med-aspell.pwli  iso8859-2.map       iso8859-8.dat  viscii.map

My /usr/local/share/aspell (and pspell) are links to their counterparts in
/usr/share (to keep things tidy) - here is my /usr/share/pspell dir:

cp1252.map      iso8859-14.map  iso8859-4.map  iso8859-8.map           viscii.map
iso8859-1.map   iso8859-15.map  iso8859-5.map  iso8859-9.map
iso8859-10.map  iso8859-2.map   iso8859-6.map  koi8-r.map
iso8859-13.map  iso8859-3.map   iso8859-7.map  region-to-spelling.map

Now pspell compiled into php fine with --with-pspell. My problem is this:

Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any \
suitable word lists for the language-tag "en". in /home/jstump/public_html/pspell.php \
on line 3

Here is the script:

<?

  $pspell_link = pspell_new('en');
  echo 'foo';

?>

How/where do I put dictionaries? How do I install them? I need help!

--Joe

Joe Stump <joe@joestump.net>
------------------------------------------------------------------------
"UNIX was not designed to stop you from doing stupid things, because 
 that would also stop you from doing clever things."


[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic