Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPUB 3.3 support #86

Merged
merged 5 commits into from
May 13, 2023
Merged

EPUB 3.3 support #86

merged 5 commits into from
May 13, 2023

Conversation

vers-one
Copy link
Owner

@vers-one vers-one commented May 11, 2023

EPUB 3.3 support

This is:

  • a bug fix
  • an enhancement

Related issue: #83

Description

This pull request adds support for EPUB 3.3 into EpubReader.

In particular, it:

  • adds parsing of the hreflang attribute of the package/metadata/link element;
  • adds auto into the list of possible values for the dir attribute;
  • adds support for the following MIME types:
    • image/webp;
    • font/ttf;
    • font/otf;
    • font/woff;
    • application/font-woff;
    • font/woff2
    • font/sfnt;
    • application/font-sfnt;
    • audio/mpeg;
    • audio/mp4;
    • audio/ogg;
    • audio/ogg; codecs=opus;
    • application/javascript;
    • application/ecmascript;
    • text/javascript.
  • adds EpubBook.Content.Audio and EpubBookRef.Content.Audio collections for the audio content files;
  • adds support for the following values of the properties attribute of the package/spine/itemref element:
    • rendition:layout-pre-paginated;
    • rendition:layout-reflowable;
    • rendition:orientation-auto;
    • rendition:orientation-landscape;
    • rendition:orientation-portrait;
    • rendition:spread-auto;
    • rendition:spread-both;
    • rendition:spread-landscape;
    • rendition:spread-none;
    • rendition:page-spread-center;
    • rendition:page-spread-left;
    • rendition:page-spread-right;
    • rendition:flow-paginated;
    • rendition:flow-scrolled-continuous;
    • rendition:flow-scrolled-doc;
    • rendition:flow-auto;
    • rendition:align-x-center.
  • removes the following metadata values (they have been completely removed from the EPUB specification):
    • acquire from the rel attribute of the package/metadata/link element;
    • xmp from the properties attribute of the package/metadata/link element.

Testing steps

This pull request includes unit tests that exercise all new attributes and schema types.

@vers-one vers-one self-assigned this May 11, 2023
@vers-one vers-one changed the title EpubMetadataLink.HrefLanguage property EPUB 3.3 support May 11, 2023
@vers-one vers-one merged commit 7c75acc into master May 13, 2023
@vers-one vers-one deleted the epub33 branch May 13, 2023 06:03
@vers-one vers-one linked an issue May 13, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EPUB 3.3 support
1 participant