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-22-2012, 06:41 AM   #1
franklekens
Addict
franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.
 
franklekens's Avatar
 
Posts: 392
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
loss if italics and smallcaps when converting epub to mobi

When I convert epubs to mobi, I notice italics are sometimes systematically lost. And also smallcaps (but I doubt mobi is capable of rendering smallcaps at all -- anyway I've never seen smallcaps on my Kindle).

In the epub file, the italics are specified like this:

<span class="wpt-cursief">Text in italics</span>

Referring, of course, to an entry in the css file
span.wpt-cursief {font-family: "schreefI";}

Is Calibre not able to convert this correctly into italics for mobi files?
franklekens is offline   Reply With Quote
Old 01-22-2012, 06:42 AM   #2
franklekens
Addict
franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.
 
franklekens's Avatar
 
Posts: 392
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
"Cursief", by the way, is Dutch for italics.
franklekens is offline   Reply With Quote
Advert
Old 01-22-2012, 07:47 AM   #3
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
MOBI does not support embedded fonts, so font-family with non-generic font names gets ignored. The usual way to get italics is with font-style, e.g. something like:

span.wpt-cursief {font-family: "schreef"; font-style:italic;}

The above (note that there is no I in the family) will probably work for ePub and for MOBI via Calibre.

For small-caps in MOBI you have to instead specify a standard font in a smaller size, I don't know if there is an ePub idiom that Calibre will recognize as small-caps and convert for you.
wallcraft is offline   Reply With Quote
Old 01-22-2012, 09:22 AM   #4
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by wallcraft View Post
...
For small-caps in MOBI you have to instead specify a standard font in a smaller size, I don't know if there is an ePub idiom that Calibre will recognize as small-caps and convert for you.
Wrapping the small cap text in either <small></small> tags or styling a <span>, <p> or <div> with font-size: 0.75em; or font-size: small; will usually work fine in an ePub or HTML that will be converted to MOBI by calibre.

It should be noted that Kindles (software and devices) have limits to how small the text can be. If the default font size in the Kindle is set to the smallest available size listed on its menu then any attempt to create a small cap will fail, leaving the small caps the same size as standard caps. In order to proof the MOBI file properly, you should set the default font size on the Kindle to be the third from the smallest, or larger, leaving at least 2 smaller sizes available for use as the small caps.
dwig is offline   Reply With Quote
Old 01-22-2012, 02:34 PM   #5
franklekens
Addict
franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.
 
franklekens's Avatar
 
Posts: 392
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
Okay, thanks for the tips, which I'm sure will be useful to anybody authoring books.

Myself, I was merely asking about preproduced epubs that I wanted to convert for reading on my Kindle. (Since this of course is the problem with the standards war: in Europe, European books are predominantly sold as epubs.) I hoped there'd be a way to make this quick and easy conversion more lossless, but from your answers I gather that it isn't.

I don't know enough about html and css to start fiddling with the epubs before I convert them, so I'll just have to make do with the loss, I guess.

Or buy an epub-compatible ereader.
franklekens is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting EPUB to MOBI jwrourke Conversion 2 03-14-2011 12:22 PM
Converting EPUB to MOBI JLeighs Calibre 2 11-07-2010 03:03 AM
Converting from Epub to Mobi kevinofengland Calibre 5 10-12-2010 07:23 PM
epub/mobi --> RTF: italics missing acanthicus Calibre 0 06-09-2010 04:20 PM
Converting EPub to Mobi? CarolB Calibre 3 01-14-2010 11:09 AM


All times are GMT -4. The time now is 01:21 PM.


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