Far from comparing my brief, layman scripts with mpfth, or incouraging
anyone to switch away from mpfth to my scripts, my aim  was only to mention
parseTemplate() and to incourage anyone to write same routines both in
python and in javascript, when possible.

Alex


2014-06-10 14:23 GMT+02:00 Ricordisamoa <[email protected]>:

> Thank you, but I think we will keep our dependency on mwparserfromhell.
> Even though it has issues on Windows, it is way more powerful and reliable
> than any other wikicode parser in Python.
> And it does not only parse nested templates, but also wikilinks, external
> links and HTML tags.
>
> Il 09/06/2014 10:49, Alex Brollo ha scritto:
>
>  While parsing wiki code without specific python tools, I found a major
>> problem into templates code, since regex can't manage so well nested
>> structures. I solved such issue by a layman approach with a parseTemplate
>>  routine, both in python and in javascript, which converts templates into a
>> simple object (a dictionary + a list), coupled with another simple routine
>> which rebuilds the template code from the original, or edited, object. The
>> whole thing is - as I told - very rough and it has written for personal use
>> only; but if anyone is interested about, please ask.
>>
>> Alex brollo
>>
>
> _______________________________________________
> Pywikipedia-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to