Hello,

Mark Meyer <m...@ofosos.org> writes:

> In ox-epub I'm using several references to external stylesheets,
> starting with the external name in the user filesystem I transform
> these into a kind-of unique id that lives in the EPUB zip file.
>
> Currently I'm doing this using a counter, generating zip entries in the
> form of style-1.css. Can I use `org-export-get-reference' to generate
> these ids? I would likely pass a simple string as the object to get a
> reference to (the path the external stylesheet lives at).
>
> From what I understand this would generate different references for
> `foobar.css' and `../foobar.css' even when these are identical
> documents. This should be fixed by passing `(expand-file-name style)' to
> `org-export-get-reference'.
>
> I'm not quite sure I understand `org-export-get-reference' correctly,
> can you elucidate this?

`org-export-get-reference' is meant to return a unique identifier for
objects in the parse tree. You cannot really use it for strings, as the
comparison is done with `eq', unless the strings are part of the parse
tree.


Regards,

-- 
Nicolas Goaziou

Reply via email to