Gerard,
>
> For the custom directive part, you are as wise as me - I've never done
> that. Here is some prior art though:
>
> http://www.bitbucket.org/birkenfeld/sphinx/src/tip/sphinx/ext/todo.py
> http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext/
>
> I have to go out now, but I can make a start on this in maybe 2/3 hours
> time - if you make any progress yourself, let me know!
Fantastic, I'm glad I'm not the only person looking for this. After
playing around with the object tag a bit yesterday, though, I discovered
that getting it to do what I really want with my SVGs from within
firefox was actually a bit tricky.
At the moment, I think my current plan is to basically create an svg::
directive, as you suggested, with all the standard trimmings of the
img:: directive. But then, I'm probably going to end up doing the
following:
1. converting the SVG to PDF for inclusion in LaTeX docs via an
external application like Batik
2. converting the SVG to a PNG for inclusion in most HTML
3. having the PNG in the HTML link to the SVG.
So slightly different than originally anticipated, but not that much.
One of the additional advantages to this sort of preprocessing is that I
can potentially control other things like the degree of rescaling that
the image undergoes in both output formats, etc.
Thanks again for the pointers to prior art, it's extremely helpful! I'll
let you know what I come up with.
...Eric
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---