2010-09-23 11:34, Bryan Tong Minh skrev:
Hi,
Pretty awesome work you've done!
On Thu, Sep 23, 2010 at 11:27 AM, Andreas Jonsson
<andreas.jonsson(a)kreablo.se> wrote:
I think that this demonstrates the feasability of
replacing the
MediaWiki parser. There is still a lot of work to do in order to
turn
it into a full replacement, however.
Have you already tried to run the parsertests that come with
MediaWiki? Do they produce (roughly) the same output as with the PHP
parser?
No, I haven't. I have produced my own set of unit tests that are
based on the original parser. For the features that I have
implemented, the output should be roughly the same under "normal"
circumstances.
But the original parser have tons of border cases where the behavior
is not very well defined. For instance, the table on the test page
will render very differently with the original parser (it will
actually turn into two separate tables).
I am employing a consistent and easily understood strategy for
handling html intermixed with wikitext markup; it is easy to explain
that the |} token is disabled in the context of an html-table. There
is no such simple explanation for the behavior of the original parser,
even though in this particular example the produced html code happens
to be valid (which isn't always the case).
So, what I'm trying to say is that for the border cases where my
implementation differs from the original, the behavior of my parser
should be considered the correct one. :-)
/Andreas
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hm...
Depending on how 'edge' those edge cases are, and on how much they are
known.
Doing that would may render it unusable for established wikis and
would never become the default anytime soon, right ?
--
Krinkle