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 01-05-2011, 07:55 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,843
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
epub to mobi - losing highlights ?

I have an epub text with code like:
Code:
Hello, my name is <span class="docEmphMark">Ben</span>.
in epub readers, the word Ben is highlighted. ( i've used bold in this post for simplicity )

Hello, my name is Ben.

but when calibre converts to mobi all highlighting is lost

e.g. that line then reads as:
Hello, my name is Ben.

is this a bug, a config issue or a mobi limitation ?

exploding epub & looking at css: docemphmark is defined with background-color: #999
Code:
.docEmphMark {
    background-color: #999
    }
so is that an unsupported mobi function. what could I edit that bit of the CSS to, so that mobi would display as intended ?

Last edited by cybmole; 01-05-2011 at 08:04 AM.
cybmole is offline   Reply With Quote
Old 01-05-2011, 10:38 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: 26,097
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
iirc mobi doesn't support background colors.
kovidgoyal is offline   Reply With Quote
Old 01-05-2011, 11:33 AM   #3
JMikeD
Evangelist
JMikeD is as sexy as a twisted cruller doughtnut.JMikeD is as sexy as a twisted cruller doughtnut.JMikeD is as sexy as a twisted cruller doughtnut.JMikeD is as sexy as a twisted cruller doughtnut.JMikeD is as sexy as a twisted cruller doughtnut.JMikeD is as sexy as a twisted cruller doughtnut.JMikeD is as sexy as a twisted cruller doughtnut.JMikeD is as sexy as a twisted cruller doughtnut.JMikeD is as sexy as a twisted cruller doughtnut.JMikeD is as sexy as a twisted cruller doughtnut.JMikeD is as sexy as a twisted cruller doughtnut.
 
JMikeD's Avatar
 
Posts: 452
Karma: 15000
Join Date: Jul 2008
Device: Various and sundry
I believe mobi supports background colors, but the Kindle does not. I have a book on programming Regex, and the results of the expression are highlighted; they don't show on the Kindle, but they do on the Kindle app on the iPad.

This caused me great confusion initially, as it appeared that all the regex expressions had no results.
JMikeD is offline   Reply With Quote
Old 01-05-2011, 11:42 AM   #4
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,843
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
Quote:
Originally Posted by JMikeD View Post
I believe mobi supports background colors, but the Kindle does not. I have a book on programming Regex, and the results of the expression are highlighted; they don't show on the Kindle, but they do on the Kindle app on the iPad.

This caused me great confusion initially, as it appeared that all the regex expressions had no results.
I think we may be both reading / converting the same book ! It's hard enough trying to learn the language without also having to decipher the conversion errors !

I found it in .chm format & converted it to epub OK, but not to mobi.

NB the background colours did not show up in the internal calibre mobi reader

I have not tried inside of Kindle for PC as I deleted the .mobi conversion once I realised it lacks this feature.

I'll probably just read the epub or the chm version on PC & abandon plans to get it onto my Kindle. - though I'm thinking that if I knew how to use the calibre conversion "more CSS" options box, I could have the words with background colours appear in BOLD instead in the mobi conversion.
cybmole is offline   Reply With Quote
Old 01-05-2011, 12:26 PM   #5
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,843
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
convert chm to mobi & to epub in calibre

chm source has both coloured entries and coloured entires with background highlighing.

when I send calibre output mobi file to Kindle - like the previous poster said it loses all backgrounds AND colours - but if I send calibre output to kindle for PC its fine. ( & he says it's fine in Kindle for ipad also)
calibre mobi reader scores 1 out of 2 - it keeps colours but loses backgrounds
calibre epub reader is good.

thus the mobi spec is OK, but the implementation in some viewers is limited.

Last edited by cybmole; 01-05-2011 at 12:32 PM.
cybmole is offline   Reply With Quote
Old 01-05-2011, 01:38 PM   #6
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,843
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
same book - new issue - I am losing the em-dahs-en-dash or whatever from this line
"using the – metacharacter"
that is a copy + paste from the CHM. no matter how I do the conversion to epub or to mobi, i end up with this:
"using the metacharacter"

I've tried ticking transliterate, tried cp1252 encoding ....

using view source on the chm i see this
Code:
Character sets may be enumerated explicitly or specified as ranges using the <TT>–</TT> metacharacter
it does not look any different to lots of other dashes which DO convert OK ???

in the output epub .xhtml it is simply missing. all that TT stuff is just not there and I see plain text -

but if I convert to mobi with same settings and send to Kindle then I see a question mark inside a box character, where the dash should be !

Last edited by cybmole; 01-05-2011 at 01:54 PM.
cybmole 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
Losing Chapter PageBreaks in .MOBI on Kindle XRaySpeX Calibre 7 12-10-2010 05:29 AM
epub to mobi ConorHughes Kindle Formats 5 10-24-2010 05:19 PM
Mobi vs. ePub afa Kindle Formats 27 05-06-2010 09:23 AM
EPUB to PDB - losing TOC - Austen's Mansfield Park notyou Calibre 2 05-01-2010 01:10 AM
Epub to LRF no problem, Epub to Mobi indexerror Rogier Calibre 3 06-09-2009 11:42 AM


All times are GMT -4. The time now is 05:13 PM.


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