You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current parsing code hard-codes support for dc:source and dc:rights, but there are many other possibilities such as cc:attributionURL (<package prefix="cc: http://creativecommons.org/ns#">), a11y:certifiedBy ( http://www.idpf.org/epub/vocab/package/a11y/# ), dcterms:conformsTo, schema:accessModeSufficient, etc.
Any <meta property="NAME">VALUE</meta> or <meta name="NAME" value="VALUE"> not "natively" supported should be passed to otherMetadata, without hard-coding particular names.
readium/r2-streamer-swift#105 fixes this partially. <meta property="x"/> are added to otherMetadata, but dc:source and dc:rights are still hard-coded because they can appear like that: <dc:rights>Public domain</dc:rights>. Additional discussion regarding this can be found here: readium/webpub-manifest#14 (comment)
The current parsing code hard-codes support for
dc:source
anddc:rights
, but there are many other possibilities such ascc:attributionURL
(<package prefix="cc: http://creativecommons.org/ns#">
),a11y:certifiedBy
( http://www.idpf.org/epub/vocab/package/a11y/# ),dcterms:conformsTo
,schema:accessModeSufficient
, etc.Any
<meta property="NAME">VALUE</meta>
or<meta name="NAME" value="VALUE">
not "natively" supported should be passed tootherMetadata
, without hard-coding particular names.https://github.com/readium/r2-streamer-swift/blob/1cc6dc1c683b12592b052c80669302f9c36efcdd/Sources/parser/EPUB/OPFParser.swift#L89-L93
The text was updated successfully, but these errors were encountered: