Re: PSPELL with PHP

From: Date: Mon, 09 Jul 2001 17:20:39 +0000
Subject: Re: PSPELL with PHP
References: 1 2 3 4 5 6 7  Groups: php.dev 
Request: Send a blank email to php-dev+get-59359@lists.php.net to get a copy of this message
pspell-.12.2 ./configure --prefix=/usr/local/encap/aspell-33.6.3 --enable-ltdl-install aspell-.33.6.3 ./configure --prefix=/usr/local/encap/aspell-33.6.3 then I built php-4.0.6 ./configure --prefix=/usr/local/encap/php-4.0.6 --with-mysql=/usr/local/mysql --without-ttf --with-apache=../apache_1.3.19 --with-pspell=/usr/local/encap/asp ell-33.6.3 then I built apache Codeboy in message Re: [PHP-DEV] PSPELL with PHP (Thu, 07/05 16:57): > What versions of Aspell, Pspell & PHP were you using? Also what are you > configure lines for all three, and lastly what was your compile order? > > Thanks, > -Jonathan > > ----- Original Message ----- > From: "Lindsey Simon" <lsimon@auschron.com> > To: "Vlad Krupin" <vlad@php.net>; <php-dev@lists.php.net> > Sent: Thursday, July 05, 2001 4:05 PM > Subject: Re: [PHP-DEV] PSPELL with PHP > > > > > > Well, the mystery is solved. I was --with-php=/usr/local which is where my > package > > manager symlinks my installs to. Instead, once I compiled php with the > absolute > > prefix of aspell, with pspell installed in the same prefix, things seem to > be working > > fine. > > > > So now I'm working on some scripts and functions for a spellchecker. The > API is perfect > > for it, and I wonder why I don't see any finished versions out there.. Are > you working > > on one Vlad? I was really shocked by the lack of quality free > spellchecking > > applications for forms. In fact, every one I found was expensive and seems > unnecessary > > complicated to implement. > > > > Thanks for your help Vlad! > > -lindsey > > > > Vlad Krupin in message Re: [PHP-DEV] PSPELL with PHP (Tue, 07/03 15:18): > > > > > Please, tell me what > > > 1. your configure line is for php > > > 2. configure lines for aspell and pspell > > > 3. location of your dictionaries > > > > > > Another thing. You said: > > > > > > >I've created a file en-american.pwli in the > > > >pkgdata directory which points absolutely > > > >to a wordlist american-words.95. > > > > > > What's pkgdata? I have not heard of such a thing. And neither do I have > > > en-american.pwli on my system. On my system .pwli files are located in > > > /usr/local/share/pspell (default location) and the one you probably want > > > is called en-american-aspell.pwli with the record in it referencing > > > /usr/local/lib/aspell/american. Note the -aspell part of the filename. > > > Or file en-aspell.pwli that is used for straight (non-americanized) > > > English that references /usr/local/lib/aspell/english. BTW, this is the > > > library you used when running the test ./example-c from pspell. > > > > > > Anyways, rather than figuring out the mysteries of the spellchecker, it > > > is the easiest to do a default install of pspell and aspell, without > > > creating any new dictionaries by hand and all that kind of stuff. Once > > > you have this working with php, you can wonder off and do whatever > > > custom stuff you need.. > > > > > > Vlad > > > > > > > > > Lindsey Simon wrote: > > > > > > >Oddly, Pspell and Aspell seem to work properly, but the pspell_new > function can't load > > > >the "en" dict. in the pspell/examples dir I can run the ./example.c en > fine. > > > > > > > >I'm recompiling apache with php again right now to see if it may have > to do with the > > > >--with-pspell path I was giving. > > > >-l > > > > > > > >Justin Plock in message Re: [PHP-DEV] PSPELL with PHP (Tue, 07/03 > 16:29): > > > > > > > >>yea, I had a similiar problem trying to get this to work as well, > here's the > > > >>email i received from Vlad (author of the pspell php library) which > seemed > > > >>to work for me. (I was attempting to install both pspell and aspell > from the > > > >>freebsd ports tree). See if this gives any insight, hehe: > > > >> > > > > >>-------------------------------------------------------------------------- > -- > > > >>--- > > > >>I bet you did not run the 'add-modules' script. The steps to > > > >>properly > build > > > >>the thing are: > > > >>First, in pspell directory: > > > >> ./configure > > > >> make > > > >> make install > > > >> > > > >>Then, in aspell directory > > > >>./configure > > > >>make > > > >>make install > > > >> > > > >>Finally, go back to pspell directory and do > > > >>cd modules > > > >>./add-modules > > > >>cd .. > > > >>make > > > >>make install > > > >> > > > >>That last step is probably what you missed, at least, that gave me > similar > > > >>problems. Also, make sure that the directory where aspell and pspell > place > > > >>their shared files is amond the directories where your ldconfig will > look > > > >>into (I do not know how this is done in BSD) > > > >> > > > >>This solves the chicken-and-egg problem when you can't build aspell > without > > > >>having pspell in place, yet pspell needs to know that aspell (or > ispell) > > > >>exists to function properly. It is also described in pspell README. > > > > >>-------------------------------------------------------------------------- > -- > > > >>--- > > > >> > > > >>Hope that helps, > > > >> Justin. > > > >> > > > >> > > > >>----- Original Message ----- > > > >>From: "Lindsey Simon" <lsimon@auschron.com> > > > >>To: "Justin Plock" <jplock@bigfoot.com> > > > >>Sent: Tuesday, July 03, 2001 4:17 PM > > > >>Subject: Re: [PHP-DEV] PSPELL with PHP > > > >> > > > >> > > > >>>yeah, and pspell and aspell seem to be working fine. which is odd.. > > > >>> > > > >>>Justin Plock in message RE: [PHP-DEV] PSPELL with PHP (Tue, 07/03 > 10:42): > > > >>> > > > >>>>This message was sent from Geocrawler.com by "Justin Plock" > > > >>>> > > > >><jplock@bigfoot.com> > > > >> > > > >>>>Did you compile aspell into pspell? > > > >>>> > > > >>>>-Justin Plock > > > >>>> > > > >>>> > > > >>>>--------------------------------------- > > > >>>>I've just compiled and installed php-4.0.6 --with- > > > >>>>pspell support. However, > > > >>>>the pspell_new function gives me the following > > > >>>>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". > > > >>>> > > > >>>>the line causing the error reads: > > > >>>>$pspell_config = pspell_config_create > > > >>>>("en","american"); > > > >>>>$pspell_link = pspell_new_config($pspell_config); > > > >>>> > > > >>>> > > > >>>>I've created a file en-american.pwli in the > > > >>>>pkgdata directory which points absolutely > > > >>>>to a wordlist american-words.95. > > > >>>> > > > >>>>I've been unable to find much clear documentation > > > >>>>about the setup procedure for pspell > > > >>>>with php and I suspect I'm missing something > > > >>>>simple. Does anyone have a suggestion > > > >>>>that may help? > > > >>>> > > > >>>>-lindsey > > > >>>> > > > >>>> > > > >>>> > > > >>>>-- > > > >>>>PHP Development Mailing List > > > >>>><http://www.php.net/> > > > >>>>To unsubscribe, e-mail: php-dev- > > > >>>>unsubscribe@lists.php.net > > > >>>>For additional commands, e-mail: php-dev- > > > >>>>help@lists.php.net > > > >>>>To contact the list administrators, e-mail: php- > > > >>>>list-admin@lists.php.net > > > >>>> > > > >>>> > > > >>>> > > > >>>>Geocrawler.com - The Knowledge Archive > > > >>>> > > > > > > > > > > > > > > > > > > > -- > > > PHP Development Mailing List > > > <http://www.php.net/> > > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-dev-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > For additional commands, e-mail: php-dev-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#59359) next »