EPUBCheck MED_018: zły fragment SVG w overlay
Zaktualizowane:
EPUBCheck MED_018 jest komunikatem ostrzegawczym: „URL fragment should be an SVG fragment identifier, but found '#…'.” Odwołanie tekstowe w media overlay do dokumentu SVG używa fragmentu, który nie jest identyfikatorem fragmentu SVG. EPUB zaleca identyfikatory fragmentów SVG, ponieważ aplikacje do czytania mogą nie wspierać innych schematów; EPUBCheck ostrzega i pokazuje fragment.
Oficjalna wiadomość
URL fragment should be an SVG fragment identifier, but found '#%1$s'.
- Domyślna powaga
- Ostrzeżenie. EPUB jest wciąż ważny, ale coś może powodować problemy w niektórych aplikacjach do czytania. EPUBCheck kończy działanie z wynikiem 0, chyba że przekażesz --failonwarnings.
- 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 zapisane dla XHTML użyte na stronie SVG, takich jak w komiksach o stałym układzie z narracją.
- Błąd w fragmencie.
Jak to naprawić
- Wskaż src tekstu na identyfikator elementu w SVG lub użyj identyfikatora fragmentu SVG, takiego jak fragment view lub viewBox.
- Sprawdź, czy identyfikator rzeczywiście istnieje w pliku SVG.
- Odbuduj EPUB i uruchom ponownie EPUBCheck, aby potwierdzić, że komunikat zniknął.
Kiedy to nie to
Dla rozdziałów XHTML równoważne ostrzeżenie to MED_017.
Terminy używane tutaj
Inne komunikaty MED
MED_017URL fragment should indicate an element ID, but found '#…'.MED_016Media Overlays total duration should be the sum of the durations of all Media Overlays documents.MED_015Media overlay text references must be in reading order. Text target "…" is before the previous link target in … order.MED_014Media overlay audio file URLs must not have a fragment, but found '#…'.MED_013Media Overlay Document referenced from the "media-overlay" attribute does not contain a reference to this Content Document.MED_012The "media-overlay" attribute does not match the ID of the Media Overlay that refers to this document.
Źródła
Tekst wiadomości i poważność z EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Wyjaśnienie przez EpubCC.