Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-25-2015, 02:05 PM   #1
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Possible bug in eBook conversion - Suggestion for check book

Hi Kovid,

Because of what jbennion posted in the Kobo bug thread and the solution I posted, I think you should check it.

Basically Kobo ACCESS renderer (for kepubs) goes FUBAR when there are missing or bad linked font files in @font-face in css stylesheets.

In the exact case posted there, the book page_styles.css contained:
Code:
@font-face {
    font-family: "Caecilia";
    font-weight: normal;
    font-style: normal;
    src: url(res:///Data/fonts/Caecilia-Roman.otf)
(and italic and bold and both).

Caecilia is used by "calibre_" class, and the book always contains <body class="calibre_"> in each html file. But the ebook doesn't contain any embedded font file itself.

This situation causes havoc in Kobo Readers.

So the possible bug in Calibre would be:
  • page_styles.css is created by Calibre, isn't it? Although I've asked jbennion if he has manually edited the epub file, (he did a MOBI to EPUB conversion), I do think you might check if it were possible that Calibre created those font-face settings with those strange urls without embedding the font files themselves.

And the suggestion for Check Book:
  • As this situation is deadly for Kobos it would be really nice if Check Book informed about missing font files in the used @font-face.
arspr is offline   Reply With Quote
Old 03-25-2015, 02:39 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,919
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
IIRC a res: url says the font is on the device, not embedded
Code:
src: url(../fonts/Caecilia-Roman.otf)
theducks is offline   Reply With Quote
Old 03-25-2015, 07:30 PM   #3
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@arspr, To add a bit more detail to what theducks said, the @font-face code
Code:
src: url(res:///Data/fonts/... ...)
is typical of an epub which has been specifically prepared to use on a Sony PRS505/600/350/650 device. It externally references fonts stored on the Sony itself rather than embedded in the epub.

I'd guess the user deliberately put them in there using the calibre conversion Look&Feel ExtraCSS option. IMO it's a bad idea to force device specific code into one's calibre master epubs. I would have guessed that it would be completely ignored by the Kobo rather than causing havoc, but as I haven't tested it myself I could be wrong.

Last edited by jackie_w; 03-25-2015 at 07:39 PM.
jackie_w is offline   Reply With Quote
Old 03-26-2015, 11:33 AM   #4
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
I'm updating several pictures of jbennion's book in both OK and wrong flavours.

I'm on Kobo Aura H2O running FW 3.13.1.

Nevertheless as this is a private ebook, I'll try to update Jellby's test book with some tests about missing font files. (But I'm going on holidays this Easter, next week, so it'll take a while ).
Attached Thumbnails
Click image for larger version

Name:	OK-Page 01 (the chapter actually has 33 pages, not 32).jpg
Views:	340
Size:	483.3 KB
ID:	136414   Click image for larger version

Name:	OK-Whole image.jpg
Views:	332
Size:	372.5 KB
ID:	136415   Click image for larger version

Name:	Wrong-Page 01 (Look at the bottom of the page).jpg
Views:	227
Size:	393.4 KB
ID:	136416   Click image for larger version

Name:	Wrong-Image broken in two pages 1.jpg
Views:	237
Size:	535.2 KB
ID:	136417   Click image for larger version

Name:	Wrong-Image broken in two pages 2.jpg
Views:	260
Size:	384.5 KB
ID:	136418   Click image for larger version

Name:	Wrong-Page 32 (the number of pages is different -33 when OK-, missing text and look at the upper.jpg
Views:	236
Size:	370.9 KB
ID:	136419  
arspr is offline   Reply With Quote
Old 03-26-2015, 07:06 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,645
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Moderator Notice
Moved from Editor to Conversion subforum
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestion: Spell Check Tool Enhancement Tex2002ans Editor 35 07-11-2014 07:02 AM
Suggestion: Run Check addition for 'do nothing' tags phossler Editor 4 04-06-2014 09:53 AM
Bug? Automatic book conversion broken in Calibre 1.18 HarryT Calibre 3 01-04-2014 08:20 AM
Spell Check Suggestion Tex2002ans Sigil 19 01-10-2013 08:45 PM
Suggestion - Ignore Calibre2OPDS during Check Library Wyndham Library Management 4 02-10-2012 03:48 AM


All times are GMT -4. The time now is 03:10 AM.


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