|
|
SonnyZA |
|
|
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........  |
| |
|
|
|
|
|
user |
|
|
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. |
|
|
|
|
|
cjflory |
|
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.gifInsert 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
|
|
|
|
|
|
Martin |
|
|
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 |
|
|
|
|
|
cjflory |
|
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!! |
|
|
|
|
|
Martin |
|
|
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 |
|
|
|
|
|
HuttonIT |
|
|
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 |
|
|
|
|
|
Martin |
|
|
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 |
|
|
|
|
|
Apollo |
|
|
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. |
|
|
|
|
|
Martin |
|
|
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 |
|
|
|
|
|
Apollo |
|
|
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.ukFrom 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. |
|
|
|
|
|
Martin |
|
|
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 |
|
|
|
|
|
Apollo |
|
|
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. |
|
|
|
|
|
Streder |
|
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 |
|
|
|
|
|
ToyleY |
|
|
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 | | |
|
|
|
|
|
|