Update of /cvsroot/docutils/sandbox/lalo/lout_writer
In directory sc8-pr-cvs1:/tmp/cvs-serv11565
checking in the initial version of my lout writer.
Please beware, there is a reason this is in the sandbox.
The code is *very* ugly (cleanup is scheduled right after functionality) and incomplete;
lots of methods are still copied from the html writer (because this gives me a visual
hint of what is missing, when I load the processed output).
However, I can already reasonably process my largish target document, so if you want to
experiment with it and have a rough idea of what it will look like, feel free.
Of course, there is no distutils yet. You have to copy or symlink it in your writers
package if you want to play with it. However, the front-end in tools/ is working
(assuming you do install the module).
--- NEW FILE: lout.py ---
:Author: Lalo Martins
:Revision: $Revision: 1.1 $
:Date: $Date: 2003/11/29 05:13:44 $
:Copyright: This module has been placed in the public domain.
Lout document tree Writer. See http://lout.sf.net/
__docformat__ = 'reStructuredText'
# initial code based on copy-pastes from the latex and html writers.
# convention: deactivate code by two # e.g. ##.
[...1129 lines suppressed...]
def depart_transition(self, node):
def visit_version(self, node):
self.visit_docinfo_item(node, 'version', meta=None)
def depart_version(self, node):
def visit_warning(self, node):
def depart_warning(self, node):
def unimplemented_visit(self, node):
raise NotImplementedError('visiting unimplemented node type: %s'