Add a test for supporting language tags
Closed this issue · 10 comments
In non visual reading, and in read aloud, add tests for switching the tts when the language changes.
This test is important. We need to decide if this is test for fundamental test book or advance test book.
Several questions for the non-visual reading test title:
First, is this in the fundamental or the advanced?
Second, are there two tests, one for reading using the down arrow key and one for continuous reading?
If language switching is supported on several test environments then it can go in the fundamental test book. Otherwise, it is an advanced feature until there is wider support. This is the generally applied principle, and this question may also be raised for other revisions in the 2023 milestone.
Maybe we can compile them into a title and check the coverage in one pass?
I don't believe there will be a difference whether reading line by line or using continuous reading.
I think the language change should not be for a complete paragraph but for a phrase within a paragraph.
I think the language change should not be for a complete paragraph but for a phrase within a paragraph.
Yes, and words too, for example:
<p>in French, the word "book" is <span xml:lang="fr">"livre"</span>.</p>
A real-world example is "The Waste Land":
https://idpf.github.io/epub3-samples/30/samples.html#wasteland
https://github.com/IDPF/epub3-samples/blob/main/30/wasteland/EPUB/wasteland-content.xhtml
!~~~HTML
reading-1510 TTS Change Languages Automatically
Screen readers and other Assistive Technology that use TTS should be able to detect language changes marked in XHTML content. A screen reader should be able to be configured to automatically change the TTS speaking language when it encounters a language change in the XHTML. This test contains English, German, French, and Italian.
Configure your screen reader or other Assistive Technology to automatically change the TTS language. Read the phrases below line by line and continuously. The test passes if the TTS language changes as it encounters the language change.
<p class="eval">Indicate Pass or Fail.</p>
Language Change Test
In English, "Good morning my darling."
In German, "Guten Morgen, mein Liebling."
In french, "Bonjour ma chérie."
in Italian, "Buongiorno amore mio."
End of language change testing.