EPUBCheck MED_018: cattivo frammento SVG nell'overlay
Aggiornato:
EPUBCheck MED_018 è un messaggio di avviso: “URL fragment should be an SVG fragment identifier, but found '#…'.” Un riferimento di testo di media overlay in un documento SVG utilizza un frammento che non è un identificatore di frammento SVG. EPUB raccomanda identificatori di frammento SVG lì, perché le app di lettura potrebbero non supportare altri schemi; EPUBCheck avverte e mostra il frammento.
Il messaggio ufficiale
URL fragment should be an SVG fragment identifier, but found '#%1$s'.
- Gravità predefinita
- Avviso. Il EPUB è ancora valido, ma qualcosa potrebbe causare problemi in alcune app di lettura. EPUBCheck esce con 0 a meno che non passi --failonwarnings.
- versione EPUBCheck
- 5.4.0
EPUBCheck stampa questo ID con un trattino basso invece di un trattino; questa pagina utilizza l'ID esattamente come EPUBCheck lo riporta.
%1$s, %2$s… sono completati con il file, valore o elemento EPUBCheck trovato.
Cause tipiche
- Frammenti scritti per XHTML utilizzati su una pagina SVG, come in fumetti a layout fisso con narrazione.
- Un errore di battitura nel frammento.
Come correggerlo
- Punta il testo src a un id di elemento nel SVG, o usa un identificatore di frammento SVG come un frammento view o viewBox.
- Controlla che l'id esista realmente nel file SVG.
- Ricostruisci il EPUB e riesegui EPUBCheck di nuovo per confermare che il messaggio sia scomparso.
Quando non è questo
Per i capitoli XHTML, l'avviso equivalente è MED_017.
Termini usati qui
Altri messaggi di 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.
Fonti
Testo e gravità del messaggio da EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Spiegazione di EpubCC.