Skip to content

Commit

Permalink
feat: do not report Media Overlays ordering mismatch
Browse files Browse the repository at this point in the history
EPUBCheck v4.2.5 introduced a new check (MED-015) to report a mismatch
between Media Overlays and Content Document order.
But this rule will be relaxed in EPUB 3.3.

This commit preemptively demotes MED-015 to a USAGE.

See #1225. We'll decide if we want to totally remove the feature when we
fully implementat EPUB 3.3.
  • Loading branch information
rdeltour committed Jun 29, 2021
1 parent 6c68c61 commit 1cd7d77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private void initialize()
severities.put(MessageId.MED_012, Severity.ERROR);
severities.put(MessageId.MED_013, Severity.ERROR);
severities.put(MessageId.MED_014, Severity.ERROR);
severities.put(MessageId.MED_015, Severity.ERROR);
severities.put(MessageId.MED_015, Severity.USAGE);

// NAV
severities.put(MessageId.NAV_001, Severity.ERROR);
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/epub3/mediaoverlays-publication.feature
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ Feature: EPUB 3 ▸ Media Overlays ▸ Full Publication Checks
### 3.2.1 Structure

Scenario: Report an overlay document whose text elements do not match the dom order of the corresponding content document
Given the reporting level is set to USAGE
When checking EPUB 'mediaoverlays-text-reading-order-error'
Then error MED-015 is reported
Then usage MED-015 is reported
And no other errors or warnings are reported

### 3.5.1 Including Media Overlays
Expand Down

0 comments on commit 1cd7d77

Please sign in to comment.