|
From: Dethe E. <de...@ma...> - 2002-09-20 15:41:54
|
I'd love to see this. Projects such as porting reST to PHP (or=20 whatever) are part of why I was asking about rigorous specs in the form of EBNF syntax, to=20= make it more portable. Also, if we parse directly to a DOM it makes reST more flexible and=20 easier to port, since a DOM binding exists for most languages. Many DOMs use either SAX or Expat to build the DOM itself, my idea would be to replace the low-level parser with reST. I understand that David doesn't want=20 to give up the simplicity of the node constructors for the verbosity of DOM=20 calls, but node.py could be reimplemented as convenience functions to make the DOM calls for you. Building up a true XML DOM internally has several advantages. More=20 potential developers would be familiar with the API than are currently=20 comfortable with the reST internals. Writers could be written in XSLT without knowing=20 anything about reST besides it's DTD. And my *other* project of converting=20 existing HTML and DocBook documents into reST for maintenance would be=20= that much easier! Even further off-topic, the docs mention that reST has constructs which=20= are missing from DocBook. What are they? --Dethe On Friday, September 20, 2002, at 03:17 AM, Axel Kollmorgen wrote: > hi all, > > i'm a contributor to drupal ( http://drupal.org ), a php content > management/discussion engine. me and some others there quite like rST, > and we are currently discussing ( = http://drupal.org/node.php?id=3D507#649 > , > http://drupal.org/node.php?title=3DStructured+Text+-+filter+enhancement = ) > the use of (re)StructuredText for submitting (and maybe storing)=20 > content > to the system. hence my questions: > > - does a php port of (re)StructuredText exists? > - does a php port of something similar to (re)StructuredText exists > (aside of http://www.keithdevens.com/software/ , StructuredText=20 > Markup)? > - does any other language port of rST or similar exists? > - as there is probably none of above: do you think it is possible to > port rST to php? more specifically: > . is there any general experience in porting python to php? > . how much of / which parts of the docutils distribution would be > required to port for basic functionality, i.e. for rendering html? how > much for more functionality including xml-storage? > . is there any developer documentation about the code structure / > class hierarchies / ... beside > http://docutils.sourceforge.net/#docutils-internals , the code and the > devel-mailing list? > > looking forward for your feedback. tia. > > --=99 > ax > > "Jeder will alt werden, aber keiner will es sein." (Martin Held, dt. > Schauspieler) > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Docutils-develop mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-develop |