View Single Post
Old 07-25-2019, 09:37 PM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,471
Karma: 169115146
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by MistaPrime View Post
Let's try it a different way;


Please convert this HTML: https://pastebin.com/Quk0kqxh
into the ePUB.

And the output of the footnote should look like this:

Attachment 172571

Notice how the footnote number is styled as a superscript. Is smaller and higher than the rest of the text.

Can anyone do that using Calibre with that HTML?
If yes, how?

When I tried the footnote appeared like a regular text size, not a superscript. And it is because Calibre removes classes from footnote links.
You are using a class 'footnote' which is not defined anywhere in the HTML snippet you posted. I ran a report in Sigil and came up with the attached image. You will notice that there are 13 style classes in the HTML. There are no CSS files to supply those classes.

In the HTML file, there are references to 3 stylesheets between the head and end of head tags:

Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Legislative Summary of Bill C-XX: </title>

<link rel="stylesheet" type="text/css" href="/Content/LOP/ResearchPublications/styles/2012pubs.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="/Content/LOP/ResearchPublications/styles/2012pubs_print.css" media="print"/>


<!--Remove stylesheet below before posting. Only need stylesheets above -->
<link href="../../../Styles/2012pubs.css" rel="stylesheet" type="text/css" media="screen"/>
</head>
Are you expecting calibre to browse the internet searching for those stylesheets? When I download a page from the internet using Firefox, I use the Save Page As function which downloads the related files as well as the main page.
Attached Thumbnails
Click image for larger version

Name:	Style_classes_in_HTML_files.png
Views:	271
Size:	35.5 KB
ID:	172592  

Last edited by DNSB; 07-26-2019 at 05:59 PM.
DNSB is offline