-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Resource item properties is specified in EPUB3 but not part of EPUB2.
https://www.w3.org/TR/epub-33/#sec-item-resource-properties
A few improvements can be done from the current implementation:
Use properties of item
instead of itemref
The canonical places to define these properties seem to be on manifest>item
rather than spine>itemref
(current implementation), although both are allowed. To be honest I don't know the reason behind defining "properties" on both items and itemrefs. But reading this in the spec makes me prefer properties to be extracted from all <item>
s
EPUB creators MUST declare exactly one
item
as the EPUB navigation document using thenav
property.
---source
Or, SpineItem
and ResourceItem
(non-exist yet) can both have their properties as written in the package document originally.
Value is space-delimited list
The value of properties
attribute is possibly multiple words delimited using space. In case a content is marked properties="svg cover-image"
, the current implementation would fail to identify this cover.
I am interested in implementing those when I have time.