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 09-14-2010, 01:03 PM   #1
prepress
Junior Member
prepress began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2010
Device: none
Angry Warning: resource oebps/font/Agaramond-regular.otf cannot be decrypted

I'm getting a message like this from epubcheck 105:

Warning: resource oebps/font/Agaramond-regular.otf cannot be decrypted

Created the epub with Calibre 0.7, tested it with older versions and this error does not appear after converting in 0.6.40. To avoid this error we're now forced to use this 0.6.40 and we can't benefit from fixes and new features when new Calibre versions are released.

Does anyone have a clue how to get rid of this warning?

Thanks in advance!

Last edited by prepress; 09-24-2010 at 03:52 AM.
prepress is offline   Reply With Quote
Old 10-13-2010, 02:57 AM   #2
prepress
Junior Member
prepress began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2010
Device: none
Warning after calibre 0.6.40 resource cannot be decrypted

We've found out that this warning didn't appear when converting a file in Calibre 0.6.40, but all newer versions after 0.6.40 produce this error in combination with epubcheck 105.

Since our customer uses epubcheck to validate the epubs and they don't want any warnings or errors in the final verdict of epubcheck, we're forced not to update calibre and stick with 0.6.40.

This is what epubcheck support says:

<<<<<<<
There is an embedded font in the package that is obfuscated using Adobe's method. I am not familiar with their font mangling algorithm but looking at the epubcheck source code I see that it is expecting the algorithm to be declared as "http://ns.adobe.com/digitaleditions/enc". The algorithm in the sample is declared as "http://ns.adobe.com/pdf/enc#RC".

Probably this font will not be displayable in any EPUB readers, but I am not convinced that the EPUB is invalid just because epubcheck can't decrypt the font.

Algorithm URL "http://ns.adobe.com/pdf/enc#RC" is correct for Adobe obfuscation. I think this warning is given any time we hit an encrypted resource, just to let users know that we did not validate that resource in any way. Being a warning, it does not mean that EPUB is invalid.
>>>>>>>>

Now my question is this:
Howcome new versions of calibre, after 0.6.40, have changed something so embedded fonts are decrypted? Is it possible to revert this so this warning won't show up again?

Thanks for your help.
prepress is offline   Reply With Quote
Advert
Old 10-13-2010, 04:27 AM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by prepress View Post
produce this error in combination with epubcheck 105.
I'm just curious, what did epub-fix say about the file when you ran it?

Quote:
Originally Posted by prepress View Post
Quote:
Originally Posted by prepress View Post
we're now forced to use this 0.6.40 and we can't benefit from fixes and new features when new Calibre versions are released.
Since our customer uses epubcheck to validate the epubs and they don't want any warnings or errors in the final verdict of epubcheck, we're forced not to update calibre and stick with 0.6.40.
Putting a little angry face is surely going to get you all the help you're looking for...

If you want help there are better ways to ask, but for Pete's sake quit whining about being "forced" not to update. No one is forcing you to use the program to begin with.

Hopefully someone with knowledge might stop by to help.

Last edited by DoctorOhh; 10-13-2010 at 05:42 AM.
DoctorOhh is offline   Reply With Quote
Old 10-13-2010, 07:55 AM   #4
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Quote:
Originally Posted by prepress View Post
We've found out that this warning didn't appear when converting a file in Calibre 0.6.40, but all newer versions after 0.6.40 produce this error in combination with epubcheck 105.

Since our customer uses epubcheck to validate the epubs and they don't want any warnings or errors in the final verdict of epubcheck, we're forced not to update calibre and stick with 0.6.40.
Just give a resonable donation to Kovid and he will probably fix it for you.
kiklop74 is offline   Reply With Quote
Old 10-13-2010, 08:17 AM   #5
prepress
Junior Member
prepress began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2010
Device: none
Well I apologize for using a bad tone in my message and for the whining about being forced, you're right about that.

epub-fix reports nothing about it:

C:\Program Files\Calibre2>epub-fix.exe --epubcheck test1867.epub
OPF contains date 2010-08-10 00:00:00+02:00 that epubcheck does not like
Replaced 2010-08-10 00:00:00+02:00 with 2010-08-09

C:\Program Files\Calibre2>


With regards,
prepress
prepress is offline   Reply With Quote
Advert
Old 10-13-2010, 12:28 PM   #6
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,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There are two methods of encrypting fonts:

1) Adobe

2) IDPF

epubcheck will only accept the second. Actual EPUB readers usually only accept the first. So calibre uses the first. IMO epubcheck is an unmitigated disaster. Do you want an epub file that passes epubcheck or one that is actually likely to work on actual epub readers?

Versions of calibre prior to 0.6.41 did not obfuscate fonts, so you wouldn't get the error with epubs produced by them. But including un-obfuscated fonts in a epub file is a copyright violation for most fonts, which is why updated versions of calibre obfuscate fonts.
kovidgoyal is offline   Reply With Quote
Old 10-13-2010, 02:11 PM   #7
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by kovidgoyal View Post
updated versions of calibre obfuscate fonts.
Are all fonts automatically obfuscated, or is there a flag that a font sets that says "I should be obfuscated"?

A related question: When a font is obfuscated (using the Adobe obfuscation), is the entire font table normally included, or are characters that are not actually used removed from the font table?
Starson17 is offline   Reply With Quote
Old 10-13-2010, 02:22 PM   #8
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,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
all fonts are obfuscated. All obfuscation does is change the first 1024 bytes of the font file. It is the most ridiculous thing I have ever seen, but that is hardly surprising given that it springs from copyright.

What you are asking about is subsetting, calibre doesn't do that.
kovidgoyal is offline   Reply With Quote
Old 10-13-2010, 04:12 PM   #9
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by kovidgoyal View Post
all fonts are obfuscated. All obfuscation does is change the first 1024 bytes of the font file. It is the most ridiculous thing I have ever seen
It does seem ridiculous. If someone is knowledgeable enough to extract the font file, you'd think they'd be knowledgeable enough to un-obfuscate the 1024 bytes.

Quote:
What you are asking about is subsetting, calibre doesn't do that.
Thanks.
Starson17 is offline   Reply With Quote
Old 07-04-2011, 09:22 AM   #10
kmcchrystal
Junior Member
kmcchrystal began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2011
Device: kindle
So, if my open type fonts in my epub, created in InDesignCS5.5, don't validate via epubcheck, for this reason (listed for all my fonts):
resource OEBPS/fonts/ACaslonPro-Italic.otf cannot be decrypted, and you are saying epubcheck validation failure for this reason does not mean the epub isn't valid, what do you suggest I do? Just ask Kovid? or go through the process to convert to mobi and thence to kindle, and go through the nook conversion process for Barnes&Noble nook books and just see if they get accepted?
kmcchrystal is offline   Reply With Quote
Old 07-04-2011, 09:51 PM   #11
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
Quote:
Originally Posted by kmcchrystal View Post
So, if my open type fonts in my epub, created in InDesignCS5.5, don't validate via epubcheck, for this reason (listed for all my fonts):
resource OEBPS/fonts/ACaslonPro-Italic.otf cannot be decrypted, and you are saying epubcheck validation failure for this reason does not mean the epub isn't valid, what do you suggest I do? Just ask Kovid? or go through the process to convert to mobi and thence to kindle, and go through the nook conversion process for Barnes&Noble nook books and just see if they get accepted?
If you are creating something for publishing my advice don't use internal fonts unless really necessary as most users prefer to use their own fonts and settings. And one of the major reasons they actually bought a reader is so they can change formatting and fonts. Hardcoding fonts will ruin the reading experience for many of these users.
If you are making it for personal use then I can't say much as you are using kindle and I don't know anything about it. Except it doesn't read epubs.
Dopedangel is offline   Reply With Quote
Old 07-18-2011, 12:55 AM   #12
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by kmcchrystal View Post
So, if my open type fonts in my epub, created in InDesignCS5.5, don't validate via epubcheck, for this reason (listed for all my fonts):
resource OEBPS/fonts/ACaslonPro-Italic.otf cannot be decrypted, and you are saying epubcheck validation failure for this reason does not mean the epub isn't valid, what do you suggest I do?
Epubcheck creates a Warning on encountering ADE-obfuscated fonts, not an Error. Whoever uses epubcheck needs to know the difference between the two. An ePub is only invalid if it's generating errors. I think epubcheck could make this a little more clear, but if this is causing issues, then the problem lies with the system interpreting the epubcheck output.

Quote:
Originally Posted by Dopedangel View Post
If you are creating something for publishing my advice don't use internal fonts unless really necessary as most users prefer to use their own fonts and settings.
No.
charleski is offline   Reply With Quote
Reply

Tags
calibre, epub, epubcheck, warning

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOPAZ decrypted mgmueller News 15 06-24-2011 11:34 AM
Decrypted Topaz Support - time to revisit? ldolse Calibre 20 08-13-2010 12:14 AM
*.otf fonts on PocketBook kacir PocketBook 1 01-17-2010 04:55 PM
Need help with .oebps files daesdaemar Workshop 2 12-24-2008 07:31 AM
TrueCrypt V3.0 open-source OTF encryption Alexander Turcic Lounge 0 12-11-2004 10:32 AM


All times are GMT -4. The time now is 06:51 PM.


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