readium-js
readium-js copied to clipboard
EPUB manifest-level fallback chain parsing
See: http://www.idpf.org/epub/301/spec/epub-overview.html#sec-access-fallbacks http://www.idpf.org/epub/301/spec/epub-publications.html#sec-fallback-processing-flow-manifest
Related issue: https://github.com/readium/readium-shared-js/issues/44
FYI, see native C++ implementation in Readium-SDK: https://github.com/readium/readium-sdk/blob/develop/ePub3/ePub/package.cpp#L486 https://github.com/readium/readium-sdk/blob/develop/ePub3/ePub/manifest.cpp#L189
Note the proper handling of circular references.