Hi,
We're considering to re-use parts (maybe large parts) of the Docutils
infrastructure for the MoinMoin project.
For this, we'd need to extend the doctree a bit, e.g. with strike,
underline, small, big. (MoinMoin needs to support those.)
I'd like to gather ideas on how to do that.
Copy all node classes into a class (e.g. class Nodes, with
Nodes.paragraph, Nodes.emphasis etc.) from which we can subclass? That
would, in the long run, require a major refactoring of many parts of the
Docutils code base (which might be worth it, though).
We could even move it to a class "nodes" which would be accessible from
the "docutils" namespace, so that "from docutils import nodes" still
works, which would save a lot of effort.
Hmm.
Anyway, that requires changes to Docutils.
Any suggestions how to extend the doctree *right now*, without changing
Docutils? Just copy all module contents of nodes.py to a MoinMoin nodes
module and extend it? That's not quite clean, but it should work for now.
Felix
--
Felix Wiemann -- http://www.ososo.de/
|