PDF→EPUB: Add ARIA role for references to footnotes.

This commit is contained in:
tastytea 2021-03-29 16:50:55 +02:00
parent fb921af466
commit c67fd6f310
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,8 @@ the EPUB right now. I found that the footnote-numbers are usually preceded by a
space and followed by a space or `<`. I use the find & replace function in
Calibre in Regex-mode to convert them to hyperlinks.
Find: ``&nbsp;([0-9]{1,3})([ <])`` (note the leading space) +
Replace: `<sup><a epub:type="noteref" href="#fn1_\1">\1</a></sup>\2`
Find: ``&nbsp;([0-9]{1,3})([ <])`` (note the leading space) + Replace: `<sup><a
epub:type="noteref" role="doc-noteref" href="#fn1_\1">\1</a></sup>\2`
Press kbd:[<f3>] to search through the text and kbd:[C-r] to replace.