05-12-2010, 03:08 PM | #1 |
Groupie
Posts: 161
Karma: 608
Join Date: Aug 2008
Location: Plano, TX
Device: Sony PRS-505 + B&N Nook + Motion LE1700 + Motorola Xoom Wifi
|
calibre + encrypted fonts
How does Calibre's handle epubs with encrypted fonts?
Adobe's Epub best practices guide contains encrypted fonts. Only the fonts are encrypted - not the text/images. If I add it to Calibre & click view it opens in the internal reader just fine. But double clicking on the file (which opens Calibre's reader), or trying to open it directly from Calibre's reader, generates the "This book is protected by DRM." message. http://www.adobe.com/devnet/digitalp...ces-1_0_3.epub Troy |
05-12-2010, 03:30 PM | #2 |
creator of calibre
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I was able to open that file in the viewer directly with no problems. calibre decrypts encrypted fonts in epub. Are you sure you tried the same file both times?
|
Advert | |
|
05-12-2010, 03:49 PM | #3 |
Groupie
Posts: 161
Karma: 608
Join Date: Aug 2008
Location: Plano, TX
Device: Sony PRS-505 + B&N Nook + Motion LE1700 + Motorola Xoom Wifi
|
Ok, I just tried to replicate what I did.
Import it into Calibre, export it, then try double-clicking on the exported epub. Troy |
05-12-2010, 06:36 PM | #4 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
What were your results? I had no trouble with importing or converting this file and reading it at every stage with Calibre's viewer. |
|
05-12-2010, 07:03 PM | #5 | |
Groupie
Posts: 161
Karma: 608
Join Date: Aug 2008
Location: Plano, TX
Device: Sony PRS-505 + B&N Nook + Motion LE1700 + Motorola Xoom Wifi
|
Quote:
I just replicated the issue on 3 different machines. (of course they are all *my* machines so they could all be broken the same way! ) Here's all I did:
Here's what I see when I try to run ebook-viewer from the command line: Code:
$ ebook-viewer *.epub ** (<unknown>:5344): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed link hasn't been detected! link hasn't been detected! InputFormatPlugin: EPUB Input running on /home/philosoph/Downloads/Team, Adobe Digital Editions/EPUB Best Practices/EPUB Best Practices - Adobe Digital Editions Team.epub Traceback (most recent call last): File "/home/kovid/build/calibre/src/calibre/ebooks/epub/input.py", line 54, in process_encryption File "/home/kovid/build/calibre/src/calibre/ebooks/epub/input.py", line 26, in decrypt_font TypeError: unsupported operand type(s) for ^: 'int' and 'str' Here's when I open the good version from my actual Calibre library: Code:
$ ebook-viewer *.epub ** (<unknown>:5238): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed link hasn't been detected! link hasn't been detected! InputFormatPlugin: EPUB Input running on /media/DATA/library/elibrary/philosophy/Adobe Digital Editions Team/EPUB Best Practices (3557)/EPUB Best Practices - Adobe Digital Editions Team.epub Loaded embedded font: u'Myriad Pro' Loaded embedded font: u'Adobe Jenson Pro' Loaded embedded font: u'Bell Gothic Std' WARNING: Family aliasing not fully supported. Declared family: Courier not in actual families: [u'Courier New'] Substituting font family: Myriad Pro -> Myriad Pro Substituting font family: Myriad Pro -> Myriad Pro Substituting font family: Adobe Jenson Pro -> Adobe Jenson Pro ...continues & opens book... EDIT: comparing the two shows only the .opf file changed - the metadata has been updated. But nothing which should have caused this. On a side note, I notice that the original epub has the language set to 'en', but the exported epub is set to 'UND'. That's probably a bug of it's own. Manually fixing it still gives the DRM error. Troy Last edited by troymc; 05-12-2010 at 07:07 PM. |
|
Advert | |
|
05-12-2010, 07:21 PM | #6 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Add/Import the epub View the epub Convert the epub View the epub again after conversion But once I used the save to disk feature, then tried to read this new epub that had been saved to disk, Calibre's viewer declared it to be DRM'd. Hopefully this will give Kovid what he needs to isolate the error. Update: It opens fine in ADE, Firefox using the Epubreader extension, and Sigil. Last edited by DoctorOhh; 05-12-2010 at 07:27 PM. |
|
05-13-2010, 10:02 AM | #7 |
Groupie
Posts: 161
Karma: 608
Join Date: Aug 2008
Location: Plano, TX
Device: Sony PRS-505 + B&N Nook + Motion LE1700 + Motorola Xoom Wifi
|
Thanks for confirming this.
I have finals all week, but I'll look for another epub with encrypted fonts and try to narrow this down further - then I'll get a ticket opened. Troy |
05-15-2010, 12:14 PM | #8 |
creator of calibre
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Fix will be in next release.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to embed fonts in ePub after Calibre | fiery | ePub | 79 | 12-05-2016 02:18 AM |
Embedded fonts, Calibre, and choice of fonts | AlexBell | ePub | 8 | 05-30-2010 06:00 AM |
Embedding fonts with Sigil and Calibre | JaneFancher | Calibre | 1 | 04-09-2010 12:35 AM |
fonts as blocks in calibre | waxly | Calibre | 1 | 03-24-2010 10:42 PM |
Calibre 6 and ePub changing fonts? | dordale | Calibre | 7 | 08-03-2009 04:30 PM |