I am trying to get the spellchecker from Noa working but am having problems. Does anyone have any info on this or is there a better alternative. regards garry
Hi, Am Sa, den 09.10.2004 schrieb garry saddington um 21:22:
I am trying to get the spellchecker from Noa working but am having problems. Does anyone have any info on this or is there a better alternative.
I dont think every reader here knows about any imaginable Zope product by heart. If you want help, you should help as well. E.g. "am having problems" does say nothing. You should _always_ include in your requests: circumstances: OS, Python version, Zope version and 3rd party products you might have installed. Then tell us what you learned from README of the product you installed and outline how you followed it. Then provide _exact_ error messages. Chances are we could help you without the need to actually know the product. I dont feel like to search google for the product you might want to install and try it out myself just to verify such a fuzzy request. Regards Tino
On Saturday 09 October 2004 20:32, Tino Wildenhain wrote:
Hi,
Am Sa, den 09.10.2004 schrieb garry saddington um 21:22:
I am trying to get the spellchecker from Noa working but am having problems. Does anyone have any info on this or is there a better alternative.
I dont think every reader here knows about any imaginable Zope product by heart. If you want help, you should help as well. E.g.
"am having problems" does say nothing.
You should _always_ include in your requests:
circumstances: OS, Python version, Zope version and 3rd party products you might have installed.
Then tell us what you learned from README of the product you installed and outline how you followed it. Then provide _exact_ error messages.
Chances are we could help you without the need to actually know the product.
I dont feel like to search google for the product you might want to install and try it out myself just to verify such a fuzzy request.
Regards Tino There is no documentation with the product save a very brief howto and no search results on google apart from the reference to Noa. There are few comments in the python code so I am therefore asking for anything that anyone may know about it. I followed the howto and all I get is a blank pop-up window. The howto is below:
The way it works - add a spellchecker object at the top level, with id "speller", then for a form called "addform" with a textarea named "subtitle" you use this DTML command: <dtml-spellchecker href="/speller" form="addform" input="subtitle"> to print out a spell checker button. There are no error messages to help -sorry. Is there another better documented way to spell check in zope? Sorry for the fuzz, regards garry
Hi, Am Sa, den 09.10.2004 schrieb garry saddington um 21:50: ...
There is no documentation with the product save a very brief howto and no search results on google apart from the reference to Noa. There are few
Well. You could at least provide the URL to the product you are talking about. Have you tried to contact the author?
comments in the python code so I am therefore asking for anything that anyone may know about it. I followed the howto and all I get is a blank pop-up window. The howto is below:
The way it works - add a spellchecker object at the top level, with id "speller", then for a form called "addform" with a textarea named "subtitle" you use this DTML command:
<dtml-spellchecker href="/speller" form="addform" input="subtitle">
to print out a spell checker button.
There are no error messages to help -sorry. Is there another better documented way to spell check in zope?
This is still far away from what is needed to help you! You silently skipped the part of how you did the installation, which requirements on additional software it has, how you verified all these requirements are met. In which context are you trying to use it? Some DTML pages I presume? You should be able to use external spell chekers (ispell, aspell) with at least an external method. It highly depends on what you want to achieve. You should however be very specific and exthausive with your explanations! Regards Tino
On Saturday 09 October 2004 22:24, Tino Wildenhain wrote:
Hi,
Am Sa, den 09.10.2004 schrieb garry saddington um 21:50: ...
There is no documentation with the product save a very brief howto and no search results on google apart from the reference to Noa. There are few
Well. You could at least provide the URL to the product you are talking about. Have you tried to contact the author? http://zope.org/Members/noa/folder_contents I can't find out how to contact the author that is why I have asked on the list.
comments in the python code so I am therefore asking for anything that anyone may know about it. I followed the howto and all I get is a blank pop-up window. The howto is below:
The way it works - add a spellchecker object at the top level, with id "speller", then for a form called "addform" with a textarea named "subtitle" you use this DTML command:
<dtml-spellchecker href="/speller" form="addform" input="subtitle">
to print out a spell checker button.
There are no error messages to help -sorry. Is there another better documented way to spell check in zope?
This is still far away from what is needed to help you! You silently skipped the part of how you did the installation, Installed like a standard product which requirements on additional software it has, Ispell how you verified all these requirements are met. Used Ispell from the command line In which context are you trying to use it? Some DTML pages I presume? As directed in the howto on a DTML page You should be able to use external spell chekers (ispell, aspell) with at least an external method. It highly depends on what you want to achieve. You should however be very specific and exthausive with your explanations! I have textareas that take input from users and I want them to be able to spell check their input. regards garry
Hi, Am So, den 10.10.2004 schrieb garry saddington um 11:43: ...
Well. You could at least provide the URL to the product you are talking about. Have you tried to contact the author? http://zope.org/Members/noa/folder_contents I can't find out how to contact the author that is why I have asked on the list.
This looks neither released nor maintained :-) And from unpacking the archive you find: 0 bytes readme.txt *.pyc files which you should remove anyway Im especially faszinated by the line: ispell = os.popen("echo " + word + " | ispell -a") which promises exceptionally performance ;) (It might even open security holes if the word split has flaws)
I have textareas that take input from users and I want them to be able to spell check their input. regards garry
In the simplest form I'd use an external method like this: import os spellcheck(self,checktext=""): spellin,spellout=os.popen2("ispell -a","rw") spellout.readline() # read away banner output=[] for word in checktext.split(): spellin.write(word+"\n") spellin.flush() output.append((word,spellout.readline().strip())) spellin.close() spellout.close() return output which takes a plain text as input and responds with list of tuples with the word and ispells answer which you can format for output using a python script. Sure this is a first shot and can be improved in many ways (word-split, buffer management etc.) Regards Tino
On Sunday 10 October 2004 12:29, Tino Wildenhain wrote:
Hi,
Am So, den 10.10.2004 schrieb garry saddington um 11:43: ...
Well. You could at least provide the URL to the product you are talking about. Have you tried to contact the author?
http://zope.org/Members/noa/folder_contents I can't find out how to contact the author that is why I have asked on the list.
This looks neither released nor maintained :-) And from unpacking the archive you find:
0 bytes readme.txt *.pyc files which you should remove anyway
Im especially faszinated by the line: ispell = os.popen("echo " + word + " | ispell -a")
which promises exceptionally performance ;) (It might even open security holes if the word split has flaws)
I have textareas that take input from users and I want them to be able to spell check their input. regards garry
In the simplest form I'd use an external method like this:
import os
spellcheck(self,checktext=""): spellin,spellout=os.popen2("ispell -a","rw") spellout.readline() # read away banner output=[] for word in checktext.split(): spellin.write(word+"\n") spellin.flush() output.append((word,spellout.readline().strip())) spellin.close() spellout.close() return output
which takes a plain text as input and responds with list of tuples with the word and ispells answer which you can format for output using a python script.
Sure this is a first shot and can be improved in many ways (word-split, buffer management etc.)
Regards Tino Thanks for your patience it is much appreciated. regards garry
participants (2)
-
garry saddington -
Tino Wildenhain