Skip Menu |

This queue is for tickets about the HTML-WikiConverter CPAN distribution.

Report information
The Basics
Id: 12396
Status: resolved
Worked: 10 min
Priority: 0/
Queue: HTML-WikiConverter

People
Owner: diberri [...] cpan.org
Requestors: nachtigall [...] web.de
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Please add front-end program to WikiConverter lib
I am not a perl hacker, and also don't like to learn yet another language ;) Could you please write a litte perl program (maybe called html2wiki) which does what the web-interface does, just for the command line. Usage could be something like: html2wiki --html-source <file> --wiki-dialect <dialect> --wiki-file <file>
Good idea, and an easy one to implement. I've called the program html2wiki as you suggested, and it'll be available in the 0.22 release. I've also attached the source. Usage: html2wiki --dialect <dialect> [options] [<html-file>] Options are: --base-uri Base URI for relative links --wiki-uri URI fragment for wiki links --wrap-in-html Wrap input in <html> and </html> It can read HTML from standard input, pipes, and files, and it writes wiki markup to standard output. For example, to convert the file input.html to MediaWiki markup, you'd say: % ./html2wiki --dialect MediaWiki input.html To save it to a file output.mw: % ./html2wiki --dialect MediaWiki input.html > output.mw Reading from pipes: % cat input.html | ./html2wiki --dialect MediaWiki Which is roughly equivalent to: % ./html2wiki --dialect MediaWiki < input.html Does that sound about right? Best, David Iberri
Download html2wiki
application/octet-stream 796b

Message body not shown because it is not plain text.

From: nachtigall [...] web.de
[DIBERRI - Sun Apr 24 06:47:20 2005]: Show quoted text
> Does that sound about right?
Sounds great :) Thank you, Jens