![]() |
#1 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,209
Karma: 34984330
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Conversion aborts when using Calibre "Subset Fonts"
I've searched the forum, and seems that nobody is having a problem but me. I installed the newest version of Calibre portable (my first upgrade since v 8.38) with the intention of using the Subset Fonts feature.
My first attempt, converting epub to epub, the conversion completed, but deleted all four embedded fonts and @font-face statements, but retained the references in the CSS styles. I reimported the book to Calibre. The next attempt, the conversion aborted. The traceback said it subsetted the fonts ok, but aborted upon deleting the FOURTH AND FINAL original font, with an error code of "1". I thought perhaps that font was corrupt, so deleted it in Sigil, deleted the book from Calibre and re-imported. This time the conversion aborted at the point of deleting the THIRD AND FINAL font, with an error code of "1". Before I run myself crazier deleting fonts and running the conversion multiple times, I am begging for help. I'm attaching the traceback message. ![]() I hope somebody has good advice for me, it will win you gold stars in heaven! |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,235
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Before you try to subset the font, does the ePub actually pass validation? I ask this because of...
Code:
Decreased the font OEBPS/Fonts/VeraMono.ttf to 57.9% of its original size The font OEBPS/Fonts/VeraMono.ttf is unused. Removing it. The font OEBPS/Fonts/VeraMono.ttf is unused. Removing it. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,214
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The file you are trying to convert appears to have multiple conflicting references to the same font file (multiple @font-face rules referencinf the same physical font) which is confusing calibre.
|
![]() |
![]() |
![]() |
#4 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,209
Karma: 34984330
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
it says the same about all the embedded fonts. It subsets each one, then deletes. I assumed it was *keeping the subsets* and deleting the **original full-size** fonts. Did I assume wrongly how this operates?
Code:
Decreased the font OEBPS/Fonts/Artifika-Regular.ttf to 50.8% of its original size Decreased the font OEBPS/Fonts/charlotte_small_caps_let.ttf to 48.6% of its original size Decreased the font OEBPS/Fonts/VeraMono.ttf to 57.9% of its original size The font OEBPS/Fonts/Artifika-Regular.ttf is unused. Removing it. The font OEBPS/Fonts/charlotte_small_caps_let.ttf is unused. Removing it. The font OEBPS/Fonts/VeraMono.ttf is unused. Removing it. The font OEBPS/Fonts/VeraMono.ttf is unused. Removing it. |
![]() |
![]() |
![]() |
#5 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,209
Karma: 34984330
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
@Kovid, YES! that was the problem, I had @font-face rules on an in-line CSS for one of the xhtml files. (I didn't know that would cause trouble.) I have now done a successful conversion, using the subsetting feature.
Thank you for the speedy reply. You ROCK, and Calibre is the greatest thing since sliced bread. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,235
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
delete post
|
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,235
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,209
Karma: 34984330
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
@JSWolf -- Yup, loaded the subsetted fonts, fixed the coding, and reviewed in ADE. Everything seems to be working well. I just have to quit being lazy and fix my anchor tags, and all will be well. I still have to do a page by page check to make sure there are no font failures in any small spots, but it is all looking good.
And all because you made the comment on another thread about subsetting with Calibre. Thanks! |
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,235
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Because of subsetting, I've been able to take ePub that were quite large with all the fonts and reduce them considerably. I never bothered to check them. I just loaded onto my 650 and read. I did not see any problems. |
|
![]() |
![]() |
![]() |
#10 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
|
A bit off topic, but would subsetting be a potential problem for foreign readers since letters/characters might be missing? I cannot think of an exact case, but something like in one language a certain character is used (ex: a) but in another it's a accented/unicode letter (ex: ã)?
|
![]() |
![]() |
![]() |
#11 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre "chokes" on large ebook conversion | RogHelt | Conversion | 18 | 04-13-2016 06:31 AM |
epub "padding left" to mobi "block quote" conversion issue | 1611mac | Conversion | 3 | 01-11-2012 02:10 PM |
ePub conversion adds the "Calibre" cover | billjustbill | Conversion | 2 | 08-26-2011 05:35 PM |
Getting calibre to detect "Prologue" and "Epilogue" for TOC | sherman | Calibre | 2 | 09-20-2010 02:21 AM |