Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-15-2009, 05:50 AM   #1
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Background 'colours'

I'm still messing around comparing the output of Calibre for Mobipocket files to that of Mobipocket Creator, and am about to give up on Creator.

But there does seem to be one small thing which works better with Creator than with Calibre.

In the HTML there is a line
<p>
The text at the end of this line should have a <span class="greyed">grey background</span>.
</p>

and the CSS for class='greyed' is
.greyed { color: black; background-color: #C0C0C0; }

In the prc generated by Mobipocket Creator the background is indeed grey, while in the mobi generated by Calibre it is not.

Is there a colour which will show in mobi's generated by Calibre? Or is my HTML/CSS wrong?

Regards, Alex
AlexBell is offline   Reply With Quote
Old 07-15-2009, 05:55 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,504
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
You need to look at the HTML in the Mobipocket file created by Mobipocket creator. It will have converted that CSS into some explicit tags. Use those instead with Calibre, and the background should show up. It's not a case of just having specified the colour incorrectly.

Quote:
Originally Posted by AlexBell View Post
I'm still messing around comparing the output of Calibre for Mobipocket files to that of Mobipocket Creator, and am about to give up on Creator.

But there does seem to be one small thing which works better with Creator than with Calibre.

In the HTML there is a line
<p>
The text at the end of this line should have a <span class="greyed">grey background</span>.
</p>

and the CSS for class='greyed' is
.greyed { color: black; background-color: #C0C0C0; }

In the prc generated by Mobipocket Creator the background is indeed grey, while in the mobi generated by Calibre it is not.

Is there a colour which will show in mobi's generated by Calibre? Or is my HTML/CSS wrong?

Regards, Alex
pdurrant is offline   Reply With Quote
Advert
Old 07-15-2009, 11:17 AM   #3
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: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Looks like a bug in the calibre MOBI output routines. Open a ticket for it
kovidgoyal is offline   Reply With Quote
Old 07-15-2009, 06:42 PM   #4
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Quote:
Originally Posted by kovidgoyal View Post
Looks like a bug in the calibre MOBI output routines. Open a ticket for it
Thanks, Kovid. I'll check out how to do that.

But the plot thickens - please see the post I am about to put up regarding problems generating ePub from the same HTML file.

Regards, Alex
AlexBell is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Recipes with dark colours inkoma Calibre 1 10-07-2010 05:26 PM
icon colours Brandobras Calibre 2 07-22-2010 03:58 AM
Colours? griffonwing Astak EZReader 29 09-13-2009 08:22 PM
Pdf background darker than LRF/RTF background LOL2005 Sony Reader 2 10-23-2007 11:00 AM
iLiad's 16 Colours [overview] yokos iRex 8 10-10-2006 10:42 AM


All times are GMT -4. The time now is 09:00 PM.


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