Register Guidelines E-Books Search Today's Posts Mark Forums Read

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: 2,205
Karma: 3866786
Join Date: May 2008
Location: Launceston, Tasmania
Device: Kindle3, iPad2, Kobo Touch, Sony PRS T3, Nexus 7
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: 30,660
Karma: 85135660
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
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
 
Enthusiast
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: 25,277
Karma: 4961457
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: 2,205
Karma: 3866786
Join Date: May 2008
Location: Launceston, Tasmania
Device: Kindle3, iPad2, Kobo Touch, Sony PRS T3, Nexus 7
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:30 PM.


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