David Goodger, el 27 de junio a las 17:52 me escribiste: > On Fri, Jun 26, 2009 at 20:37, Leandro Lucarella<[email protected]> wrote: > > Sounds fair, but I need to know what writer will be used when doing the > > transformation. Is that possible? How? I can't find any code doing that. > > See the Filter transform here: > http://docutils.sourceforge.net/docutils/transforms/components.py > > Within a transform, self.document.transformer.components['writer'] > will give you the writer object.
This is really nice, but... (there's always a but =) Sphinx seems to be using a SphinxDummyWriter when transforming, no matter what the real output format really is =/ All seems to be shaping out good using the Transform approach in the docutils side, but I'm getting some Sphinx-specific problems. Besides the dummy writer, I don't know if I can (and how) access to the builder when implementing the Directive and Transform (I need to get some Sphinx options from there) I think I will need some Sphinx guidance to move on... Thanks for your help. Docutils seems to be very well designed =) -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ---------------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------------- Agarré, me fuà pal monte Para ver el horizonte... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
