Code Monkey home page Code Monkey logo

Comments (4)

rdeltour avatar rdeltour commented on September 17, 2024

From [email protected] on September 20, 2009 01:07:01

Since I can't check in a reader or otherwise that I'm creating IDPF encoded fonts correctly, I'm attaching a file
using the Adobe font encryption. This displays the encoded fonts in ADE, showing the encruption has been
done sufficiently well for ADE to understand it.

Here's the output from epubcheck 1.0.4 for this file:
ERROR: /Users/pdurrant/Documents/Publishing/Desbarollda/ebook/Desbarollda_encrypt.epub/META-
INF/encryption.xml(2): attribute "compression" from namespace " http://ns.adobe.com/digitaleditions/enc "
not allowed at this point; ignored
ERROR: /Users/pdurrant/Documents/Publishing/Desbarollda/ebook/Desbarollda_encrypt.epub/META-
INF/encryption.xml(5): unfinished element
ERROR: /Users/pdurrant/Documents/Publishing/Desbarollda/ebook/Desbarollda_encrypt.epub/META-
INF/encryption.xml(8): attribute "compression" from namespace " http://ns.adobe.com/digitaleditions/enc "
not allowed at this point; ignored
ERROR: /Users/pdurrant/Documents/Publishing/Desbarollda/ebook/Desbarollda_encrypt.epub/META-
INF/encryption.xml(11): unfinished element
WARNING:
/Users/pdurrant/Documents/Publishing/Desbarollda/ebook/Desbarollda_encrypt.epub/OEBPS/content.opf(76
)Fonts/BaskervilleMTStd-Regular.otf is an encrypted non-required entry! Epubcheck will not validate
Fonts/BaskervilleMTStd-Regular.otf
WARNING:
/Users/pdurrant/Documents/Publishing/Desbarollda/ebook/Desbarollda_encrypt.epub/OEBPS/content.opf(77
)Fonts/BaskervilleMTStd-Italic.otf is an encrypted non-required entry! Epubcheck will not validate
Fonts/BaskervilleMTStd-Italic.otf

Check finished with warnings or errors!

Attachment: Issue46.epub

from epubcheck.

rdeltour avatar rdeltour commented on September 17, 2024

From [email protected] on November 18, 2009 12:28:43

I've moving this to "started" but will move it resolved/responded in a week or so. I think we're all set.

See the below attached EPUB -- it uses the "new" (IDPF Informational Document) standard for mangling embedded fonts. It
decodes/renders correctly in our Reading System and presumably will in a forthcoming versions of ADE. Below is the output of
epubcheck when verifying the file:

gc% epubcheck5 LatestMangledFontExample.epub
Epubcheck Version 1.0.5-dev

No errors or warnings detected

gc% epubcheck4 LatestMangledFontExample.epub
Epubcheck Version 1.0.4

ERROR: LatestMangledFontExample.epub/META-INF/encryption.xml(6): unfinished element
ERROR: LatestMangledFontExample.epub/META-INF/encryption.xml(12): unfinished element
WARNING: LatestMangledFontExample.epub/oebps/LatestMangledFontExample.opf(13)CheltenhamStd-Book.otf is an encrypted
non-required entry! Epubcheck will not validate CheltenhamStd-Book.otf
WARNING: LatestMangledFontExample.epub/oebps/LatestMangledFontExample.opf(14)tt0352m_.ttf is an encrypted non-required
entry! Epubcheck will not validate tt0352m_.ttf

Check finished with warnings or errors!

Note that the development version of epubcheck (1.0.5) is fine with it, but 1.0.4 produces an erroneous error. In 1.0.5, the schema
for XML Encryption has been fixed to mark the element within as optional.

Status: Started
Owner: garthconboy

Attachment: LatestMangledFontExample.epub

from epubcheck.

rdeltour avatar rdeltour commented on September 17, 2024

From [email protected] on December 23, 2009 22:37:04

This issue was fixed with schema update in 1.0.5

Status: Fixed

from epubcheck.

rdeltour avatar rdeltour commented on September 17, 2024

From [email protected] on November 18, 2009 12:28:43

I've moving this to "started" but will move it resolved/responded in a week or so. I think we're all set.

See the below attached EPUB -- it uses the "new" (IDPF Informational Document) standard for mangling embedded fonts. It
decodes/renders correctly in our Reading System and presumably will in a forthcoming versions of ADE. Below is the output of
epubcheck when verifying the file:

>gc% epubcheck5 LatestMangledFontExample.epub
>Epubcheck Version 1.0.5-dev
>
>No errors or warnings detected
>
>
>gc% epubcheck4 LatestMangledFontExample.epub
>Epubcheck Version 1.0.4
>
>ERROR: LatestMangledFontExample.epub/META-INF/encryption.xml(6): unfinished element
>ERROR: LatestMangledFontExample.epub/META-INF/encryption.xml(12): unfinished element
>WARNING: LatestMangledFontExample.epub/oebps/LatestMangledFontExample.opf(13)CheltenhamStd-Book.otf is an encrypted
>non-required entry! Epubcheck will not validate CheltenhamStd-Book.otf
>WARNING: LatestMangledFontExample.epub/oebps/LatestMangledFontExample.opf(14)tt0352m_.ttf is an encrypted non-required
>entry! Epubcheck will not validate tt0352m_.ttf
>
>Check finished with warnings or errors!

Note that the development version of epubcheck (1.0.5) is fine with it, but 1.0.4 produces an erroneous error. In 1.0.5, the schema
for XML Encryption has been fixed to mark the <Transforms> element within <CipherReference> as optional.

Status: Started
Owner: garthconboy

Attachment: LatestMangledFontExample.epub

from epubcheck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.