Closed prashantverma2014 closed 2 months ago
This could be achieved using a CSS style sheet.
<imggroup>
<img id="rId111"
src="Sinking_of_the_Titanic-model_answer-Picture%2048.png"
alt="Painting of a ship sinking by the bow, with people rowing a lifeboat in the foreground and other people in the water. Icebergs are visible in the background."/>
</imggroup>
The alt
attribute in this example could be spoken by applying the following CSS:
@media aural {
img[alt]::before {
content: attr(alt);
}
}
The CSS could be further improved by e.g. not speaking the alt text when a caption is present.
Let me know if you think this behavior makes sense to have as an option.
@marisademeglio @NPavie For this issue I'm thinking of doing the following:
<userAgentStylesheet>
element inside the /stylesheet-parameters
request document. The client is expected to include this element with a mediaType
attribute corresponding to the input of the script:
<userAgentStylesheet mediaType="application/x-dtbook+xml"/>
for dtbook-to-pef, dtbook-to-daisy3 and dtbook-to-epub3<userAgentStylesheet mediaType="application/xhtml+xml"/>
for html-to-pef, epub3-to-pef, epub3-to-epub3 and epub-to-daisyDo you think it would be feasible to adapt the GUI? So include the userAgentStylesheet
element, and make the job forms of dtbook-to-daisy3, dtbook-to-epub3, epub3-to-epub3 and epub-to-daisy scripts into a two-step process just like the braille scripts.
@bertfrees can you open an issue in the UI repo for this?
Fixed by 1a3056bd / 24d622f524
For example when DTBook xml is converted to DAISY 3 and Azure voice is used, the content of the image alt text is not present in audio files of the output. If the alt text has numbers, it is recorded.
To recreate the issue, the document, its XML and DAISY 3 output is attached.
DAISY 3.zip Sinking_of_the_Titanic-model_answer.docx Sinking_of_the_Titanic-model_answer_DtbookXML_202403262109546774.zip