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, 06: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, 06: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: 72,497
Karma: 309060442
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, 12:17 PM   #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: 44,530
Karma: 24495948
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 online now   Reply With Quote
Old 07-15-2009, 07: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 06:26 PM
icon colours Brandobras Calibre 2 07-22-2010 04:58 AM
Colours? griffonwing Astak EZReader 29 09-13-2009 09:22 PM
Pdf background darker than LRF/RTF background LOL2005 Sony Reader 2 10-23-2007 12:00 PM
iLiad's 16 Colours [overview] yokos iRex 8 10-10-2006 11:42 AM


All times are GMT -4. The time now is 12:54 AM.


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