Skip to content

New inference rule for accessMode textual #17

@nicolascyr

Description

@nicolascyr

accessMode textual is inferred, but only when accessModeSufficient textual is inferred. However, accessMode textual should be inferred when an EPUB file contains (any) content in textual format (in the same way as visual is inferred when the EPUB file contains an image or a video).

This might not be a big deal because a vast majority of EPUB files should get accessMode textual property, but I feel it's wrong to infer it only when accessModeSufficient textual is inferred (why not in all other cases?).

Example 1 :
An EPUB file without accessMode nor accessModeSufficient property, that contains text, a cover and other images
inference = accessMode visual only
This file contains text, so accessMode textual should be inferred.

Example 2 :
An EPUB file without accessMode nor accessModeSufficient property, that contains text and (only) a cover image identified as such
inference = accessMode textual, visual and accessModeSufficient ["textual"]
This file contains text, and accessMode textual is inferred but only because/thanks to the fact accessModeSufficient textual is inferred.

Metadata

Metadata

Assignees

No one assigned

    Labels

    manifestRelated to the manifest command

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions