Skip to content

Commit 1cd7d77

Browse files
committed
feat: do not report Media Overlays ordering mismatch
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.
1 parent 6c68c61 commit 1cd7d77

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private void initialize()
151151
severities.put(MessageId.MED_012, Severity.ERROR);
152152
severities.put(MessageId.MED_013, Severity.ERROR);
153153
severities.put(MessageId.MED_014, Severity.ERROR);
154-
severities.put(MessageId.MED_015, Severity.ERROR);
154+
severities.put(MessageId.MED_015, Severity.USAGE);
155155

156156
// NAV
157157
severities.put(MessageId.NAV_001, Severity.ERROR);

src/test/resources/epub3/mediaoverlays-publication.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ Feature: EPUB 3 ▸ Media Overlays ▸ Full Publication Checks
5050
### 3.2.1 Structure
5151

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

5758
### 3.5.1 Including Media Overlays

0 commit comments

Comments
 (0)