From: Leandro L. <ll...@gm...> - 2009-06-30 03:48:10
|
Leandro Lucarella, el 28 de junio a las 02:18 me escribiste: > > David Goodger, el 27 de junio a las 17:52 me escribiste: > > On Fri, Jun 26, 2009 at 20:37, Leandro Lucarella<ll...@gm...> 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... I'm hate to be insistent, but I'm really stuck with this. Does anyone know how can I get what writer will be used (and the Sphinx builder object) when doing a Docutils Transform? Thanks. -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ---------------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------------- |