On 27/10/11 02:39, Dag Wieers wrote:
Hi,

Can we make the default iconsdir somewhat smarter, in the sense that if {icons}
is set, but {iconsdir} isn't, and there is no ./images/icons/ directory, use
/usr/share/asciidoc/images/icons by default ?

We already do something more advanced for themes, which is nice as themse this
way can have their own icon-set, however it would be great if by default icons
would work out of the box without needing to copy over the images-directory in
your local path.

PS I am sure there is even a smarter way to look for /usr/share/asciidoc rather
than having it hardcoded ;-)


The problem is that when dealing with linked images the images directory will normally be a relative path relative to the location of the output file and it's not necessarily true that the images will be found where the output is generated e.g. with epub files the images are assembled in the their relative locations in the epub zip file afterwards.

In the case of epub generation a2x manages the copying of resources with the help of the --resource and --resource-manifest options (http://www.methods.co.nz/asciidoc/a2x.1.html#X3).

The iconsdir is not hardcoded in the that it is an attribute that you can redefine it.

Cheers, Stuart

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" 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/asciidoc?hl=en.

Reply via email to