Skip to content

Commit

Permalink
Merge pull request #30 from gautierchomel/language_switching
Browse files Browse the repository at this point in the history
Experimental language change tests
  • Loading branch information
avneeshsingh authored Feb 12, 2024
2 parents d6965e7 + fc0bd1c commit 815f908
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 0 deletions.
35 changes: 35 additions & 0 deletions language_change/Language_change_locales.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">

<head>
<title>Language change locals lang code</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="../css/base.css" />
</head>

<body>
<section id="reading-1512" class="test">

<h1><span class="test-id">reading-1511</span> <span class="test-title">TTS Change Languages Automatically (main language code)</span></h1>

<p class="desc">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. In some cases available voices are dependant of the operating system. to perform this test, tester must be sure that the following languages are installed on his computer:</p>
<ul>
<li>English, US</li>
<li>French, Canada</li>
</ul>


<p> 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>

<p class="eval">Indicate Pass or Fail.</p>

<h2>Language Change Test</h2>

<p>In US English, "this is a very good book"; In french Canadian, <span xml:lang="fr-ca" lang="fr-ca">"c'est un très bon livre"</span>.</p>

<p>End of language change testing.</p>

</section>
</body>

</html>
35 changes: 35 additions & 0 deletions language_change/Language_change_main.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>Language change main lang code</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="../css/base.css" />
</head>

<body>
<section id="reading-1510" class="test">

<h1><span class="test-id">reading-1511</span> <span class="test-title">TTS Change Languages Automatically (main language code</span></h1>

<p class="desc">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. In some cases available voices are dependant of the operating system. to perform this test, tester must be sure that the following languages are installed on his computer:</p>
<ul>
<li>English</li>
<li>French</li>
</ul>


<p> 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>

<p class="eval">Indicate Pass or Fail.</p>

<h2>Language Change Test</h2>

<p>In English, "this is a very good book"; In french, <span xml:lang="fr" lang="fr">"c'est un très bon livre"</span>.</p>

<p>End of language change testing.</p>

</section>
</body>

</html>
37 changes: 37 additions & 0 deletions language_change/Language_change_threeletters.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="eng" lang="eng">

<head>
<title>Language change locals lang code three letters</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="../css/base.css" />
</head>

<body>
<section id="reading-1512" class="test">

<h1><span class="test-id">reading-1513</span> <span class="test-title">TTS Change Languages Automatically (main language code, three letters)</span></h1>

<p class="desc">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 variant is set to three letters langage code (eng and fra).
In some cases available voices are dependant of the operating system. to perform this test, tester must be sure that the following languages are installed on his computer:</p>
<ul>
<li>English</li>
<li>French</li>
</ul>


<p> 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>

<p class="eval">Indicate Pass or Fail.</p>

<h2>Language Change Test</h2>

<p>In English, "this is a very good book"; In french, <span xml:lang="fra" lang="fra">"c'est un très bon livre"</span>.</p>

<p>End of language change testing.</p>

</section>
</body>

</html>

0 comments on commit 815f908

Please sign in to comment.