View Single Post
Old 07-30-2019, 01:51 AM   #21
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: 47,053
Karma: 169810634
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
Indeed, I was planning on adding a stylesheet/CSS to Calibre's custom CSS option.
Thanks for your suggestion, I appreciate that.
You're welcome.

Quote:
Originally Posted by MistaPrime View Post
The HTML above was found by Googling "footnote styles", I frankly didn't even notice it was from a Gov site but that does prove a bigger point, that even larger sites do not use <sup> in their HTML.
Very likely because their programmers understand the use of cascading style sheets and how useful they are to replace endless in-line styles -- you did notice the 3 stylesheets linked at the start of the HTML snippet? Anytime you want consistency between segments of your site when multiple people are maintaining it, common stylesheets are among your best friends. Yes, you can use inline styles, you can declare styles at the start of every HTML file but anyone who uses those techniques instead of a linked stylesheet is living in the '80s.

If you had downloaded the stylesheets associated with that page and placed them in the HTML archive, the footnote class would have been preserved and used.

Edit: I tested this by using Firefox's Save Page As on Legislative Summary of Bill C-99: An Act to amend the Citizenship Act, saving the result as a .zip file which I imported into calibre and then converted to epub. See the snippet of the epub open in PageEdit attached as an image. Notice the footnotes references are superscripted. The exact stylesheet structure was not preserved due to calibre's love of flattening stylesheets but the intent was preserved.

Quote:
Originally Posted by MistaPrime View Post
Regarding the competency level comment, I am not good at reading between the lines but if you are attempting to judge my competency in HTML based on the request above, you may want to re-read the request.
I would question the competency of anyone as a web page/HTML programmer or epub creator who did not realize that a style pointed at by a class= must exist to be of any use. Much as I would question the competency of a person who dropped a fish into an empty aquarium and then complained it was not swimming around.

Quote:
Originally Posted by MistaPrime View Post
Thanks for the input, your help has been greatly appreciated.
Good luck!
Attached Thumbnails
Click image for larger version

Name:	snippet.png
Views:	184
Size:	107.4 KB
ID:	172682  
DNSB is offline