Hi Bjoern,

currently it is not possible to convert the parse tree back to mediawiki 
markup. To achieve this, a mediawiki writer had to be written. Probably 
this is not too hard but notheless tedious and a couple of details will 
be tricky. If you are interested in learning Python this might be a good 
exercise ;)
Another hard part of the task is the incomplete/missing documentation 
for the parse tree...At some point we'll improve this, but definitely 
not by tomorrow. So currently you have to look at the source code of one 
of the writers as an example an check the parser/advtree for reference.

Regards,
Volker

Bjoern wrote:
> Dear all,
>
> Is it possible to 'round trip' a selection of wiki pages using mwlib?
> I.e. can I go from Mediawiki text to Parse Tree, and then back to
> mediawiki text?
>
> I guess the Parse Tree format is documented somewhere, but I couldn't
> find it. (I've been looking at the the wiki pages, and the short
> example on http://code.pediapress.com/wiki/wiki/mwlib.)
>
> Would it be easy to go from the Parse Tree to xml, and then back to
> mediawiki text? (This might be obvious for a python programmer.)
>
> Best,
> Bjoern
>
>
>
>
>
>
>
>
> >
>   

-- 
volker haas                 brainbot technologies ag
fon +49 6131 2116394        boppstraße 64
fax +49 6131 2116392        55118 mainz
[email protected]    http://www.brainbot.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to