Przejdź do treści
EPUBCheck · Obrazy, dźwięk i nakładki multimedialne

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ć

  1. Wskaż src tekstu na identyfikator elementu w SVG lub użyj identyfikatora fragmentu SVG, takiego jak fragment view lub viewBox.
  2. Sprawdź, czy identyfikator rzeczywiście istnieje w pliku SVG.
  3. 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_017 URL fragment should indicate an element ID, but found '#…'.
  • MED_016 Media Overlays total duration should be the sum of the durations of all Media Overlays documents.
  • MED_015 Media overlay text references must be in reading order. Text target "…" is before the previous link target in … order.
  • MED_014 Media overlay audio file URLs must not have a fragment, but found '#…'.
  • MED_013 Media Overlay Document referenced from the "media-overlay" attribute does not contain a reference to this Content Document.
  • MED_012 The "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.

FAQ

Co oznacza EPUBCheck MED_018?

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.

Czy MED_018 to błąd?

MED_018 jest zgłaszane jako ostrzeżenie domyślnie. EPUB jest nadal ważny, ale coś może spowodować problemy w niektórych aplikacjach do czytania. EPUBCheck kończy z 0, chyba że przekażesz --failonwarnings.

PDF do EPUB narzędzi

Każde narzędzie używa tej samej maszyny. Do 3 książek dziennie jest za darmo.

Zobacz wszystkie narzędzia