Skip to content

Commit

Permalink
Revision read aloud 2023 (#106)
Browse files Browse the repository at this point in the history
* Update introduction

Remove reference to additional guidance document

* Language switching

Add new test for switching TTS when the language changes in the content.

* Update Read_aloud_tests.xhtml

* Update Read_aloud_tests.xhtml

Fix duplicate identifier

* Alt text support

Add a test for announcing alt text of images

* Improve test language

Changed the test instructions for the language test to hopefully make it clearer and more robust.

* Update package.opf

Comment spine entry to fix error reported by epubcheck

* Remove test #710

Remove test #710 "The emphasis or highlight colour can be changed"

* Remove test #550

Remove test #550 "Text to Speech Changes Languages Automatically"

* Add test #400

Add test #400 "Change Read Aloud reading voice"

* Fix a11y metadata

Add schema:accessibilityFeature and schema:accessibilityHazard entries

* Add xml:lang to psckage file

Resolve Ace error

---------

Co-authored-by: Marisa DeMeglio <marisa.demeglio@gmail.com>
  • Loading branch information
ways2read and marisademeglio authored Feb 7, 2024
1 parent 9b01d18 commit 3561970
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
8 changes: 6 additions & 2 deletions content/epub30-test-0304/EPUB/package.opf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" unique-identifier="uid">
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" unique-identifier="uid" xml:lang="en">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:identifier id="uid">com.github.epub-testsuite.epub30-test-0304</dc:identifier>
<dc:title>Fundamental Accessibility Tests: Read Aloud</dc:title>
Expand All @@ -14,6 +14,10 @@
<meta property="schema:accessMode">visual</meta>
<meta property="schema:accessModeSufficient">textual</meta>
<meta property="schema:accessibilityFeature">structuralNavigation</meta>
<meta property="schema:accessibilityFeature">alternativeText</meta>
<meta property="schema:accessibilityHazard">noFlashingHazard</meta>
<meta property="schema:accessibilityHazard">noSoundHazard</meta>
<meta property="schema:accessibilityHazard">noMotionSimulationHazard</meta>
<meta property="schema:version">1.0.0</meta>
</metadata>
<manifest>
Expand All @@ -35,7 +39,7 @@
<spine>
<itemref idref="cover"/>
<itemref idref="front"/>
<itemref idref="nav" linear="no"/>
<!-- <itemref idref="nav" linear="no"/>-->
<itemref idref="introduction"/>
<itemref idref="xhtml-001"/>
</spine>
Expand Down
20 changes: 5 additions & 15 deletions content/epub30-test-0304/EPUB/xhtml/Read_aloud_tests.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
several with harpoons hanging on him and their ship in the background."</p>
<p class="eval">Indicate Pass or Fail.</p>
</section>
<section id="ReadAloud-400" class="test">
<h2><span class="test-id">ReadAloud-400</span> <span class="test-title">Change Read Aloud reading voice</span></h2>
<p class="desc">It should be possible to choose from some different options the voice used for read aloud.</p>
<p class="eval">Indicate Pass or Fail.</p>
</section>
<section id="ReadAloud-410" class="test">
<h2><span class="test-id">ReadAloud-410</span> <span class="test-title">Change Read Aloud reading speed</span></h2>
<p class="desc">It should be possible to adjust (increase/decrease) the speed of reading. </p>
Expand All @@ -85,15 +90,6 @@
<p>End of text for testing read aloud.</p>
<p class="eval">Indicate Pass or Fail.</p>
</section>
<section id="ReadAloud-550" class="test">
<h2><span class="test-id">ReadAloud-550</span> <span class="test-title">Text to speech changes languages automatically</span></h2>
<p class="desc">Read aloud should automatically change the TTS language when it encounters a language change in the XHTML. This test contains English, German, French, and Italian.</p>
<p>Listen to the phrases below using the read aloud feature. The test passes if the phrases are announced using correct voices for the different languages.</p>
<p class="eval">Indicate Pass or Fail.</p>
<h3>Language Change Test</h3>
<p>In English, "Good morning my darling."<br />In German, <span xml:lang="de" lang="de">"Guten Morgen, mein Liebling."</span><br />In French, <span xml:lang="fr" lang="fr">"Bonjour ma chérie</span><br/>In Italian, <span xml:lang="it" lang="it">"Buongiorno amore mio."</span></p>
<p>End of language change test.</p>
</section>
<section id="ReadAloud-610" class="test">
<h2><span class="test-id">ReadAloud-610</span> <span class="test-title">Text is emphasised as it is spoken by read aloud</span></h2>
<p class="desc">Check if the Text is emphasised as it is spoken by read aloud.</p>
Expand All @@ -103,12 +99,6 @@
</ol>
<p class="eval">Indicate Pass or Fail.</p>
</section>
<section id="ReadAloud-710" class="test">
<h2><span class="test-id">ReadAloud-710</span> <span class="test-title">The emphasis or highlight colour can be changed</span></h2>
<p class="desc">Activate Read Aloud feature as described in the previous test. Change the colour of emphasis or visual highlight of the text being read aloud using any feature available in the reading system or the operating system. The users
should have a choice of different colours for text highlighting.</p>
<p class="eval">Indicate Pass or Fail.</p>
</section>
</body>

</html>
5 changes: 2 additions & 3 deletions content/epub30-test-0304/EPUB/xhtml/nav.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@
<li class="test"><a href="Read_aloud_tests.xhtml#ReadAloud-210">The Read Aloud feature should continue until interrupted by the user</a></li>
<li class="test"><a href="Read_aloud_tests.xhtml#ReadAloud-310">All text should be read in the proper order</a></li>
<li class="test"><a href="Read_aloud_tests.xhtml#ReadAloud-350">Image alternate text reading</a></li>
<li class="test"><a href="Read_aloud_tests.xhtml#ReadAloud-410">Change Read Aloud reading speed</a></li>
<li class="test"><a href="Read_aloud_tests.xhtml#ReadAloud-400">Change Read Aloud reading voice</a></li>
<li class="test"><a href="Read_aloud_tests.xhtml#ReadAloud-410">Change Read Aloud reading speed</a></li>
<li class="test"><a href="Read_aloud_tests.xhtml#ReadAloud-510">Text to Speech handles punctuations and document structure appropriately</a></li>
<li class="test"><a href="Read_aloud_tests.xhtml#ReadAloud-550">Text to Speech Changes Languages Automatically</a></li>
<li class="test"><a href="Read_aloud_tests.xhtml#ReadAloud-610">Text is emphasised as it is spoken by read aloud</a></li>
<li class="test"><a href="Read_aloud_tests.xhtml#ReadAloud-710">The emphasis or highlight colour can be changed</a></li>
</ol>
</li>
</ol>
Expand Down

0 comments on commit 3561970

Please sign in to comment.