View Single Post
Old 02-16-2021, 02:24 AM   #8
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Wabznazm View Post
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.
Can you show the HTML for a footnote, and then show the relevant CSS?

I believe InDesign footnote sections always begin with a <div class="_idFootnotes">.

For example, here are the first 2 footnotes from a chapter:

Spoiler:
Code:
<div class="_idFootnotes">
      <div id="footnote-006" class="_idFootnote">
        <p class="Footnote-text"><span class="CharOverride-2"><a class="_idFootnoteAnchor _idGenColorInherit" href="../Text/Chapter_1_A_Realistic_Libertarian.xhtml#footnote-006-backlink">1</a></span>My emphasis. Murray Rothbard, “Big-Government Libertarians,” in Lew Rockwell, ed., <span class="CharOverride-1">The Irrepressible Rothbard</span> (Auburn, AL: Mises Institute, 2000), p. 101</p>
      </div>

      <div id="footnote-005" class="_idFootnote">
        <p class="Footnote-text"><span class="CharOverride-2"><a class="_idFootnoteAnchor _idGenColorInherit" href="../Text/Chapter_1_A_Realistic_Libertarian.xhtml#footnote-005-backlink">2</a></span>Murray N. Rothbard, “Egalitarianism and the Elites,” <span class="CharOverride-1">Review of Austrian Economics </span>8, no. 2 (1995): 45.</p>
      </div>


You see that part that says:

Code:
<p class="Footnote-text">
The important part is the "Footnote-text". That's called a class.

What you'll want to do is go into your CSS file, and find where it says:

Code:
p.Footnote-text
In plain English, this means "a paragraph with a class called Footnote-text".

In my InDesign book's CSS, it looks like this:

Spoiler:
Code:
p.Footnote-text {
	color:#000000;
	font-family:"Minion Pro Medium", sans-serif;
	font-size:0.75em;
	font-style:normal;
	font-variant:normal;
	font-weight:normal;
	line-height:1.2;
	margin-bottom:0;
	margin-left:0;
	margin-right:0;
	margin-top:0;
	orphans:1;
	page-break-after:auto;
	page-break-before:auto;
	text-align:justify;
	text-decoration:none;
	text-indent:0;
	text-transform:none;
	widows:1;
}


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:
  • color black
  • font "Minion Pro Medium"
  • font size 0.75em
  • font style, variant, and weight "Normal"
  • line-height 1.2
  • [...]

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>
CSS:

Code:
p.footnote {
    margin-top: 1em;
    text-indent: 0;
}
The HTML is nearly as easy as reading the book.

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.
Tex2002ans is offline   Reply With Quote