01-05-2011, 07:55 AM | #1 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
epub to mobi - losing highlights ?
I have an epub text with code like:
Code:
Hello, my name is <span class="docEmphMark">Ben</span>. 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 } Last edited by cybmole; 01-05-2011 at 08:04 AM. |
01-05-2011, 10:38 AM | #2 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
iirc mobi doesn't support background colors.
|
Advert | |
|
01-05-2011, 11:33 AM | #3 |
Evangelist
Posts: 473
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. |
01-05-2011, 11:42 AM | #4 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
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. |
|
01-05-2011, 12:26 PM | #5 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
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. |
Advert | |
|
01-05-2011, 01:38 PM | #6 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
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 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. |
|
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 |