07-29-2011, 12:12 PM | #1 |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Bug in ePub > ePub
When you convert an ePub that has embedded font code in the CSS to ePub, Calibre decides it's a good idea to take out the font code from the CSS and put it in all of the XML files. Why?
This is a rather silly thing to do (IMHO) and is a bug that should (IMHO) be fixed. |
07-29-2011, 12:15 PM | #2 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Because that allows you to have per html global style rules. All @ css rules are put into each html flow separately.
|
Advert | |
|
07-29-2011, 12:17 PM | #3 | |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
In fact, I try to do away with the @css rules other then font stuff. As long as I am here, why does Calibre also put in a top and bottom margin of 5pt (in every XML) when it converts to ePub when I'm specifying a top and bottom margin of 0? |
|
07-29-2011, 01:50 PM | #4 |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Probably I am misunderstanding something as I am not a CSS person.
Mostly I use the tweak epub option and edit the stylesheet.css when a file defies my attempts to make it how I want it to be. (Weird margins, indents, coloured backgrounds, bold, italics etc.) This seems to change all of the html files in the epub including the font and font sizes, styles? Helen |
07-29-2011, 03:34 PM | #5 | |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
|
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EPUB to MOBI Bug? | Lornoi | Conversion | 1 | 03-17-2011 01:03 PM |
Curious Quirk- Cursed epub or bug? | p_a_smith | Kobo Reader | 4 | 09-15-2010 12:02 AM |
iBooks - ePub - Linking Bug | lcoleman79 | Apple Devices | 2 | 06-30-2010 11:06 AM |
0.6.37 convert to ePub bug(?) | cutterjohn42 | Calibre | 1 | 02-05-2010 09:14 AM |
Bug in Adobe EPUB implementation | Lord KiRon | ePub | 3 | 09-05-2009 09:06 AM |