View Single Post
Old 08-30-2015, 03:49 AM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Relative links in an EPUB refer to files inside the *.epub, relative to the currently rendered resource (the (X)HTML file containing the link).

You'd have to embed the PDF or whatever as a Miscellaneous file inside the EPUB, and then I doubt any reader would open it.



file:// links point to locations in the filesystem hierarchy, rather than being interpreted within the renderer's context (context can be anything. A file://page is a filesystem context. a http://website.com/page is a website context. Relative links in either case are relative to the currently rendered file.)
If you use a file:// link, it will escape the EPUB context. There should be some way of munging that to use a relative link...
It *might* work, but I don't guarantee even if it does, that it will everywhere. As far as the specs are concerned, you are most likely a filthy troublemaker. Enough reader applications rewrite the wheel that they might be doing anything.

Last edited by eschwartz; 08-30-2015 at 03:58 AM.
eschwartz is offline   Reply With Quote