Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-05-03 Thread Max Nikulin
On 03/05/2024 18:14, Ihor Radchenko wrote: Max Nikulin writes: Yes, sure. It is fine to reuse an existing user option. Though reading through its docstring and the code, I cannot tell what this is doing exactly. Is it applying to all HTML elements, or just headings? On my end, I have that

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-05-03 Thread Ihor Radchenko
Protesilaos Stavrou writes: >>> Since we are now using labels for the HTML export, I think it makes >>> sense to optionally use those for the anchor tags as well. >> ... >> We can indeed add such option, but is it of any practical use? >> Do you have examples of workflows when such new option

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-05-03 Thread Ihor Radchenko
Max Nikulin writes: >> Yes, sure. It is fine to reuse an existing user option. Though reading >> through its docstring and the code, I cannot tell what this is doing >> exactly. Is it applying to all HTML elements, or just headings? >> >> On my end, I have that option set to nil, but exported

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-05-03 Thread Max Nikulin
On 03/05/2024 13:59, Protesilaos Stavrou wrote: From: Max Nikulin Fri, 26 Apr 2024 16:53:23 +0700 Another option may be to rely on the existing one: `org-html-prefer-user-labels' Yes, sure. It is fine to reuse an existing user option. Though reading through its docstring and the code, I

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-05-03 Thread Protesilaos Stavrou
> From: Ihor Radchenko > Date: Sun, 28 Apr 2024 10:37:58 + > > Protesilaos Stavrou writes: > >> Since we are now using labels for the HTML export, I think it makes >> sense to optionally use those for the anchor tags as well. >> >> See the attached patch for a possible way of doing this. >>

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-05-03 Thread Protesilaos Stavrou
> From: Ihor Radchenko > Date: Sun, 28 Apr 2024 10:22:50 + > > Protesilaos Stavrou writes: > >>> See the attached tentative patch. >> >>> [... 144 lines elided] >> >> Thank you! I just tried it. I encountered two problems with it, which I >> am addressing with the two attached patches (feel

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-05-03 Thread Protesilaos Stavrou
> From: Max Nikulin > Date: Fri, 26 Apr 2024 16:53:23 +0700 > > On 26/04/2024 15:17, Protesilaos Stavrou wrote: >> Since we are now using labels for the HTML export, I think it makes >> sense to optionally use those for the anchor tags as well. > [...] > >> +(defcustom

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-28 Thread Ihor Radchenko
Protesilaos Stavrou writes: > Since we are now using labels for the HTML export, I think it makes > sense to optionally use those for the anchor tags as well. > > See the attached patch for a possible way of doing this. > > As always, you are welcome to make any further changes. We can indeed

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-28 Thread Ihor Radchenko
Ihor Radchenko writes: > Protesilaos Stavrou writes: > >> With regard to the disambiguation scheme, I am playing around with >> various scenaria to see how Org HTML export behaves. Using the >> following: >> ... >> This is test 2 > role="doc-backlink">1 >> ... >> This is test 3 >

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-28 Thread Ihor Radchenko
Protesilaos Stavrou writes: >> See the attached tentative patch. > >> [... 144 lines elided] > > Thank you! I just tried it. I encountered two problems with it, which I > am addressing with the two attached patches (feel free to modify as > needed). In short: > > 1. The footnote definitions at

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-26 Thread Max Nikulin
On 26/04/2024 15:17, Protesilaos Stavrou wrote: Since we are now using labels for the HTML export, I think it makes sense to optionally use those for the anchor tags as well. [...] +(defcustom org-html-footnote-use-label-for-anchor-text nil Another option may be to rely on the existing one:

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-26 Thread Protesilaos Stavrou
Hello again! A follow-up on the patches below: > From: Protesilaos Stavrou > Date: Fri, 26 Apr 2024 10:55:50 +0300 > [... 41 lines elided] > Thank you! I just tried it. I encountered two problems with it, which I > am addressing with the two attached patches (feel free to modify as > needed).

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-26 Thread Protesilaos Stavrou
> From: Ihor Radchenko > Date: Sat, 13 Apr 2024 14:00:48 + > > Protesilaos Stavrou writes: > >> With regard to the disambiguation scheme, I am playing around with >> various scenaria to see how Org HTML export behaves. Using the >> following: >> ... >> This is test 2 >

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-13 Thread Ihor Radchenko
Protesilaos Stavrou writes: > With regard to the disambiguation scheme, I am playing around with > various scenaria to see how Org HTML export behaves. Using the > following: > ... > This is test 2 role="doc-backlink">1 > ... > This is test 3 role="doc-backlink">1 > > Notice that the

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-12 Thread Protesilaos Stavrou
> From: Ihor Radchenko > Date: Wed, 10 Apr 2024 14:31:22 + > > Protesilaos Stavrou writes: > >> Though I should have clarified my intent earlier: the idea is to use the >> label as a fixed reference to the footnote, so that the link does not >> change between exports. This is the same

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-10 Thread Ihor Radchenko
Protesilaos Stavrou writes: > Though I should have clarified my intent earlier: the idea is to use the > label as a fixed reference to the footnote, so that the link does not > change between exports. This is the same principle as what we do with > links to headings that have a CUSTOM_ID. > > As

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-10 Thread Protesilaos Stavrou
Thank you Ihor for looking into this! > From: Ihor Radchenko > Date: Fri, 5 Apr 2024 14:33:49 + > [... 13 lines elided] >> I looked into the ox.el and noticed that the export data does include >> the labels. But 'org-html-footnote-reference' does not have a call to >> get the label: it

Re: [BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-05 Thread Ihor Radchenko
Protesilaos Stavrou writes: > I have an Org file with contents like the following: > > This is a test 1 [fn:n24aa:These are the contents] and here is more. > > When I do an HTML export, the footnote's label (n24aa) is not preserved > in the exported HTML. Is this intended behaviour? I was

[BUG] HTML export does not preserve footnote label [9.6.15 (release_9.6.15 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-04-05 Thread Protesilaos Stavrou
Dear maintainer, I have an Org file with contents like the following: This is a test 1 [fn:n24aa:These are the contents] and here is more. When I do an HTML export, the footnote's label (n24aa) is not preserved in the exported HTML. Is this intended behaviour? I was expecting it to keep the