So, I'm about to head out on a long dark trip in to WebGUI land, and I hate writing lots of HTML just as much as the next guy.
So my goal is to find a chunk of perl that parses (some subset) of MW wikitext that I can slide into WebGUI.
1) While I know there are some alternative parsers that already exist, is there anyone floating around in here with any experience patching any of the ones written in perl into other code?
2) How much of MWT do they parse? How much do I really need? (Yeah, I know; how the hell do *you* know? :-)
3) Has anyone ever done a (semi-)formal specification of MWT?
4) Am I crazy?
Cheers, -- jra
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jay R. Ashworth wrote:
So, I'm about to head out on a long dark trip in to WebGUI land, and I hate writing lots of HTML just as much as the next guy.
HTML isn't that bad if you properly enforce content seperation from presentation. I couldn't be bothered to use DocBook for a specification I was writing, so I did it in XHTML.
- While I know there are some alternative parsers that already exist,
is there anyone floating around in here with any experience patching any of the ones written in perl into other code?
http://meta.wikimedia.org/wiki/Alternative_parsers
- How much of MWT do they parse? How much do I really need? (Yeah, I
know; how the hell do *you* know? :-)
See link above for first question.
I would recommend looking at http://meta.wikimedia.org/wiki/Help:Wikitext to get a handle of what you'd need.
- Has anyone ever done a (semi-)formal specification of MWT?
Only the code. ;-) There have been attempts, but there mostly out-of-date. There's a bug report for this: http://bugzilla.wikimedia.org/show_bug.cgi?id=7
- Am I crazy?
Yes. A little less so if you're not tackling the full thing.
Edward Z. Yang <edwardzyang@...> writes:
Jay R. Ashworth wrote:
- Has anyone ever done a (semi-)formal specification of MWT?
Only the code. There have been attempts, but there mostly out-of-date. There's a bug report for this: http://bugzilla.wikimedia.org/show_bug.cgi?id=7
Some work has been going on at mediawiki.org (http://www.mediawiki.org/wiki/Markup_spec and http://www.mediawiki.org/wiki/Markup_spec/BNF/). It's early days and any input would be appreciated, but it might help.
-- Mark Clements (HappyDog)
Mark Clements (HappyDog) wrote:
Edward Z. Yang <edwardzyang@...> writes:
Jay R. Ashworth wrote:
- Has anyone ever done a (semi-)formal specification of MWT?
Only the code. There have been attempts, but there mostly out-of-date. There's a bug report for this: http://bugzilla.wikimedia.org/show_bug.cgi?id=7
Some work has been going on at mediawiki.org (http://www.mediawiki.org/wiki/Markup_spec and http://www.mediawiki.org/wiki/Markup_spec/BNF/). It's early days and any input would be appreciated, but it might help.
-- Mark Clements (HappyDog)
Excellent! Note that there should be no need for the BNF grammar to be unambiguous; this is what [[packrat parser]]s are for.
-- Neil
wikitech-l@lists.wikimedia.org