emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] ox-odt file: links are not pointing to the real files (was: [B


From: Max Nikulin
Subject: Re: [BUG] ox-odt file: links are not pointing to the real files (was: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9.5.2/)])
Date: Tue, 25 Oct 2022 17:20:21 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2

On 22/10/2022 12:03, Ihor Radchenko wrote:

Probably, href=file.org is treated as a link to resource packed inside
.odt file.

You are right. file.odt is a virtual folder representing ZIP container, so relative links to external files should be prefixed with "../".

https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part2-packages/OpenDocument-v1.3-os-part2-packages.html#__RefHeading__752821_826425813
3.7 Usage of IRIs Within Packages
in Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 2: Packages

https://bz.apache.org/ooo/show_bug.cgi?id=98211
98211 – Hyperlink to local file in filesystem generate a wrong relative path

Thanks to https://github.com/jgm (pandoc developer)

It seems, EPUB explicitly disallows relative links to external resources, however the discussion is long and I may the conclusion wrong.
https://github.com/w3c/epub-specs/issues/1888
What base URLs to use for URL parsing in EPUB?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]