Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-17-2012, 09:38 AM   #1
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
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 ?
mmat1 is offline   Reply With Quote
Old 03-17-2012, 09:46 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the filter css options in calibre.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-17-2012, 09:47 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,561
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by mmat1 View Post
Something like have callibre avoid specific attributes or values which are an issue an a certain reader ?
If it's a known issue, choosing the appropriate output profile should allow calibre to take issues like that into account during the conversion. If it's an unknown issue/device... well that's probably where this all needs to begin.

EDIT: and of course what Kovid suggested would be much easier overall.
DiapDealer is online now   Reply With Quote
Old 03-17-2012, 09:52 AM   #4
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by DiapDealer View Post
If it's a known issue, choosing the appropriate output profile should allow calibre to take issues like that into account during the conversion. If it's an unknown issue/device... well that's probably where this all needs to begin.

EDIT: and of course what Kovid suggested would be much easier overall.
Thanks (i'am as blind as a mole...)
mmat1 is offline   Reply With Quote
Old 03-17-2012, 10:00 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-17-2012, 10:26 AM   #6
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by kovidgoyal View Post
I'd be very surprised if a CSS rule caused a device to not work.
Yes, you're right, this should not happen, but it does ...

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.
mmat1 is offline   Reply With Quote
Old 03-17-2012, 10:31 AM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by mmat1 View Post
Yes, you're right, this should not happen, but it does ...

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.
what does it do when you use the (valid) color name: maroon instead of the color number?
theducks is offline   Reply With Quote
Old 03-17-2012, 10:48 AM   #8
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by theducks View Post
what does it do when you use the (valid) color name: maroon instead of the color number?
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.
mmat1 is offline   Reply With Quote
Old 03-18-2012, 09:30 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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:
Originally Posted by mmat1 View Post
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 ?
What's wrong with fixing what needs to be fixed as long as you have the ePub already loaded into Sigil? No changes to the CSS and no risk of messing things up.
JSWolf is offline   Reply With Quote
Old 03-19-2012, 03:02 AM   #10
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Use the filter css options in calibre.
what/where is that please, and what does it do exactly.

I just re-examined all the conversion options preferences screens

I see nothing called filter css ?
cybmole is offline   Reply With Quote
Old 03-19-2012, 08:09 AM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,561
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by cybmole View Post
what/where is that please, and what does it do exactly.

I just re-examined all the conversion options preferences screens

I see nothing called filter css ?
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.
DiapDealer is online now   Reply With Quote
Old 03-19-2012, 08:57 AM   #12
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by DiapDealer View Post
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.
I see it now, thanks - on common options preferences page

I've used extra CSS for a long time, but never spotted that there was another tab alongside!
cybmole is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:19 PM.


MobileRead.com is a privately owned, operated and funded community.