Skip to content

Resource item properties #53

@l1yefeng

Description

@l1yefeng

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 the nav 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions