|
|
#1 |
|
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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)
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:
And the suggestion for Check Book:
|
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,270
Karma: 61916422
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) |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269
Karma: 16544702
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/... ...) 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 08:39 PM. |
|
|
|
|
|
#4 |
|
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ).
|
|
|
|
|
|
#5 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,025
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Moderator Notice
Moved from Editor to Conversion subforum |
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Suggestion: Spell Check Tool Enhancement | Tex2002ans | Editor | 35 | 07-11-2014 08:02 AM |
| Suggestion: Run Check addition for 'do nothing' tags | phossler | Editor | 4 | 04-06-2014 10:53 AM |
| Bug? Automatic book conversion broken in Calibre 1.18 | HarryT | Calibre | 3 | 01-04-2014 09:20 AM |
| Spell Check Suggestion | Tex2002ans | Sigil | 19 | 01-10-2013 09:45 PM |
| Suggestion - Ignore Calibre2OPDS during Check Library | Wyndham | Library Management | 4 | 02-10-2012 04:48 AM |