From: David G. <go...@py...> - 2013-05-14 04:30:15
|
On Mon, May 13, 2013 at 8:13 PM, Michael Prisant <mic...@gm...> wrote: > Yes this is a dumb example but I think it is enough to get started. How can > this question be made more simple or specific? You can start by giving us a minimal but *real* example of what you want as output. I think you're over-complicating the issue by trying to simplify it in an unnatural way. Unnatural, because the it's the job of the Writer classes to translate Docutils document trees (doctrees) into their final formats. Don't try to do the job of Writers from within your directive, that's the wrong approach. You should be trying to write correct doctree nodes from your code. Apart from the differences in markup/tagging/codes, do you really need different output from the two writers? IOW, does the content itself (the rendered text & functionality) have to change depending on the output format? Don't worry about the HTML or LaTeX output, except to illustrate what you want. Show us some real input, and some real desired output. > PS Hoping that this can be posted to list in under 5 days! Are you talking about your message, or the reply? If your message, it could be that the first time you posted, you weren't a member, and somebody (me) had to approve the post first, and I was otherwise busy. Sometimes it takes me a while to get to list moderation. If you're talking about the reply, well, sorry, but sometimes it takes a while for people to carve time out of their busy lives. -- David Goodger <http://python.net/~goodger> |