|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2021
Device: Kindle
|
Indesign-epub-kindle formatting problem: footnotes export with massive indent.
Hi there. I’m exporting a large file from InDesign to epub and when converted (any way) to kindle-friendly files it appears on all kindle devices with footnotes with vast and annoying indents. Seems to be a common problem, or one that other people on the interweb have had, but the solution — editing the css in Calibre — is beyond me. I can find the css file and footnotes ‘entry’, but it all looks totally normal. I’ve fiddled with parameters, but no dice. Always ends up the same. Can anyone help?
|
![]() |
![]() |
![]() |
#2 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,631
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Use good styles, links & bookmarks to-from and appendix* (instead of actual footnotes), save-as docx and convert in Calibre to epub2. Amazon KDP uses epub2 uploads.
Indesign is a kludge / fudge for epub or kindle. It's for PDFs and ultimately print. Also actual footnotes work poorly and there is no assurance of correct rendering on an app or device. * Make each footnote one paragraph in an Appendix Chapter. Each one is linked to from source text and has a text [Return to <some named text>] to click on to go back as 'Back' doesn't sensibly return from a link on many devices/apps. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2021
Device: Kindle
|
Thanks, but there’s no option to export to docx, and, with the size of this document, pasting into word and reconstructing styles would be a gargantuan task. Surely there’s some way to fiddle with the css somehow to get rid of this indent? I’ve noticed it happens with quite a few retail books, even from big publishers, so it might not be solvable.
|
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
try with:
Code:
* { margin-left: 0 !important; padding-left: 0 !important; text-indent: 0 !important; } |
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 312
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
Lots of InDesign-generated EPUBs suffer from loads of redundant classes. That may be part of why you’re having limited luck tweaking the css, can happen when you’re adjusting .footnote-class_97 instead of an identical .footnote-class_62. Inheritance/specificity might be a factor too.
The DOCX tip above is definitely worth thinking about. If you can’t just roll back to your source manuscript, you could probably use something like calibre or pandoc to convert the messy EPUB to a new DOCX and rebuild from there. Usually faster/easier than cleaning up an InDesign ePub. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2021
Device: Kindle
|
Thank you both very much! Unfortunately the code doesn’t work and the faffing involved in tidying up the word file to spec is far beyond me.
![]() |
![]() |
![]() |
![]() |
#7 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,631
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
it's not a gargantuan task. Also InDesign is really a paper publishing tool, not a content creation tool. Use it to convert Word or Writer imports to PDF for paper publication, if the built in PDF output in Word (plugin on older versions) or Writer doesn't do what you want. Note that margins, headers, footers, footnotes, styles, page size, page numbering (meaningless on ebooks) fonts, image resolution, front matter and rear matter are different for an ebook target and paper. Also ebooks have search so a paper style detail index/concordance is pointless). |
|
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
I believe InDesign footnote sections always begin with a <div class="_idFootnotes">. For example, here are the first 2 footnotes from a chapter: Spoiler:
You see that part that says: Code:
<p class="Footnote-text"> What you'll want to do is go into your CSS file, and find where it says: Code:
p.Footnote-text In my InDesign book's CSS, it looks like this: Spoiler:
Once you give that answer, we can probably help further. - - - - - - - - CSS Side Note: In English, the above CSS says: "Hey, find a paragraph with a class called Footnote-text", then make the:
What's probably the issue in yours is a huge margin-left OR something fishy with padding. InDesign Export Note: InDesign's HTML+CSS is usually quite a tangled mess. Ultimately, what you'd want to do is actually clean and make everything human-readable. This is what that same code looks like in my final version of the EPUB: HTML: Code:
<p class="footnote"><a href="#ft1" id="fn1">[1]</a> My emphasis. Murray Rothbard, “Big-Government Libertarians,” in Lew Rockwell, ed., <i>The Irrepressible Rothbard</i> (Auburn, AL: Mises Institute, 2000), p. 101.</p> <p class="footnote"><a href="#ft2" id="fn2">[2]</a> Murray N. Rothbard, “Egalitarianism and the Elites,” <i>Review of Austrian Economics</i> 8, no. 2 (1995): 45.</p> Code:
p.footnote { margin-top: 1em; text-indent: 0; } And the CSS just says: "Hey, don't indent footnotes... and add a little margin above them too!" Easy peasy, lemon squeezy! ![]() Last edited by Tex2002ans; 02-16-2021 at 03:11 AM. |
|
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 679
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
I bought a book today that seems to be an Indesign export. Every word has its own formatting. On my ereader there are huge margins, so it's not readable.
I have tried changing/removing stuff, but haven't been able to make anything helpful. Ideas? Code:
<body id="xx" lang="en-US" style="width:396px;height:612px" xml:lang="en-US"> <div class="Basic-Text-Frame" id="_idContainer250"> <div style="width:5760px;height:9540px;position:absolute;top:0px;left:0px;-webkit-transform-origin: 0% 0%; -webkit-transform: translate(0px,5.83px) rotate(0deg) scale(0.05);transform-origin: 0% 0%; transform: translate(0px,5.83px) rotate(0deg) scale(0.05);"> <p class="Chapter-Title ParaOverride-1"><span class="CharOverride-6" id="_idTextSpan41405" style="position:absolute;top:0px;left:1513.44px;letter-spacing:-0.24px;">Time </span><span class="CharOverride-6" id="_idTextSpan41406" style="position:absolute;top:0px;left:2402.9px;letter-spacing:-0.32px;">to </span><span class="CharOverride-6" id="_idTextSpan41407" style="position:absolute;top:0px;left:2917.84px;letter-spacing:-1.76px;">Forgive</span></p> <p class="Drop-Cap ParaOverride-1"><span class="CharOverride-14" id="_idTextSpan41408" style="position:absolute;top:2537.09px;left:-34.4px;">“</span><span class="CharOverride-3" id="_idTextSpan41409" style="position:absolute;top:2589.14px;left:326.11px;">I </span><span class="CharOverride-3" id="_idTextSpan41410" style="position:absolute;top:2589.14px;left:515.94px;letter-spacing:0.87px;">want </span><span class="CharOverride-3" id="_idTextSpan41411" style="position:absolute;top:2589.14px;left:1107.67px;letter-spacing:-1.22px;">you </span><span class="CharOverride-3" id="_idTextSpan41412" style="position:absolute;top:2589.14px;left:1567.94px;letter-spacing:-0.62px;">to </span><span class="CharOverride-3" id="_idTextSpan41413" style="position:absolute;top:2589.14px;left:1877.72px;letter-spacing:1.83px;">imagine </span><span class="CharOverride-3" id="_idTextSpan41414" style="position:absolute;top:2589.14px;left:2773.35px;letter-spacing:-0.23px;">your </span><span class="CharOverride-3" id="_idTextSpan41415" style="position:absolute;top:2589.14px;left:3321.68px;text-rendering:optimizeLegibility;letter-spacing:0.73px;">reflection </span><span class="CharOverride-3" id="_idTextSpan41416" style="position:absolute;top:2589.14px;left:4357.37px;letter-spacing:1.21px;">in </span><span class="CharOverride-3" id="_idTextSpan41417" style="position:absolute;top:2589.14px;left:4666.41px;">a </span><span class="CharOverride-3" id="_idTextSpan41418" style="position:absolute;top:2589.14px;left:4887.07px;letter-spacing:1.9px;">beautiful </span><span class="CharOverride-3" id="_idTextSpan41419" style="position:absolute;top:2853.14px;left:326.11px;letter-spacing:1.48px;">mirror—the </span><span class="CharOverride-3" id="_idTextSpan41420" style="position:absolute;top:2853.14px;left:1662.32px;letter-spacing:0.75px;">person </span><span class="CharOverride-3" id="_idTextSpan41421" style="position:absolute;top:2853.14px;left:2481.02px;letter-spacing:-0.64px;">who </span><span class="CharOverride-3" id="_idTextSpan41422" style="position:absolute;top:2853.14px;left:2968.21px;letter-spacing:1.02px;">caused </span> |
![]() |
![]() |
![]() |
#10 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,451
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Last edited by DNSB; 05-04-2021 at 03:30 PM. |
|
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 679
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
Thanks David, will check out the link.
I did read it as a kepub, but there is no changing of font size, margins, etc. It's available for free here if you, or anyone else want to take a peek https://www.kobo.com/us/en/ebook/petrified-minds |
![]() |
![]() |
![]() |
#12 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,451
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Other items: the ebook does not have a cover image as such. When I imported it into calibre, the title was "Petrified Minds TRIPLE KINDLE FINAL.mobi" and the author was unknown. The xhtml navigation document has a PageList but no ToC entries which is yet another standard violation. It looks as if a goodly chunk of the stylesheet is missing (Indented-Paragraph, Drop-Cap, Chapter-Title, etc., etc.). Somewhat interestingly, from the content.opf, this epub is intended to be read in landscape with the pages carefully labelled as left/right and the Apple metadata to allow using embedded fonts is present: Code:
<meta property="ibooks:specified-fonts">true</meta> <meta property="rendition:layout">pre-paginated</meta> <meta property="rendition:orientation">landscape</meta> <meta property="rendition:spread">both</meta> Code:
<itemref idref="Petrified_Minds_TRIPLE_KINDLE_FINAL.mobi-1" properties="page-spread-right"/> <itemref idref="Petrified_Minds_TRIPLE_KINDLE_FINAL.mobi-2" properties="page-spread-right"/> <itemref idref="Petrified_Minds_TRIPLE_KINDLE_FINAL.mobi-3" properties="page-spread-left"/> <itemref idref="Petrified_Minds_TRIPLE_KINDLE_FINAL.mobi-4" properties="page-spread-right"/> <itemref idref="Petrified_Minds_TRIPLE_KINDLE_FINAL.mobi-5" properties="page-spread-left"/> <itemref idref="Petrified_Minds_TRIPLE_KINDLE_FINAL.mobi-6" properties="page-spread-right"/> |
|
![]() |
![]() |
![]() |
#13 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
The way you can tell is InDesign wraps every single individual word in a <span> and absolutely positions it: Spoiler:
Compare to: Code:
<p class="Drop-Cap ParaOverride-1">“I want you to imagine your reflection [...]</p> Quote:
And I have no idea how that passed Kobo's Quality Control in the first place. Quote:
And the book looks like it's a basic Fiction book, just pure text. There's absolutely zero reason for that to be a fixed-format book. Last edited by Tex2002ans; 05-05-2021 at 01:30 AM. |
|||
![]() |
![]() |
![]() |
#14 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 679
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
Just for fun I printed the ebook (from Calibre viewer) to pdf, which I would run through Finereader.
The result contained a bunch of blue squares, which Acrobat says are links. This messes up the ocr. Any ideas to not have that included in the "printout"? |
![]() |
![]() |
![]() |
#15 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
What's the desired end result? There are myriad things that you can try to do, (all of them laborious) but the destination matters. I will say, trying to do almost anything with a fixed-layout ePUB is...let's just say it's an uphill battle. Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS Styles From InDesign 5.5 Export Problem | SamL | ePub | 4 | 11-10-2011 01:46 PM |
Export to ePub from InDesign CS5 | gardefjord | ePub | 42 | 10-29-2011 10:42 AM |
InDesign export as ePub? | Alda | General Discussions | 3 | 01-24-2011 12:59 PM |
EPUB Expert Needed: Cant properly export epub from InDesign | crottmann | ePub | 17 | 08-27-2010 10:23 AM |