Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 10-09-2016, 05:52 PM   #1
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,549
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Creating footnotes

I found out accidentally that if I have

Code:
<a href="#foo"><sup>*</sup></a>
aaaa
<a name="foo"></a>
zzzz
calibre appears to try to make zzz into a footnote, although the footnote is broken. If I create an azw3, in the book viewer I see zzzz in the footnote pane, although clicking the link does nothing. How do I

a) suppress this feature where I don't want it, and
b) create a footnote for real when I do want it?

thanks
Barty is offline   Reply With Quote
Old 10-09-2016, 11:53 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use

epub:type

Just google epub popup footnotes for more info.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-11-2016, 10:38 PM   #3
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,549
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Thanks. I followed instruction here https://www.mobileread.com/forums/sho...=249033&page=3 and elsewhere

I enabled debug-pipeline. In input, calibre changed my aside tag to a div. In processed, it changed epub:type property to epubU0003Atype (sic). The footnote shows up in the footnote pane in the calibre viewer, although the footnote text is visible in the main text. When loaded into kindle PW2 (azw3), I'm not getting popup footnotes, just regular links. epub is a mixed bag: works on google books, not mantano. In all cases, the footnote text is visible in the main book, probably because the aside got changed to div and epub:type is I'm not sure what now.

Any way to make calibre not touch my html? I am using preprocess_raw_html and do not have any remove_*
Barty is offline   Reply With Quote
Old 10-11-2016, 10:54 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Declare the epub namespace correctly and feed the conversion valid XHTML.
kovidgoyal is offline   Reply With Quote
Old 10-25-2016, 01:00 PM   #5
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,549
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Thank you. I added

Code:
<?xml version="1.0" encoding="utf-8"?>
<html xmlns:epub="http://www.idpf.org/2007/ops">
and that preserves the epub:type property.

It still changes my <aside> to <div>, however.

(Not sure why I posted this in Editor. Should be conversion or recipe.)
Barty is offline   Reply With Quote
Advert
Old 10-25-2016, 09:55 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That is for compatibility with old HTML renderers that dont understand HTML 5. For instance, neither MOBI nor EPUB 2 support HTML 5.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Footnotes? S Otteson Sigil 11 01-26-2011 10:14 PM
Footnotes Kumabjorn Amazon Kindle 1 07-10-2010 04:55 AM
footnotes trout Sony Reader 8 02-13-2010 01:08 PM
Footnotes . . . ? gaudentius Sony Reader 17 02-12-2009 05:04 PM
Footnotes PieOPah Workshop 5 01-22-2009 09:01 AM


All times are GMT -4. The time now is 03:20 PM.


MobileRead.com is a privately owned, operated and funded community.