Has somebody written a script to convert mediawiki markup to html? I'd need something which works with embedded latex. Looking at the mediawiki source it doesn't seem like it should be *that* hard but I haven't tried yet.
Frederik
Frederik Eaton wrote:
Has somebody written a script to convert mediawiki markup to html? I'd need something which works with embedded latex. Looking at the mediawiki source it doesn't seem like it should be *that* hard but I haven't tried yet.
There's lots of scripts that go most of the way. Alfio Puglisi's wiki2static script (written in Perl) calls texvc to render TeX.
- d.
Hmm. Looks like wiki2static requires a database, it seems like it should be possible to to interface directly with the parser and have something that reads and writes single files. Except for page inclusion and linking... Well, I've gotten 'deplate' to work for me so now I'm using that. Thanks,
Frederik
On Thu, Mar 24, 2005 at 08:54:22AM +0000, David Gerard wrote:
Frederik Eaton wrote:
Has somebody written a script to convert mediawiki markup to html? I'd need something which works with embedded latex. Looking at the mediawiki source it doesn't seem like it should be *that* hard but I haven't tried yet.
There's lots of scripts that go most of the way. Alfio Puglisi's wiki2static script (written in Perl) calls texvc to render TeX.
- d.
Frederik Eaton wrote:
Has somebody written a script to convert mediawiki markup to html? I'd need something which works with embedded latex. Looking at the mediawiki source it doesn't seem like it should be *that* hard but I haven't tried yet.
Yes, we've written one; it's called "MediaWiki". It's written in PHP, and uses a helper program 'texvc' to handle LaTeX fragments and pass them to the renderer.
If you can't or don't want to try to use MediaWiki's parser, there are a huge number of more or less somewhat-implemented clone parsers in various languages: http://meta.wikimedia.org/wiki/Alternative_parsers
-- brion vibber (brion @ pobox.com)
Has somebody written a script to convert mediawiki markup to html? I'd need something which works with embedded latex. Looking at the mediawiki source it doesn't seem like it should be *that* hard but I haven't tried yet.
Yes, we've written one; it's called "MediaWiki". It's written in PHP, and uses a helper program 'texvc' to handle LaTeX fragments and pass them to the renderer.
The intent was to have something which didn't depend on a database, but could take wiki markup on say standard input...
If you can't or don't want to try to use MediaWiki's parser, there are a huge number of more or less somewhat-implemented clone parsers in various languages: http://meta.wikimedia.org/wiki/Alternative_parsers
I'll look at these.
Frederik Eaton wrote:
Has somebody written a script to convert mediawiki markup to html? I'd need something which works with embedded latex. Looking at the mediawiki source it doesn't seem like it should be *that* hard but I haven't tried yet.
Maybe Text_Wiki could be something for you. As written on the Developer page it is able to transform wiki structured text into an output format such as XHTML, RTF, LaTeX and so on.
You can find it here: http://wiki.ciaweb.net/yawiki/index.php?area=Text_Wiki Even may freshmeat.net be a fine source to find similar programs.
Greets Andreas H.
wikitech-l@lists.wikimedia.org