EPUBCheck MED_014: fragment w URL audio overlay
Zaktualizowane:
EPUBCheck MED_014 jest komunikatem o błędzie: „Media overlay audio file URLs must not have a fragment, but found '#…'.” URL dźwięku w media overlay ma fragment (#part), co jest niedozwolone. Część pliku audio do odtwarzania jest podawana przez clipBegin i clipEnd, a nie przez fragment w URL.
Oficjalna wiadomość
Media overlay audio file URLs must not have a fragment, but found '#%1$s'.
- Domyślna powaga
- Błąd. EPUB łamie zasady specyfikacji i jest nieprawidłowy. Sklepy i Wysłanie do Kindle mogą go odrzucić, a EPUBCheck kończy działanie ze statusem 1.
- Wersja EPUBCheck
- 5.4.0
EPUBCheck drukuje ten identyfikator z podkreśleniem zamiast myślnika; ta strona używa identyfikatora dokładnie tak, jak EPUBCheck go raportuje.
%1$s, %2$s… wypełnione są plikiem, wartością lub elementem EPUBCheck znalezionym.
Typowe przyczyny
- Fragmenty multimedialne, takie jak
narration.mp3#t=10,20, skopiowane z audio w sieci. - Skrypt, który zapisał czasy klipu w URL zamiast w atrybutach.
Jak to naprawić
- Otwórz plik SMIL i usuń #fragment z src każdego elementu audio.
- Przenieś czasy do clipBegin i clipEnd, na przykład
<audio src="narration.mp3" clipBegin="10s" clipEnd="20s"/>. - Odbuduj EPUB i uruchom ponownie EPUBCheck, aby potwierdzić, że komunikat zniknął.
Kiedy to nie to
Fragmenty są oczekiwane w src tekstu (wskazując na identyfikator elementu); są one sprawdzane przez MED_017.
Terminy używane tutaj
Inne komunikaty MED
MED_013Media Overlay Document referenced from the "media-overlay" attribute does not contain a reference to this Content Document.MED_015Media overlay text references must be in reading order. Text target "…" is before the previous link target in … order.MED_012The "media-overlay" attribute does not match the ID of the Media Overlay that refers to this document.MED_016Media Overlays total duration should be the sum of the durations of all Media Overlays documents.MED_011EPUB Content Document referenced from multiple Media Overlay Documents.MED_017URL fragment should indicate an element ID, but found '#…'.
Źródła
- EPUB 3.3, §9.2.2.8 The audio element · czytaj
Tekst wiadomości i poważność z EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Wyjaśnienie przez EpubCC.