Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 09-23-2024, 02:41 AM   #1
disain
Junior Member
disain began at the beginning.
 
disain's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2024
Location: Madrid, Spain
Device: Kindle/Books
InDesign 2024 and Sigil

Hello everyone. I use InDesign to export ePub files that are edited with tools such Oxygen, BBEdit or Sigil. From version 19, InDesign footnotes are exported as a <section> with a numbered list instead of a <div>, doubling the existing footnote references. This is annoying and requires heavy find/replace to return to the previous format. I have seen a couple of Sigil plugins to manage footnotes but don't know if any of them could do this. Any help is welcome.

Thanks!
disain is offline   Reply With Quote
Old 09-23-2024, 05:20 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,116
Karma: 5450818
Join Date: Nov 2009
Device: many
Would you please provide small snippets of code showing the links from the text into the footnotes and the footnote format and return link.

Why would a section tag vs a div tag matter?
KevinH is offline   Reply With Quote
Advert
Old 09-23-2024, 05:33 AM   #3
disain
Junior Member
disain began at the beginning.
 
disain's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2024
Location: Madrid, Spain
Device: Kindle/Books
Quote:
Originally Posted by KevinH View Post
Would you please provide small snippets of code showing the links from the text into the footnotes and the footnote format and return link.

Why would a section tag vs a div tag matter?
Sure, thanks for your answer, Kevin. ID2024 exports the note reference in the text as:

<span class="noteref"><span><a id="footnote-01-backlink" class="_idFootnoteLink" role="doc-noteref" epub:type="noteref" href="TITLE.xhtml#footnote-01">1</a></span></span>

And it used to be:

<span class="noteref"><span><a id="footnote-01-backlink" class="_idFootnoteLink" role="doc-noteref" epub:type="noteref" href="TITLE.xhtml#footnote-01">1</a></span></span>

The footnotes block (after each chapter) is now exported as a numbered list:

<section class="_idFootnotes">
<ol class="_idFootAndEndNoteOLAttrs">
<li id="footnote-01" class="_idFootnote"><p class="note"><a class="_idFootnoteAnchor" role="doc-backlink" href="TITLE.xhtml#footnote-01-backlink">1</a> Text of the note</p></li>
</ol>
</section>

Thanks.
disain is offline   Reply With Quote
Old 09-23-2024, 06:45 AM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,116
Karma: 5450818
Join Date: Nov 2009
Device: many
Technically, the footnote itself is missing the epub:type="footnote" which can break epub3 pop-up actions. And if there is no aside tag used, the footnotes will be seen in plain text when you scroll down (just like a print edition)

Are these the things you want to change?

Last edited by KevinH; 09-23-2024 at 12:38 PM.
KevinH is offline   Reply With Quote
Old 09-23-2024, 01:46 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,139
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by disain View Post
Hello everyone. I use InDesign to export ePub files that are edited with tools such Oxygen, BBEdit or Sigil. From version 19, InDesign footnotes are exported as a <section> with a numbered list instead of a <div>, doubling the existing footnote references. This is annoying and requires heavy find/replace to return to the previous format. I have seen a couple of Sigil plugins to manage footnotes but don't know if any of them could do this. Any help is welcome.

Thanks!
Is there a possibility of this eBook being read with software that's not ePub3 compatible enough? If that is the case, then you want...
Code:
<section>
<div class="_idFootnotes">
because ePub2 software won't use your class in the section. ePub2 software should ignore the <section>. This is ehy most ePub3 eBooks that are for sale do not put a class in <section>.

Last edited by JSWolf; 09-23-2024 at 01:48 PM.
JSWolf is online now   Reply With Quote
Advert
Old 09-24-2024, 05:31 AM   #6
disain
Junior Member
disain began at the beginning.
 
disain's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2024
Location: Madrid, Spain
Device: Kindle/Books
Quote:
Originally Posted by KevinH View Post
Technically, the footnote itself is missing the epub:type="footnote" which can break epub3 pop-up actions. And if there is no aside tag used, the footnotes will be seen in plain text when you scroll down (just like a print edition)

Are these the things you want to change?
Sure, Kevin. The ePub:type="footnote" is a saved search I use in the post-process after InDesign export the ePub. Not only footnotes are in plain text, but the note ref is duplicated in the pop-up note:


Quote:
Originally Posted by JSWolf View Post
Is there a possibility of this eBook being read with software that's not ePub3 compatible enough? If that is the case, then you want...
Code:
<section>
<div class="_idFootnotes">
because ePub2 software won't use your class in the section. ePub2 software should ignore the <section>. This is ehy most ePub3 eBooks that are for sale do not put a class in <section>.
Thanks for the tip, JS. I'm afraid it need to be ePub2 compatible...
Attached Thumbnails
Click image for larger version

Name:	screenshot.png
Views:	26
Size:	244.8 KB
ID:	210975  
disain is offline   Reply With Quote
Old 09-24-2024, 09:42 AM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,116
Karma: 5450818
Join Date: Nov 2009
Device: many
"section" was not a tag under the epub2 spec. So the way to make an epub3 compatible with an epub2 only e-reader, JSWolf is correct. move the class to an enclosing div supported by both. You can keep the section tag for epub3 and epub2 will then safely ignore it.

So InDesign created epub3 only code for some reason.

Last edited by KevinH; 09-24-2024 at 09:44 AM.
KevinH is offline   Reply With Quote
Old 09-24-2024, 10:58 AM   #8
disain
Junior Member
disain began at the beginning.
 
disain's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2024
Location: Madrid, Spain
Device: Kindle/Books
Quote:
Originally Posted by KevinH View Post
"section" was not a tag under the epub2 spec. So the way to make an epub3 compatible with an epub2 only e-reader, JSWolf is correct. move the class to an enclosing div supported by both. You can keep the section tag for epub3 and epub2 will then safely ignore it.

So InDesign created epub3 only code for some reason.
Thank you very much for pointing this out, didn´t know <section> was not in ePub2.
disain is offline   Reply With Quote
Old 09-24-2024, 01:29 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,139
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by disain View Post
Thank you very much for pointing this out, didn´t know <section> was not in ePub2.
Download and install Adobe Digital Editions 2.0.1 for Windows. Then you can see how your eBook will look as ePub2.

Here is a working link for ADE 2.0.1. https://archive.org/download/ade-2.0..._Installer.exe
JSWolf is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
InDesign via Sigil to Epub.... cletat Sigil 3 04-08-2013 03:14 AM
Comparison Sigil/ Indesign GraciousMe Sigil 13 11-15-2012 10:17 PM
InDesign CS6 and Sigil issue tuxedo73 ePub 2 09-06-2012 04:19 PM
InDesign to Sigil ralphiedee Sigil 5 06-09-2012 03:54 AM
Sigil vs InDesign stevej46 Workshop 24 11-02-2011 03:36 PM


All times are GMT -4. The time now is 02:26 PM.


MobileRead.com is a privately owned, operated and funded community.