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 05-21-2020, 11:58 PM   #1
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
Jacket CSS not working?

Hi everyone.

I hope I am posting in the correct forum.

Having upgraded my Calibre to 4.16 on my Mac, I have realised that the settings I have in my css file (calibre>Show Package Contents>Resources>resources>jacket) are no longer being applied.

I used to have a blue background on which the title and series name of the book were added in white text. Now, everything is black text on white background.

Also, when in the Comments I had coloured text, the coloured text would appear in the generated metadata page. Now, that too is also just black text on white background (though if the text is bold, the text is bold in the generated page).

Is this a bug in this version?

Thank you.
kakkalla is offline   Reply With Quote
Old 05-22-2020, 12:09 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,257
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You dont change the jacket file inside the calibre package, you change it in the calibre config directory. https://manual.calibre-ebook.com/cus...ates-et-cetera
kovidgoyal is offline   Reply With Quote
Advert
Old 05-22-2020, 12:37 AM   #3
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
I have followed the link and the article says that for Mac OS, it is in the package that you change the file. Is this no longer applicable?
kakkalla is offline   Reply With Quote
Old 05-22-2020, 12:49 AM   #4
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
Having read the article further down, I have created a "resources" folder and placed the two jacket files in the appropriate subfolders as shown in the screenshot.

I restarted calibre and converted a book to EPUB again but nothing happens. Still black and white metadata page.

Thank you.
Attached Files
File Type: pdf Screen Shot 2020-05-22 at 14.44.00 .pdf (50.9 KB, 203 views)
kakkalla is offline   Reply With Quote
Old 05-22-2020, 01:15 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,257
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
When you updated calibre you lost the old changes because you made them inside the application bundle. If you make them correctly in the config folder they will work, there were no changes to this in 4.16
kovidgoyal is offline   Reply With Quote
Advert
Old 05-22-2020, 02:15 AM   #6
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
Thanks again for persevering with me.

I have a saved copy of the css file and the xhtml file that I always replace in the Packsge contents of calibre.app on the Mac.

However, I have made a fresh install of calibre and have taken the jacket files from the newly installed version and copied them into:

~/Library/Preferences/calibre/resources/jacket.

I know my path is correct and that the css file woks because I went through the css file and changed all the "sans-serif" statements to "serif" and these changes were reflected in the generated jacket. I also changed the alignment of some of the text and those changes were also reflected in the newly generated epub's jacket.

There are two things I can't get to work. (1) When I had coloured text in the Comments, the coloured text appeared in the generated jacket. (2) I can't get the background to change colour.

I have attached a pdf showing various files settings etc, as well as a sample of what my jackets used to look like.

I hope this helps you work out the problem so that I can stop taking up your time on this issue. I apologise in advance about this.
Attached Files
File Type: pdf Jacket Generation.pdf (1.96 MB, 259 views)
kakkalla is offline   Reply With Quote
Old 05-22-2020, 02:21 AM   #7
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
Just out of interest, I placed the jacket files on my old Mac Pro running calibre 2.85.1 and everything works as it should. Please look at the screenshot attached.
Attached Files
File Type: pdf Screen Shot 2020-05-22 at 16.19.39 .pdf (740.7 KB, 123 views)
kakkalla is offline   Reply With Quote
Old 05-22-2020, 04:47 AM   #8
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,257
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In the viewer have you turned on the setting to override book colors in Preferences->Colors because if you have then it will override the background color in your comments template. Other than that, it looks fine to me.
kovidgoyal is offline   Reply With Quote
Old 05-22-2020, 04:50 AM   #9
kakkalla
Zealot
kakkalla doesn't litterkakkalla doesn't litter
 
kakkalla's Avatar
 
Posts: 146
Karma: 194
Join Date: Jun 2010
Location: Melbourne
Device: iPad
Picture me with my head hanging down in shame!

THANK YOU.
kakkalla is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
--extra-css not working tage fredheim Conversion 4 07-06-2019 08:20 AM
display: none not working in ePub CSS sladflob ePub 3 05-09-2019 07:46 PM
Jacket CSS ignored by readers (re-appearing bug) DrChiper Calibre 13 11-29-2015 11:25 AM
Jacket CSS ignored by readers Hoods7070 Library Management 7 09-05-2015 09:17 AM
working with fonts in css jayz Kindle Formats 9 10-29-2012 04:09 PM


All times are GMT -4. The time now is 04:45 PM.


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