Quote:
Originally Posted by Kyriosity
Thanks for the patient instruction!
Here's the bit with the first footnote reference:
[...]
Is that sufficient?
|
Can you post the CSS as well?
You see where it says:
In Sigil, you can
Right-Click on the word "Footnotes"
> Go To Link Or Style.
Can you also do this for:
- <div class="_idFootnotes">
- <aside id="footnote-025" class="_idFootnote">
- <a class="_idFootnoteAnchor
* * *
Side Note: If "Go To Link Or Style" just leads you to something generic like:
Code:
body, div, dl, dt, dd, h1, h2, h3, h4, h5, h6, p, pre, code, blockquote {
margin:0;
padding:0;
border-width:0;
}
you don't have to post them.
Only post if it leads you to something specific like:
Quote:
Originally Posted by phillipgessert
What's supposed to have happened is: the number should have appeared in that <a> at the front for the backlink, but it's empty. You can wrangle a fix by shoving that <a> to the end via regex and filling it [...]
But that won't work well if the numbers don't reset at every chapter, because e.g. <ol start="11"> doesn't work reliably for ebook. I can probably whip up an example for what I'm describing above, or maybe others will have better ideas.
|
Yeah, I noticed the empty <a> as well.
This is why I was suspecting it'll be complicated numbering via
CSS (counters (?)).
Usually, in these cases, I see some really ugly nested <ol> instead—similar to Calibre's footnote/endnote code. (But I don't see that here.)
Quote:
Originally Posted by Kyriosity
Yes, they are supposed to reset to 1 every chapter. The puzzling thing for me is that I've exported dozens of epubs with pretty much the exact same settings (I always pull up a previous file to build the next book so things behave the same way) and never run into this before.
|
If you want, you could send me the problematic EPUB:
- Upload EPUB to Dropbox (or similar filesharing website)
- Click my Username to the left of my post
- Scroll to bottom of page. There's a "Send a private message to Tex2002ans" link. Click it.
- Send me a Private Message + send me the URL to the file.
I'll be able to take an exact look and figure out what the heck is going on.
* * *
Side Note: Ultimately, what you want for footnotes is actual numbers baked into the text itself.
So having a:
Code:
<p class="footnote"><a href="#ft2" id="fn2">[2]</a> Herbert Spencer, <i>Principles of Sociology</i>, 2d ed. (New York: D. Appleton Co., 1916), vol. 2, pp. 378–79.</p>
which would appear as "[2]".
Instead of having something like yours:
Code:
<a href="#ft2" id="fn2"></a>
where some auto-numbering mumbo jumbo is happening. :P
Quote:
Originally Posted by phillipgessert
In InDesign, you might doublecheck that Numbers: Map to Ordered Lists is set under the Text section of the epub export options. Or if it is, see what happens if it's not. It's worth a check since it's relatively quick and I guess it could cause something like this.
|
Also seems like there may be an option:
- Convert to Text
- Convert numbered lists into paragraphs that begin with the paragraph’s current number as text.
which may help.
Quote:
Originally Posted by phillipgessert
It’d be tough to diagnose it in terms of what went wrong in InDesign, odds are it choked on something or other in the Paragraph Styles involved,[...]
|
Yeah... I'm not familiar enough with messing with the bells/whistles inside of InDesign itself.
But I am familiar with the kind of messes it spits out. :P
Looks like this is EPUB3 as well, so maybe that threw a wrench in things. (It probably decided to spit out more complicated CSS3... because "Well, it'll show up fine in iBooks!!!")