Re: Pre-Proposal: Text_Wiki

From: Date: Wed, 23 Jul 2003 09:06:45 +0000
Subject: Re: Pre-Proposal: Text_Wiki
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18570@lists.php.net to get a copy of this message
Hi, > [Jones] > >>>>> I'd like to propose Text_Wiki [...] > > [Hoizey] > >>>> I think you should divide this in several parts: We now know we agree on this topic. ;) > [Cox] > >> I'm +1 for this package, allthough I would wait to commit it when >> the develop gets consistent. If it could parse (or have room for) >> other wiki implementations would be nice too. I would go further and claim for "room" for other non-wiki sources. > [Jones] > > It is my plan to allow for multiple source styles, multiple > intermediate filters, and multiple output formats. That's great, as I already told. > Text_Wiki is a "master" class providing an interface to your choice > of each of three "support" classes: Text_Wiki_Parse, Text_Wiki_Filter, > and Text_Wiki_Render. > [...] > In every case, the parser returns an array that matches an > internal, abstracted Text_Wiki meta-standard to pass along > to Filter and Render. IMHO wiki is not the best format to use for the intermediate (or master) format, even stored in an array. It's far from being extendable. > Also, there is no plan to support XML-style sources; that's the > domain of XML parsers, not Wiki structured-text parsers.) Why not take advantage of XML "power" to manage an XML intermediate format, that you can easily transform into several output format? Wiki other XML SPIP ----> Intermediate XML ----> XHTML b2 PDF Or even, for PDF generation from a Wiki source, you can apply to renderer (what difference between your renderer and filter?): Wiki ----> Intermediate XML ----> XSL:FO ----> PDF > Individual parsers may add to this list, but the additional markups > may not be recognized by all Filter and Render classes Obviously. > Full disclosure: the individual Text_Wiki components are based in > whole or in part on the parsing engine within Tavi at > http://tavi.sourceforge.net/, originally coded by Scott Moonen. This would be the base for the Wiki to XML parser... That's just my point of view, I don't want you to take all this as critics. Regards, -Nicolas -- Nicolas "Brush" HOIZEY Free PHP projects http://www.phpheaven.net Veille tous azimuts http://www.gasteroprod.com Clever Age http://www.clever-age.com

« previous php.pear.dev (#18570) next »