--- "Thomas R. Koll" tomk32@gmx.de wrote:
On Mon, May 03, 2004 at 04:11:43PM -0400, David Friedland wrote:
I want to try to connect this somehow to a CGI to make a webpage where people can paste in HTML and get wikitext out by clicking a button. This would make it easy to convert HTML tables I run across to wikitables quickly, by just a couple copy and pastes.
Try the tremendous table2wiki.py from the pywikipediabot at http://pywikipediabot.sf.net
Earlier in this thread, someone asked for a Perl program similar to Magnus' C++ HTML-to-wikitext converter. I decided to give it a whirl and wound up writing HTML::WikiConverter (for lack of a better package name). I've created a small Mason page that uses the module, at:
http://diberri.dyndns.org/html2wiki.html
Some more instructions are contained at that URL. Basically, just enter an HTML snipped into the text box, press the convert button, and wikitext magically appears :-) I'll be posting the source of the module within the next day or so (after I get add a few more features like IMG-tag processing).
Cheers, David (User:Diberri)