Hi,
I'm using Calibre 4.9.1. I was so close archiving footnote, but there is still bug that prevent me from having the perfect footnote,
here is what I've done so far:
Quote:
I've figured it out. To make the inline footnote works, must put the footnotes in the "Footnotes" section. Here is the example:
I have the file: "HDN is the best.html"
Code:
<html>
<head>
<title>HDN is the best</title>
</head>
<body>
<h1>Best of HDN</h1>
<p><sup><a id='fs-1' href='#ft-1'>[1]</a></sup> HDN is the best</p>
<p><sup><a id='fs-2' href='#ft-2'>[2]</a></sup> HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<p>HDN is the best</p>
<h1>Footnotes</h1><br>
<sup><a id='ft-1' href='#fs-1'>[1]</a></sup> It's true.<br>
<sup><a id='ft-2' href='#fs-2'>[2]</a></sup> It's double true.<br>
</body>
</html>
There, just convert the file "HDN is the best.html" and see for yourself.
Now here is the tip: when you convert this file "HDN is the best.html" to mobi file, Calibre may count footnotes as chapters, that'd be a mess for your table of content. So you need to prevent Calibre from doing this by using the cmd (using the option --toc-threshold 0) instead of using UI, here is the cmd:
Code:
ebook-convert.exe "E:\temp\TempMisc\HDN is the best.html" "E:\temp\TempMisc\HDN is the best.mobi" --toc-threshold 0
location of ebook-convert.exe is .\[Your installed Calibre folder]\Calibre\ebook-convert.exe
Note: this tested and work on my Kindle Paperwhite (second generation), but doesn't work on Kindle app for my iPhone. But it's good enough for me because I read mainly on Kindle Paperwhite.
|
So here is my problem:
1. On my iPhone: These inline footnotes don't work on Kindle app for my iPhone. It treats all my footnotes as links (doesn't popup but take me to footnotes)
2. On my Kindle Paperwhite: There are links that aren't footnotes, but my Kindle Paperwhite treats them at footnotes. For example, I have this html code:
Code:
<h1>Genesis</h1>
<a href='../toc.html#toc'>(return to table of contents)</a>
<br>
<a href='#c-0'>1</a> • <a href='#c-1'>2</a> • <a href='#c-2'>3</a> • <a href='#c-3'>4</a> • <a href='#c-4'>5</a> • <a href='#c-5'>6</a> • <a href='#c-6'>7</a> • <a href='#c-7'>8</a> • <a href='#c-8'>9</a> • <a href='#c-9'>10</a> • <a href='#c-10'>11</a> • <a href='#c-11'>12</a> • <a href='#c-12'>13</a> • <a href='#c-13'>14</a> • <a href='#c-14'>15</a> • <a href='#c-15'>16</a> • <a href='#c-16'>17</a> • <a href='#c-17'>18</a> • <a href='#c-18'>19</a> • <a href='#c-19'>20</a> • <a href='#c-20'>21</a> • <a href='#c-21'>22</a> • <a href='#c-22'>23</a> • <a href='#c-23'>24</a> • <a href='#c-24'>25</a> • <a href='#c-25'>26</a> • <a href='#c-26'>27</a> • <a href='#c-27'>28</a> • <a href='#c-28'>29</a> • <a href='#c-29'>30</a> • <a href='#c-30'>31</a> • <a href='#c-31'>32</a> • <a href='#c-32'>33</a> • <a href='#c-33'>34</a> • <a href='#c-34'>35</a> • <a href='#c-35'>36</a> • <a href='#c-36'>37</a> • <a href='#c-37'>38</a> • <a href='#c-38'>39</a> • <a href='#c-39'>40</a> • <a href='#c-40'>41</a> • <a href='#c-41'>42</a> • <a href='#c-42'>43</a> • <a href='#c-43'>44</a> • <a href='#c-44'>45</a> • <a href='#c-45'>46</a> • <a href='#c-46'>47</a> • <a href='#c-47'>48</a> • <a href='#c-48'>49</a> • <a href='#c-49'>50</a>
<h1 id='c-0'><a href='#'>Genesis 1</a></h1>
When convert to mobi file, my Kindle treats the links: "1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 •" as footnotes, in my Kindle Paperwhite, I see these number is right below the text "(return to table of contents)".
So I really want to know how to properly make inline footnotes for html to mobi conversion using calibre, maybe there is a special id for footnotes?
Thanks for reading.