Lex,

technically you are right, :data-uri: and non :data-uri: cases have to treated
internally differenty. But for the user this should be transparent and not
influence how paths have to be defined in asciidoc files.

The code you suggested as solution is good. But it should be part of the
asciidoc-code and not the user input!

Yes, maybe the leading slash is not a good idea, what about "~" ?
(cf. unix home).

I modified my proposal, it looks better now. (btw, I use the term
"master document" for the command line input file and "subdocument"
for all the included ones.)


************* begin proposal
I imagine some guys like to have all images in one folder:

whole_doc.asciidoc
whole_doc.html
chapter1/contents.asciidoc
images/image1.png
images/image2.png

According to the above solution, If he wants to include image1.png in
chapter1/contents.asciidoc he must write:

image::./../images/image1.png[]

This is not very handy. I suggest the following convention:
If a path starts with a leading "~" then this "~" refers to the folder where
the master (main) document resides. So the above could be shortened to:

image::~/images/image1.png[]

With this convention everybody should be happy. Those who like to refer
to the master (main) document folder, and those who need to refer to the
subdocuments folder.

************** end proposal


Cheers



Jens

--
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