Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path to images in subdocuments #35

Open
getreu opened this issue Oct 14, 2012 · 2 comments
Open

Path to images in subdocuments #35

getreu opened this issue Oct 14, 2012 · 2 comments
Labels

Comments

@getreu
Copy link

getreu commented Oct 14, 2012

On 10 October 2012 04:34, Jens Getreu jens....@gmail.com wrote:

I observed the following behavior:

    Without :data-uri: directive: Paths in subdocuments to images are relative to the location of the main document.
    With :data-uri: Paths in subdocuments to images are relative to the location of the subdocument.

I usually use the 2. because my subdocuments are independent projects with separate resources. Unfortunately not all backends implement the 2. correctly yet.
For example the html4 and odt backends do not therefore my projects do not compile with these backends.

The ODT backend is a separate project, please file an issue on its site.

Data-uri is not supported by HTML, only xhtml and html5.

They should all follow type two, but there is a bug(s).

@stuart, documentation says images are relative to the referring document. Data-uri correctly uses {indir}/{imagesdir}/{target} but non data-uri uses {imagesdir}/{target} which makes them relative to the working directory (if {imagesdir} is not absolute), not the document directory. It is therefore wrong if for example the document is an included document from another directory, or asciidoc wasn't run in the document directory.

Documentation doesn't mention absolute being accepted, but I'll bet there are lots of documents that depend on that :( so it isn't just as simple as sticking an {indir={outdir}} on the front for non-datauri I don't think.

Cheers
Lex

@dagwieers
Copy link
Owner

I don't know exactly what is expected of me. We do exactly the same thing as e.g. the xhtml backend.

@getreu
Copy link
Author

getreu commented Dec 2, 2012

Yes, I posted a bug report there too. https://groups.google.com/forum/?hl=de&fromgroups#!topic/asciidoc/yazroFPc4ow
Maybe it is better to wait, how they resolve this issue and then just copy the solution into your sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants