![]() |
#1 |
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Epub to Epub convertion, Changes in css
Hello,
when converting an epub (made by sigil) to an epub, i noticed that many styles are added; actually every tag has now its own callibre??- style. Is there any way to adjust the things, callibre is doing here ? Something like have callibre avoid specific attributes or values which are an issue an a certain reader ? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the filter css options in calibre.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,561
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
EDIT: and of course what Kovid suggested would be much easier overall. ![]() |
|
![]() |
![]() |
![]() |
#4 | |
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'd be very surprised if a CSS rule caused a device to not work. Every epub rendering implementation that I've come across simply ignores CSS rules it cannot handle. You can have css rules that cause ugly/unreadable text because of bugs in the redering engine, but that's about the worst you will get.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
I solved an issue with the Acer Lumiread where removing the "body { background-color: #800000; }" stops the reader crashing ! on opening the epub. I'm shure that in this example some worse circumstances come together, but it shows, that readers not always do, what they should do ... By now i'm working on an issue where several css-styles are ignored and i suspect , that a "{ display: list-style }", which calibre inserts, is maybe the reason for the failure on a "Prestigio" device (but only here, nowhere else....). We are going to test this. |
|
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,046
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Good question. I never tried. I was just glad to get rid of the thing, after a tedious series of trial and error. Today I can't reproduce the fault. Meanwhile I had to rebuild the acer from factory-settings, so that the general conditions are not the same anymore. As I told, there were probable some bad circumstances which work together.
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,723
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,561
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
In the "Look & Feel" section of the conversion options... there is an "Extra CSS" tab and a "Filter Style Information" tab. Mousing over the various options will present you with a tool-tip about it's function.
|
![]() |
![]() |
![]() |
#12 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
I've used extra CSS for a long time, but never spotted that there was another tab alongside! |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why, During ePub to ePub Conversion does Calibre changes existing CSS classes? | JSWolf | Conversion | 7 | 08-06-2011 07:32 PM |
Default font in EPUB convertion | kandombe | Conversion | 7 | 06-13-2011 03:06 AM |
PDF to epub convertion grief; keeping indentation | Aia | Calibre | 2 | 10-31-2010 05:09 PM |
Doc to Epub convertion problems | johnbajer | Calibre | 5 | 06-04-2010 05:30 PM |
Cover pictures after convertion from ePub to Mobi | paulpeer | Calibre | 8 | 03-23-2010 09:23 AM |