09-18-2020, 11:43 PM | #1 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite (2nd gen)
|
Writing inline footnotes for html to mobi conversion using calibre
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:
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> 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. |
|
09-20-2020, 12:19 AM | #2 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite (2nd gen)
|
According to Amazon Text Guidelines
Quote:
|
|
09-20-2020, 12:35 AM | #3 |
creator of calibre
Posts: 43,985
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Convert to azw3 not mobi
|
09-20-2020, 03:24 AM | #4 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite (2nd gen)
|
I tried to send azw3 file to Kindle app on iPhone, but I can't:
According to Send to Kindle by E-mail: Quote:
and about Is there any way I can tell my Kindle Paperwhite that those links are not footnotes? I tried many things (eg. I changed "1 2 " to "Genesis 1 Genesis 2 ", but it doesn't work). |
|
09-20-2020, 04:14 AM | #5 |
creator of calibre
Posts: 43,985
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use a USB cable to send files to the kindle, or convert to joint mobi which will contain the azw3 and the old style mobi in it.
|
09-20-2020, 04:51 AM | #6 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite (2nd gen)
|
Quote:
Code:
<a href='#c-0'>1</a> Code:
<h1 id='c-0'><a href='#'>Genesis 1</a></h1> Code:
<h1 id='c-0'>Genesis 1</h1> |
|
09-20-2020, 05:03 AM | #7 | ||
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite (2nd gen)
|
I don't know if iPhone allow USB cable to copy books into Kindle app.
Quote:
Code:
ebook-convert.exe "E:\HDN.html" "E:\HDN.joint-mobi???" --toc-threshold 0 Quote:
|
||
09-20-2020, 06:31 AM | #8 |
creator of calibre
Posts: 43,985
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
09-21-2020, 12:16 AM | #9 |
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite (2nd gen)
|
Ok, here is my test (failed though)
I have the file "HDN.html" Code:
<html> <head> <title>HDN is the best</title> </head> <body> <h1>Best of HDN</h1> <p>This footnote example uses the aside element with the epub:type attribute and bi-directional hyperlinks.<sup><a id="source" href="#ft-1-1" epub:type="noteref">1</a></sup></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> <aside id="ft-1-1" epub:type="footnote"> <p><a epub:type="noteref" href="#source">1.</a> This is the footnote text, which should be placed at the end of the chapter or book.</p> </aside> </body> </html> Code:
ebook-convert.exe "E:\HDN.html" "E:\HDN.mobi" --toc-threshold 0 --mobi-file-type both But in the end, this won't help, the Kindle app on iPhone still not recognize the inline footnote, but still treats it as link. Well, I guess I have to accept it, at least I can make it work on my Kindle Paperwhite. |
09-21-2020, 07:34 AM | #10 |
Grand Sorcerer
Posts: 6,550
Karma: 84810789
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
The Kindle for iOS app does not support KF8 (azw3) format so even if you create a file that has both old and new formats, the old MOBI format part of it will be used on iOS devices.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub to mobi conversion - no footnotes | Percivale | Conversion | 5 | 10-21-2015 07:31 PM |
Inline footnotes - solved? | Kamikuza | Kindle Formats | 64 | 09-19-2014 10:21 AM |
Right-to-left writing, conversion to mobi problem. | alexandrelm | Conversion | 1 | 10-25-2012 12:08 PM |
Problem with html -> Mobi conversion - html tags visible. | khromov | Calibre | 9 | 08-06-2011 11:25 AM |
clean HTML or PDF before mobi conversion in Calibre | mark235 | Calibre | 9 | 12-25-2010 09:37 PM |