Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Mod Requests and Support  ›  Spell Checker Support Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 1 Guests

Spell Checker Support  This thread currently has 2,521 views. Print
3 Pages « 1 2 3 » Recommend Thread
SonnyZA
June 13, 2005, 6:16pm Report to Moderator Report to Moderator

Free E-Blah Forum Hosting
Posts: 706
Gender: Male
Posts Per Day: 0.50
Reputation: 87.50%
Reputation Score: +14 / -2
Time Online: 6 days 13 hours 59 minutes
Location: South-Africa
Age: 38
Yay! pretty sweet hey? This warlock is one piece of work. Yup I like this too....not err *cough* that I need a spel cecker........


http://wynand.za.net My full life story and pics.
http://getaweb.za.net What I do.
http://www.share.za.org My Forum: General Chat
http://www.forums.za.org Free Pre-installed E-Blah Boards
http://www.discover.za.net Free and Low Cost Web Hosting


Logged Offline
Site Site Private Message Private message Reply: 15 - 30
user
June 13, 2005, 6:46pm Report to Moderator Report to Moderator

confusion is healthy
Posts: 142
Gender: Male
Posts Per Day: 0.10
Reputation: 90.91%
Reputation Score: +10 / -1
Time Online: 1 days 6 hours 48 minutes
Location: Eugene, Oregon
Age: 52
I think I've noticed some server overloads since you started using it.  


--
freeman

"As far as the laws of mathematics refer to reality, they are not certain, as far as they are certain, they do not refer to reality." --Einstein

Feel free to increase my reputation.
Logged Offline
Site Site Private Message Private message Reply: 16 - 30
cjflory
June 15, 2005, 12:59am Report to Moderator Report to Moderator
E-Blah Member
Posts: 10
Posts Per Day: 0.01
Time Online: 4 hours 57 minutes
I am having a lhttp://www.eblah.com/blahdocs/images/code.gif
Insert Codeot of trouble getting ths to work correctly.  I think the problem is in this part of the 'spellchecker.pl' file:   use File::Temp qw/ tempfile tempdir /;

I have 'Aspell' installed, and configured (i think).

Here is the error message I am getting:

Quoted Text
Could not execute 'c:/aspell/bin/aspell.exe -a --lang=en <C:WINDOWSTEMPLIYZXuIHetNsOVTTjiY7 2>&1'

Bad file descriptor
Logged Offline
Private Message Private message Reply: 17 - 30
Martin
June 15, 2005, 1:51am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.16
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 17 minutes
Location: UK
Age: 50
Are you able to verify that a temp files such as \LIYZXuIHetNsOVTTjiY7 is being created? You might need to temporarilty modify the line in the perl script:

my $dir = tempdir( CLEANUP => 1 );

to NOT clean up so that the temp file can stay there for you te test with. Then, you can execute the aspell command precisely as it was executed when it failed to see if anything's wrong.  

Also, is this on Windows? On Windows 2003 and IIS 6, the IUSR_MACHINENAME account needs to have execute permission granted to c:\windows\system32\cmd.exe in order to execute the aspell command.  

Finally, the 'aspell' command might not be recognizable by the account the Web server's running under. So instead of 'aspell' sepcifying the full path the aspell might work better. Try something like this:

$aspell_cmd = '"C:\Program Files\Aspell\bin\aspell.exe"';

This is the default location of a windows aspell installation (keep the double quotes within the single quotes of the directory path).



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 18 - 30
cjflory
June 15, 2005, 6:50pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 10
Posts Per Day: 0.01
Time Online: 4 hours 57 minutes
hey... THANKS A LOT!

I edited the security for cmd.exe, and it worked.

Great mod!!
Logged Offline
Private Message Private message Reply: 19 - 30
Martin
June 15, 2005, 6:51pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.16
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 17 minutes
Location: UK
Age: 50
Your most welcome



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 20 - 30
HuttonIT
August 5, 2005, 2:35am Report to Moderator Report to Moderator

Helping those who don't speak computer.
Posts: 38
Gender: Male
Posts Per Day: 0.03
Time Online: 12 hours 2 minutes
Location: Brentwood, Essex, UK
Age: 49
Same here Warlock installed it but didn't work?


Nigel Graham
Hutton IT  National Disabled Police Association (UK) http://www.ndpa.info/mb
Logged Offline
Site Site Private Message Private message AIM AIM YIM YIM Windows Live Messenger WLM Reply: 21 - 30
Martin
August 5, 2005, 8:59am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.16
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 17 minutes
Location: UK
Age: 50
I will sort it for you tonight Nigel



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 22 - 30
Apollo
August 7, 2005, 4:11pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 207
Posts Per Day: 0.16
Time Online: 1 days 23 hours 12 minutes
Looks good.

I've installed, and it appears to be running in so far as the spellchecking window opens after clicking 'Check Spelling' however, I am getting the following error:

Error executing 'aspell -a --lang=en_US < tmp/zM4rQkmpwc/5TPM9jYmYl 2>71'
sh: line1: aspell: command not found

I had to get my host to add aspell, and they told me they had installed

Meta::Tool::Aspell

having initially tried Text::Aspell which would not install.

I'm not a perl programmer, so the hint about temporary directory verification above didn't say how to check, so I couldn't.
Logged Offline
Site Site Private Message Private message Reply: 23 - 30
Martin
August 7, 2005, 4:29pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.16
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 17 minutes
Location: UK
Age: 50
A site would be a help!

Try setting a temp folder on your site.

It works ok on the other sites I have instaled it on that have the ASPELL model installed.  



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 24 - 30
Apollo
August 7, 2005, 5:39pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 207
Posts Per Day: 0.16
Time Online: 1 days 23 hours 12 minutes
Sorry, too busy trying to type the error message accurately since it wasn't selectable (I see I still missed out a leading / on the tmp/).

http://www.secretscotland.org.uk

From your hint and the error message, I set up temp folder named tmp on the root, but it had no effect. I also did a chmod to 777, which didn't help either.
Logged Offline
Site Site Private Message Private message Reply: 25 - 30
Martin
August 8, 2005, 9:40am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.16
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 17 minutes
Location: UK
Age: 50
The folder needs to be called Temp

The top lines of speller.pl should look like this:

Code
#!/usr/bin/perl

use CGI qw/ :standard /;
use File::Temp qw/ tempfile tempdir /;

my $spellercss = '/speller/spellerStyle.css';
my $wordWindowSrc = '/speller/wordWindow.js';
my @textinputs = param( 'textinputs[]' ); # array
my $aspell_cmd = 'aspell';
my $lang = 'en_US';
my $aspell_opts = "-a --lang=$lang";
my $input_separator = "A";


If you get totally stuck pm ftp details and I will check it out for you.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 26 - 30
Apollo
August 8, 2005, 4:19pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 207
Posts Per Day: 0.16
Time Online: 1 days 23 hours 12 minutes
Ok, modified folder to Temp, but no change.

Did you mean spellchecker.pl rather than speller.pl which is what I have, and does have the same content as listed at the start.

Given the 2nd line of the error message:

sh: line1: aspell: command not found

I also checked the path to perl on the host, which is the usual /usr/bin/perl

so I'm beginning to suspect the recent install of the Meta::Tool::Aspell module on the host, and think we might be wasting effort here.

If you think is still worth trying though, let me know and I'll set up an ftp account and PM the details.
Logged Offline
Site Site Private Message Private message Reply: 27 - 30
Streder
August 23, 2005, 9:50pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 2
Posts Per Day: 0.00
Time Online: 1 hours 27 minutes
THANK YOU SOOOOOOOOOOO MUCH!

I can't spell for beans, noe can I type - as the owner of the board, I am SOOO gald to have this.  Now I don't look so foolish.  LOL

Steve
Logged Offline
Private Message Private message Reply: 28 - 30
ToyleY
August 26, 2005, 8:51am Report to Moderator Report to Moderator

E-Blah Member
Posts: 18
Posts Per Day: 0.02
Time Online: 7 hours 19 minutes
It works great for me but I don't have a cgi-bin folder and I can't use hyphens in directory names with my ISP - so I hex-edited spellChecker.js
   

this.spellCheckScript = '/forum/Blah/spellchecker.pl';

Just this 1 line to point to spellchecker.pl and it works fine - great job   by the guy who wrote it (Warlock is it?)

Revision History (1 edits)
ToyleY  -  August 26, 2005, 8:53am
Logged Offline
Private Message Private message Reply: 29 - 30
3 Pages « 1 2 3 » Recommend Thread
Print

E-Blah Community    Modifications    Mod Requests and Support  ›  Spell Checker Support