On 2011-02-28, Luc Saffre wrote: > On 28.02.2011 11:41, Guenter Milde wrote:
>> Standard reStructuredText already supports "clickable" images with >> links via the "target" option of the "image" directive: >> http://docutils.sourceforge.net/docs/ref/rst/directives.html#image > Yes, I tried this. But: > (1) this requires that I type the filename of the image twice, which is > not acceptable in my case since my filenames are quite long. Example:: > .. image:: > http://photos.saffre-rumma.net/thumb/2011/02/201102-24_1419-23.jpg > :target: > http://photos.saffre-rumma.net/show/2011/02/201102-24_1419-23.jpg > (2) Sphinx would then issue a warning `Non-local image` (and since I > prefer to build using ``-W`` would even abandon the build) > (3) When I change the URL of my picture server, I'd have to change all > the source documents. > (4) I'll get a problem if I once want to print my memoires using the > latex builder. And an automatic download feature for remote images (as > discussed earlier in this list) wouldn't be a solution because I have > over 10 GB of private pictures. Should the LaTeX version be without images? AFAIK images need to be embedded in PDF documents. > (5) I'd like to have my pictures inline by default, so I'd have to > imagine an additional name for each picture of a document. > A :foto: role would solve all these problems. I understand that you plan a private extension for a very special case then, right? I can see its use now. Thanks for the clarification. ... > I still hope for help (or more ideas about alternatives) from this list. > It's not urgent since this is just for my private usage. Unfortunately, I cannot help with details of role-definitions in Python Sphinx extensions (besides a "use the source"). One alternative might be a pre-processing script that generates/modifies the rst source. Günter -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.