04-18-2021, 10:45 PM | #1 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
"class="calibre"" in the <html header line?
I've recently noticed that when converting from .odt to epub, I'm getting the following at the top of each html file:
Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" class="calibre"> Can someone tell me if a class code actually belongs there? Or is this a bug? Thanks! |
04-18-2021, 11:23 PM | #2 |
creator of calibre
Posts: 44,539
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There will be a class there if the input document has some styling for the html tag. Its nto a bug, though the thoroughly useless epubcheck will complain about it.
|
Advert | |
|
04-19-2021, 12:55 AM | #3 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Ah. Thanks you! Probably yet another update to Writer added this. Time for another saved search to run on new conversions...
|
06-19-2023, 03:33 AM | #4 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jun 2023
Device: Kindle android app
|
Will it ruin my book if I remove this class from all the chapters?
If the "calibre" styles are essential, then I suppose I could always use html { margin: 0; padding: 0;} and avoid the need for a class identifier in the html tag... |
06-19-2023, 06:41 AM | #5 | |
the rook, bossing Never.
Posts: 12,352
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Classes is how ebooks should be built. |
|
Advert | |
|
06-19-2023, 11:09 AM | #6 |
Well trained by Cats
Posts: 30,443
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
define Once, use many.
Class="whatever" is the USE .whatever { <styling stuff here> } is the definition. Make a change in ONE single place and all the uses are done |
06-19-2023, 11:44 AM | #7 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
No it won't hurt to remove it. That is what I've been doing ever since it started.
|
06-20-2023, 08:19 AM | #8 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jun 2023
Device: Kindle android app
|
|
06-20-2023, 09:58 AM | #9 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
|
06-21-2023, 09:08 AM | #10 |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I put no margin in the body. That's so the margin can be set by the Reader.
|
06-21-2023, 01:13 PM | #11 |
Well trained by Cats
Posts: 30,443
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Back when I was using my first reader (Astak), I set skewed side margins: 2pt, 16pt, because RMSDK put block numbers on the right that stomped upon any text there. (I also set BODY font to 1.2em to make those numbers appear small. There was a REASON. No longer really needed.
|
06-21-2023, 02:25 PM | #12 | |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DOCX->EPUB Header / <p class=" "> | ElPeregrino | Conversion | 5 | 09-05-2018 03:29 AM |
PDF - relation between "line un-wrapping factor" and "unwrap line" (heuristic proc.) | dr_Fell | Conversion | 1 | 10-16-2017 11:56 PM |
Class action: "sale" royalties on "licensed" ebooks | drjenkins | News | 2 | 06-02-2016 09:44 AM |
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" | therealjoeblow | Calibre | 15 | 07-25-2011 04:14 PM |