Thanks a lot for this tool, I'm not sure I've got a use for it yet (don't count on me for any pdf template), but I'm sure any xml fan will like it.
Do you mind if I put a link toward your site... do you intend to change place/adress for it ?
François
Magnus Manske wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Here it is! The millionth pseudo-parser I wrote for wiki(p|m)edia! :-)
Written as a single class, it takes a MediaWiki-style markuped (is that a word?) source and generates the XML flavor Timwi and I have been using in all our unfinished projects! ;-)
Try it out at
http://www.magnusmanske.de/wikipedia/wiki2xml.php
Just paste a wiki source text in, and get the XML. As you will notice, it wasn't written for speed.
It is not a "real" parser, but the structure is simlar to what a parser generator would make, except taking a few shortcuts here and there.
This could be the heart of a *real* export function. Just write a XML-to-PDF generator (and replace the templates, and get rid of the categories and language links) and you're done! :-)
Magnus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCVYLOCZKBJbEFcz0RAntrAJ0cbZTbRf5IIjyK2ltgv2oNZ28+cgCfWTjn tl8TiwYzjBFGHpHUnpkVJXQ= =1Y9V -----END PGP SIGNATURE-----