Re: [PHP-DEV] PSPELL with PHP
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 [EMAIL PROTECTED] To: Vlad Krupin [EMAIL PROTECTED]; [EMAIL PROTECTED] 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 [EMAIL PROTECTED] To: Justin Plock [EMAIL PROTECTED] 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
Re: [PHP-DEV] PSPELL with PHP
? Finished versions of what? I wrote support for pspell library, it has most of the functionality pspell provides. If you need anything else that pspell can provide but I have not implemented, write to me and I'll try to implement it. By the way, I do not work on development of pspell itself...:( Oh really all I meant was an application that actually spellchecks things in succesion, like in Word, btu on an HTML page. Basically, you've provided all the hooks necessary so I was just surprised that I hadn't yet found a mechanism yet, but once I've tested mine I'll let you know... -- PHP Development 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]
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 [EMAIL PROTECTED] To: Justin Plock [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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- [EMAIL PROTECTED
Re: [PHP-DEV] PSPELL with PHP
Glad it worked for you (finally) Lindsey Simon wrote: snip 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 ? Finished versions of what? I wrote support for pspell library, it has most of the functionality pspell provides. If you need anything else that pspell can provide but I have not implemented, write to me and I'll try to implement it. By the way, I do not work on development of pspell itself...:( Vlad -- PHP Development 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]
Re: [PHP-DEV] PSPELL with PHP
quite likely you missed something simple. Can you do the following? 1. go into pspell/example directory 2. do 'make example-c 3. do 'su nobody' 4. run './example-c en' (or whichever language you use) 5. try to spellcheck a word, e.g. 's helllo' And see what happens. If this does not succeed, you probably did not install pspell or aspell correctly. Otherwise we'll have to do some more problem hunting. I never really tried to do anything more than just a basic install of the spellchecker (e.g. different dictionaries, languages, etc.), so I might be able to help you a bit if it is not installed correctly, but not much. Vlad Lindsey Simon wrote: 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] PSPELL with PHP
Seems to work correctly in the examples. I tried a few words and things seemed to go well.. So I'm guessing it was able to load the dictionary, though from the php API it still can't. hmm... -l Vlad Krupin in message Re: [PHP-DEV] PSPELL with PHP (Tue, 07/03 10:13): quite likely you missed something simple. Can you do the following? 1. go into pspell/example directory 2. do 'make example-c 3. do 'su nobody' 4. run './example-c en' (or whichever language you use) 5. try to spellcheck a word, e.g. 's helllo' And see what happens. If this does not succeed, you probably did not install pspell or aspell correctly. Otherwise we'll have to do some more problem hunting. I never really tried to do anything more than just a basic install of the spellchecker (e.g. different dictionaries, languages, etc.), so I might be able to help you a bit if it is not installed correctly, but not much. Vlad Lindsey Simon wrote: 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development 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]
Re: [PHP-DEV] PSPELL with PHP
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 [EMAIL PROTECTED] To: Justin Plock [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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- [EMAIL PROTECTED] For additional commands, e-mail: php-dev- [EMAIL PROTECTED] To contact the list administrators, e-mail: php- [EMAIL PROTECTED] Geocrawler.com - The Knowledge Archive -- PHP Development 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]
Re: [PHP-DEV] PSPELL with PHP
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 [EMAIL PROTECTED] To: Justin Plock [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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- [EMAIL PROTECTED] For additional commands, e-mail: php-dev- [EMAIL PROTECTED] To contact the list administrators, e-mail: php- [EMAIL PROTECTED] Geocrawler.com - The Knowledge Archive -- PHP Development 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]