Skip to content

"none" feature not dropped when merging inferred accessibility features #102

@sylvain-degeilh-lingsoft

Description

Hi,

We’re using the RWP manifest CLI to extract accessibility metadata from EPUBs, with the "merged" option turned on so missing properties get inferred.

It looks like something might be off with how the merging works. In one example, the EPUB explicitly sets "feature": "none", but it clearly has a table of contents. The CLI ends up returning:
"feature": ["none", "tableOfContents"]

We would expect:
"feature": ["tableOfContents"]

So it seems like "none" isn’t being removed when other features are inferred, which leads to a confusing result.

Other options ("no", "split") return "feature": ["none"].

Tested on a clean install

  • v0.6.6 of the readium cli (go-toolkit v0.13.4)
  • go version 1.24.2
  • Ubuntu 24.04 LTS
    With the attached file moby_dick_af_none.epub

Thanks,
Sylvain

PS: The attached file moby_dick_af_none.zip is in fact an epub file. The extension has been changed to zip as .epub is not accepted.

moby_dick_af_none.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions