Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-04-2015, 04:48 PM   #1
Hoods7070
Groupie
Hoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notes
 
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
Jacket CSS ignored by readers

I have figured this bit out myself: clearly I am a moron.

Having established that, can someone please explain to abovementioned fool WHY every book reader** other than Calibre View completely ignores the CSS added by either Polish or Modify ePub, regardless of what is in the template and/or the CSS? To make sure it's not my custom templates to blame, I reverted to Calibre's jacket resources to no avail.

** I have tested with Nexus 7 Lollipop and my generic Chinese knock-off phone - using Mantano Reader in both cases - and ADE 3.

I'm sure way back when I used to get matching results in Calibre and Mantano.

This should probably be a separate question, but seeing I'm here... in pursuit of happiness I've overwritten my own templates etc. and now can't remember how to add swop LN/FN to the template. If nothing else, getting that back will make me happy.

TIA for all wisdom
Hoods7070 is offline   Reply With Quote
Old 09-04-2015, 05:46 PM   #2
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: 30,946
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Your devices software is at fault ,
and/or you overrode the standard (linked) files

Each xHTML can have a different CSS Linked. Or multiple (Calibre standard is page.css, stylesheet.css)
If you link in another AND the styles overlap, confusion reigns (the last defined style prevails)

Multiple VALID Stylesheets work fine. RMSDK is noted for being prone to barking on the slightest error.

It works (8 stylesheets via EPUB merge) FINE on RMSDK
I Modify_EPUB most books. FINE on RMSDK
I Polish on occasion. FINE on RMSDK
I even use the Embed Metadata. FINE on RMSDK
Run Reports from the Editor. you may have a double define
Validat you stylesheets with W3C
theducks is offline   Reply With Quote
Advert
Old 09-04-2015, 09:17 PM   #3
Hoods7070
Groupie
Hoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notes
 
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
Thanks, Ducks.

However, Modify-EPUB (which I use) and Polish (which I don't, generally) both insert the jacket CSS exactly as provided by Calibre on the jacket page, not as a separate CSS sheet. IOW there are no multiple CSS files, just bog standard Calibre as you noted. I put a few (jacket modified) books into ADE3 (PC version) and it does the same thing. I have also installed half a dozen different ereaders and they all ignore the CSS. That is, the resource jacket CSS which Modify Epub and Polish both embed. I haven't fiddled further.

All the books I am using for my testing have been run through the Editor, any extant problems fixed. The only problem Editor finds is the inclusion of the webkit radius in the code, so I remove that. I don't know enough about html or CSS to know whether that has any bearing on anything.

I don't have RMSDK but have requested a trial copy.

Any other ideas? Anyone else encounter this problem?
Hoods7070 is offline   Reply With Quote
Old 09-04-2015, 09:24 PM   #4
Hoods7070
Groupie
Hoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notes
 
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
Forgot to say - no errors found with W3C validator I used.
Hoods7070 is offline   Reply With Quote
Old 09-04-2015, 11:11 PM   #5
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,179
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Hoods7070 View Post
Thanks, Ducks.

However, Modify-EPUB (which I use) and Polish (which I don't, generally) both insert the jacket CSS exactly as provided by Calibre on the jacket page, not as a separate CSS sheet. IOW there are no multiple CSS files, just bog standard Calibre as you noted. I put a few (jacket modified) books into ADE3 (PC version) and it does the same thing. I have also installed half a dozen different ereaders and they all ignore the CSS. That is, the resource jacket CSS which Modify Epub and Polish both embed. I haven't fiddled further.

All the books I am using for my testing have been run through the Editor, any extant problems fixed. The only problem Editor finds is the inclusion of the webkit radius in the code, so I remove that. I don't know enough about html or CSS to know whether that has any bearing on anything.

I don't have RMSDK but have requested a trial copy.

Any other ideas? Anyone else encounter this problem?
  1. You can fix this in using the ebook editor by changing the inline style for jacket.xhtml from
    Code:
      <style type="text/css" media="screen">
    to
    Code:
      <style type="text/css" title="override_css">
    .
  2. Or you can using the editor make a new style sheet copy all the inline style from jacket.xhtml to the new stylesheet. Then cut all style information from jacket.xhml then add a link to the new stylesheet.
  3. Or just add all the inline style from the jacket.xhtml to the main stylesheet, remove the inline style from jacket.xhtml then add a link to the main stylesheet.

#1 is the quickest and easiest way to fix it.

Maybe submit a bug report to Kovid for polish ebook.

bernie
gbm is offline   Reply With Quote
Advert
Old 09-04-2015, 11:39 PM   #6
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,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...3af14f8297cbef
kovidgoyal is offline   Reply With Quote
Old 09-05-2015, 06:25 AM   #7
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,610
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Thank you, I thought mantano had some problem with it, but now the jacket keeps the style.
Terisa de morgan is offline   Reply With Quote
Old 09-05-2015, 09:17 AM   #8
Hoods7070
Groupie
Hoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notesHoods7070 can name that song in three notes
 
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
Thanks so much, Bernie and Kovid -- at last!!
Hoods7070 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional CSS for ADE readers democrite ePub 4 09-23-2013 09:10 PM
Epub readers don't render CSS the way it is in Sigil? Ahu Lee Sigil 16 01-24-2013 02:58 PM
CSS classes on Android epub readers MarleneW ePub 7 05-13-2012 04:57 PM
Override ePub CSS with userStyle.css? barium Sony Reader Dev Corner 11 07-16-2011 03:25 PM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM


All times are GMT -4. The time now is 02:11 AM.


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