w3c / epubcheck

The conformance checker for EPUB publications
https://www.w3.org/publishing/epubcheck/
BSD 3-Clause "New" or "Revised" License
1.65k stars 402 forks source link

Undefined entities are not reported for EPUB2 checks. #1546

Open typopaul opened 1 year ago

typopaul commented 1 year ago

Non-standard entities, for example &linkref; are not reported when the checked file is EPUB2. In EPUB3 such entities are reported as errors.

Is there a certain reason for this behavior?

rdeltour commented 1 year ago

If entities are defined in an external DTD, that would be valid in EPUB 2 (but not in EPUB 3). Could you share a sample file to reproduce the issue?

typopaul commented 11 months ago

@rdeltour

Find attached a zip file with a sample file containing a "wrong" entity in an EPUB2 file and a screenshot from the Thorium Reader. I understand that the entity should be associated with an external DTD/resource. I am surprised that the EPUB Checker does not report it as an error but Thorium Reader does.

issue1546_sample-entity-error-EPUB2.zip