diff --git a/src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java b/src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java index 2b38a4c18..10d1f58c7 100644 --- a/src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java +++ b/src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java @@ -276,7 +276,7 @@ private void initialize() severities.put(MessageId.PKG_009, Severity.ERROR); severities.put(MessageId.PKG_010, Severity.WARNING); severities.put(MessageId.PKG_011, Severity.ERROR); - severities.put(MessageId.PKG_012, Severity.WARNING); + severities.put(MessageId.PKG_012, Severity.USAGE); severities.put(MessageId.PKG_013, Severity.ERROR); severities.put(MessageId.PKG_014, Severity.WARNING); severities.put(MessageId.PKG_015, Severity.FATAL); diff --git a/src/main/java/com/adobe/epubcheck/ocf/OCFFilenameChecker.java b/src/main/java/com/adobe/epubcheck/ocf/OCFFilenameChecker.java index 2765da9ce..912a02751 100644 --- a/src/main/java/com/adobe/epubcheck/ocf/OCFFilenameChecker.java +++ b/src/main/java/com/adobe/epubcheck/ocf/OCFFilenameChecker.java @@ -87,8 +87,6 @@ public static String checkCompatiblyEscaped(final String str, Report report, EPU private static String checkNonAsciiFilename(final String str, Report report) { - // TODO change this from warning to a compatibility hint message level - String nonAscii = str.replaceAll("[\\p{ASCII}]", ""); if (nonAscii.length() > 0) { diff --git a/src/test/java/com/adobe/epubcheck/api/Epub30CheckTest.java b/src/test/java/com/adobe/epubcheck/api/Epub30CheckTest.java index 4deae518c..f7b8fa102 100644 --- a/src/test/java/com/adobe/epubcheck/api/Epub30CheckTest.java +++ b/src/test/java/com/adobe/epubcheck/api/Epub30CheckTest.java @@ -225,8 +225,7 @@ public void testDuplicateZipEntriesIssue265() @Test public void testDuplicateZipEntriesIssue265b() { - Collections.addAll(expectedWarnings, MessageId.OPF_061, MessageId.OPF_003, MessageId.PKG_012, - MessageId.PKG_012); + Collections.addAll(expectedWarnings, MessageId.OPF_061, MessageId.OPF_003); // non-unique entry names (after NFC normalization) should raise a warning testValidateDocument("invalid/issue265b.epub"); }