repro.sh builds a minimal fixed-layout EPUB with two faults and runs epubcheck 5.3.0 on it.
Output:
ERROR HTM_056 Viewport metadata has no "height" dimension (both "width" and "height"
ERROR RSC-012 Fragment identifier is not defined.
One report, two spellings. HTM_056 takes an underscore, RSC-012 a hyphen.
The ids are defined in src/main/java/com/adobe/epubcheck/messages/MessageId.java, where each enum
constant carries its public id as a string:
MED_005("MED-005"),
MED_006("MED_006"),In 5.3.0, 21 of 315 ids are spelled with an underscore:
HTM_053 HTM_054 HTM_055 HTM_056 HTM_057 HTM_058 HTM_059 HTM_060a HTM_060b HTM_061
MED_006 MED_007 MED_010 MED_011 MED_012 MED_013 MED_014 MED_015 MED_016 MED_017 MED_018
In 5.4.0 there are 23 of 323, with HTM_062 and HTM_063 added.
To list them from a checkout:
grep -oE '^\s+[A-Z]{3}_[0-9]+[a-z]?\("[A-Z]{3}_[0-9]+[a-z]?"\)' \
src/main/java/com/adobe/epubcheck/messages/MessageId.javaepubcheck's own feature files write the hyphen form for these ids, so the expectation and the output disagree:
src/test/resources/epub3/09-media-overlays/media-overlays.feature
Then error MED-014 is reported
Found while replaying epubcheck's test corpus against two validators; a consumer matching
[A-Z]{3}-[0-9]+ dropped all 21 silently.