From: David G. <go...@us...> - 2002-11-05 05:20:18
|
Andreas Jung wrote: > I am currently working on the integration of reStructuredText into > Zope. I know almost nothing about Zope, but I believe "integration" may need qualification here. What exactly are you trying to do? Have you looked at Richard Jones' ZReST work? See http://www.zope.org/Members/richard/ZReST (locally at http://docutils.sf.net/sandbox/richard/ZReST/). > I have currently two unresolved issues: > > - Zope includes (re)STX documents into an existing document with a > starting level of 3 (means it starts with the <H3> header) Sorry, I don't know exactly what you mean or what you want here. I can guess, but I'd rather not. Please give examples and ask questions. > - included (re)STX documents must not contain HTML header and footer > > Is there a way with docutils to create partitial HTML docs? Yes. Look at the docutils/writers/html4css1.py module's Writer class. In the "translate" method, it copies several attributes from its "visitor" (HTMLTranslator object), from "head_prefix" to "body_suffix". These are pieces of HTML that may or may not be broken up the way you want. See Ollie Rutherfurd's Writer for ht2html for an example: http://docutils.sf.net/sandbox/oliverr/ht/hthtml.py . -- David Goodger <go...@us...> Open-source projects: - Python Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html) - The Go Tools Project: http://gotools.sourceforge.net/ |