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-10-2013, 11:11 PM   #1
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,200
Karma: 34977556
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!
Attached Files
File Type: txt conversionFAIL.txt (8.6 KB, 188 views)
GrannyGrump is offline   Reply With Quote
Old 01-10-2013, 11:36 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,835
Karma: 128597114
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.
From what I see, Calibre is having a problem because of a problem in your code. Calibre should not be subsetting an unused font. If your code validates, post your CSS and OPF. If it does not validate and once the errors are fixed so it does validate and Calibre still has trouble, then post the CSS and OPF.
JSWolf is offline   Reply With Quote
Old 01-10-2013, 11:59 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Old 01-11-2013, 12:07 AM   #4
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,200
Karma: 34977556
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.
The validation has warnings in it (which I expected) about anchor tags pointing to non-existant files, but no ERROR messages. Would those warnings actually make the conversion abort upon deletion of a font. I usually make sure to clean up for validation, but didn't think these particular errors would be disastrous for this fast experiment. And the fast has turned into long and involved.
GrannyGrump is offline   Reply With Quote
Old 01-11-2013, 12:55 AM   #5
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,200
Karma: 34977556
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.

GrannyGrump is offline   Reply With Quote
Old 01-11-2013, 12:58 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
delete post
JSWolf is offline   Reply With Quote
Old 01-11-2013, 12:59 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by grannyGrumpy View Post
@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.

Now, did you take the subsetted fonts from the converted ePub and replace the fonts in the original ePub and edit the CSS & OPF if any of the font files were deleted for not being in use?
JSWolf is offline   Reply With Quote
Old 01-11-2013, 02:35 AM   #8
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,200
Karma: 34977556
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!
GrannyGrump is offline   Reply With Quote
Old 01-11-2013, 02:49 AM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by grannyGrumpy View Post
@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!
You are very welcome.

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.
JSWolf is offline   Reply With Quote
Old 01-11-2013, 03:33 PM   #10
Sabardeyn
Guru
Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.
 
Sabardeyn's Avatar
 
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: ã)?
Sabardeyn is offline   Reply With Quote
Old 01-11-2013, 03:42 PM   #11
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: 29,754
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Sabardeyn View Post
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: ã)?
I would expect that subsetting would be be for the books language/charset
theducks is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:04 AM.


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