Skip to content

Incorrect "item" JSON output for epubcheck 5.0.0 #1475

@nekennedy

Description

@nekennedy

We are seeing some substantial differences for the "item" json. Everything is coming through as "null", 0, or false in epubcheck 5.0.0. Additionally, there are sometimes two entries for each asset (I haven't confirmed this duplication is true for all asset types in all situations).

json output for a single html page from epubcheck 4.2.6:

{
    "id" : "acknowledgements",
    "fileName" : "OEBPS/acknowledgements.xhtml",
    "media_type" : "application/xhtml+xml",
    "compressedSize" : 1123,
    "uncompressedSize" : 2108,
    "compressionMethod" : "Deflated",
    "checkSum" : "cf72435894dc21d72e528e95ab44f916646d05b661e66a7b0b61a8eda97aa77",
    "isSpineItem" : true,
    "spineIndex" : 24,
    "isLinear" : true,
    "navigationOrder" : 23,
    "isHTML5" : true,
    "isFixedFormat" : false,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : "reflowable",
    "renditionOrientation" : "auto",
    "renditionSpread" : "auto",
    "referencedItems" : [ "OEBPS/content-toc.xhtml", "OEBPS/styles/custom.css" ]
  }

epubcheck 5.0.0 output for that same file, which has two entries:

{
    "id" : "acknowledgements",
    "fileName" : "acknowledgements.xhtml",
    "media_type" : null,
    "compressedSize" : 0,
    "uncompressedSize" : 0,
    "compressionMethod" : null,
    "checkSum" : null,
    "isSpineItem" : false,
    "spineIndex" : null,
    "isLinear" : false,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : null,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : null,
    "renditionOrientation" : null,
    "renditionSpread" : null,
    "referencedItems" : [ ]
  }
  **[...]**
  {
    "id" : "ePubCheck.NoManifestRef:OEBPS/acknowledgements.xhtml",
    "fileName" : "OEBPS/acknowledgements.xhtml",
    "media_type" : "application/xhtml+xml",
    "compressedSize" : 0,
    "uncompressedSize" : 0,
    "compressionMethod" : null,
    "checkSum" : null,
    "isSpineItem" : true,
    "spineIndex" : 24,
    "isLinear" : true,
    "navigationOrder" : null,
    "isHTML5" : false,
    "isFixedFormat" : false,
    "isScripted" : false,
    "scriptSrc" : false,
    "scriptTag" : false,
    "scriptInline" : false,
    "renditionLayout" : "reflowable",
    "renditionOrientation" : "auto",
    "renditionSpread" : "auto",
    "referencedItems" : [ ]
  }

From an impact perspective, we (PRH) or not use the json output in any of our ebook production tools. We are using the json output for out EAA backlist project, but not the individual "item" json. I thought it was worth reporting since others may be using this output.

Metadata

Metadata

Assignees

Labels

priority: mediumTo be processed and published in one of the upcoming releasesstatus: has PRThe issue is being processed in a pull requesttype: bugThe issue describes a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions