Difference between revisions of "CSS Speech"

From Level Access Web Labs
Jump to navigation Jump to search
(And again...)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
* This page demonstrates some aspects of the CSS 3 Speech functionality: digits and literal-punctuation.
 
* This page demonstrates some aspects of the CSS 3 Speech functionality: digits and literal-punctuation.
 +
* Currently these are only supported by VoiceOver on iOS
 +
 
<html>
 
<html>
 
<head>
 
<head>
 
<style>
 
<style>
.dig {
+
  .box {
speak: digits;
+
    border: thin solid black;
}
+
    margin:1em;
.test {
+
    padding:.5em;
speak: literal-punctuation;
+
  }
}
+
  .dig {
.spell-out  
+
    speak: digits;
 +
  }
 +
  .punc {
 +
    speak: literal-punctuation;
 +
  }
 +
  .spell-out  
 
   {
 
   {
  speak:spell-out;
+
    speak:spell-out;
  }
+
  }
 
  </style>
 
  </style>
 
</head>
 
</head>
 
<body>
 
<body>
<p> It </p>
+
 
<p class="spell-out"> it </p>
+
<div class="box">
<p> John St. north </p>
+
  <h3>Text with no CSS speech applied</h3>
<p> Key St east </p>
+
  <p> it </p>
<p class="test"> John St. south </p>
+
  <h3>Text with CSS spell-out applied</h3>
<p class="test"> Key St west </p>
+
  <p class="spell-out"> it </p>
<p class="dig"> 123 John St. south </p>
+
</div>
<p class="dig"> 10428 Key St west </p>
+
 
 +
<div class="box">
 +
  <h3>Text without literal punctuation applied</h3>
 +
  <p> else { return true; } </p>
 +
  <h3>Text with Literal punctuation applied</h3>
 +
  <p class="punc"> else { return true; } </p>
 +
</div>
 +
 
 +
<div class="box">
 +
  <h3>Text without digits applied</h3>
 +
  <p> 123 John St. south </p>
 +
  <p> 10428 Key St west </p>
 +
  <h3>Text with Digits applied</h3>
 +
  <p class="dig"> 123 John St. south </p>
 +
  <p class="dig"> 10428 Key St west </p>
 +
  <h3>Text with Digits and spell-out applied</h3>
 +
  <p class="dig spell-out"> 123 John St. south </p>
 +
  <p class="dig spell-out"> 10428 Key St west </p>
 +
</div>
 +
 
 +
<div class="box">
 +
  <h3>Wierd Spanish issue</h3>
 +
  <p lang="es">CP2000/CP2501/CP3219A</p>
 +
  <h3>Text with spell-out applied</h3>
 +
  <p class="spell-out"  lang="es">cp2000/cp2501/cp3219a</p>
 +
</div>
 +
 
 
</body>
 
</body>
 
</html>
 
</html>
 
[[Category:Techniques]]
 
[[Category:Techniques]]
 +
[[Category:CSS]]

Latest revision as of 01:25, 20 May 2017

  • This page demonstrates some aspects of the CSS 3 Speech functionality: digits and literal-punctuation.
  • Currently these are only supported by VoiceOver on iOS

Text with no CSS speech applied

it

Text with CSS spell-out applied

it

Text without literal punctuation applied

else { return true; }

Text with Literal punctuation applied

else { return true; }

Text without digits applied

123 John St. south

10428 Key St west

Text with Digits applied

123 John St. south

10428 Key St west

Text with Digits and spell-out applied

123 John St. south

10428 Key St west

Wierd Spanish issue

CP2000/CP2501/CP3219A

Text with spell-out applied

cp2000/cp2501/cp3219a