One option might be to use one of the alternative Mediawiki (parser) implementations.
I know of JAMwiki and Bliki.
JAMwiki is a mostly complete Java implementation. The parser can be taken out and is reasonably well factored, based on a grammar for JFlex, a parser generator (if I remember this correctly).
Bliki is purely a Mediawiki parser implementation, not a full-blown wiki engine, also done in Java.
I'm generally interested in finding a non-php well-factored Mediawiki syntax parser, ideally written in Java, that I can use for my own projects.
Are there new alternatives; does anyone have opinions/insights into the state of the tools mentioned above? It seems pretty tough to track the Mediawiki syntax...
Cheers, Dirk
On Mon, Nov 17, 2008 at 5:34 AM, Alex Bernier alex.bernier@free.fr wrote:
Hello,
I hope it is the right place to ask my question...
I work on a "collaborative correction of books" project. I know there is already some projects related to this subject, like Wikisource. The main difference between my project and Wikisource is that my books are stored in text using DAISY (see http://www.daisy.org/), a format based on XML. I have some questions :
Is there some tools to import XML files in a Wiki ?
Is there tools to export a Wiki page in XML ?
I will have to extend the Wikitext (I want to import DAISY XML files in
my Wiiki and export them from the Wiki to XML DAISY after correction, without loosing information). I think it would be easy for the majority of the new tags I want to add, but it would be more difficult for some of them. For example, I need to improve the headings possibilities of the Wikitext. For the moment, it is limited to 5 levels. I need potentially infinite imbrications, like this:
<level> <hd>Title 1</hd> <level> <hd>Title 2</hd> ... <level> <hd>Title n</hd> </level> </level> </level>
Is it possible to add this kind of thing in the Wikitext ? If yes, is it possible to do this with an extension, or is it necessary to do "low-levels" modifications of the Wikitext parser ?
Best regards,
Alex Bernier
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l