Skip to content

Commit 3baba27

Browse files
committed
[css-speech-1][editorial] Optimized syntax definitions
1 parent 344b9be commit 3baba27

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

css-speech-1/Overview.bs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ The 'voice-volume' property</h3>
201201

202202
<pre class=propdef>
203203
Name: voice-volume
204-
Value: silent | [[x-soft | soft | medium | loud | x-loud] || <<decibel>>]
204+
Value: silent | [ [ x-soft | soft | medium | loud | x-loud ] || <<decibel>> ]
205205
Initial: medium
206206
Applies to: all elements
207207
Inherited: yes
@@ -576,7 +576,7 @@ The 'pause-before' and 'pause-after' properties</h3>
576576

577577
<pre class=propdef>
578578
Name: pause-before, pause-after
579-
Value: &lt;time [0s,∞]&gt; | none | x-weak | weak | medium | strong | x-strong
579+
Value: <<time [0s,∞]>> | none | x-weak | weak | medium | strong | x-strong
580580
Initial: none
581581
Applies to: all elements
582582
Inherited: no
@@ -939,7 +939,7 @@ The 'voice-family' property</h3>
939939

940940
<pre class=propdef>
941941
Name: voice-family
942-
Value: [[&lt;family-name&gt; | &lt;generic-voice&gt;],]* [&lt;family-name&gt; | &lt;generic-voice&gt;] | preserve
942+
Value: [ <<voice-family-name>> | <<generic-voice>> ]# | preserve
943943
Initial: implementation-dependent
944944
Applies to: all elements
945945
Inherited: yes
@@ -955,7 +955,7 @@ The 'voice-family' property</h3>
955955
by specifying match criteria.
956956
See the <a href="#voice-selection">voice selection</a> section on this topic.
957957

958-
<dfn><<generic-voice>></dfn> = [<<age>>? <<gender>> <<integer>>?]
958+
<dfn><<generic-voice>></dfn> = <<age>>? <<gender>> <<integer>>?
959959

960960
Note: Although the functionality provided by this property is similar to
961961
the <a href="https://www.w3.org/TR/speech-synthesis11/#edef_voice"><code>voice</code> element</a>
@@ -964,7 +964,7 @@ The 'voice-family' property</h3>
964964
This technical limitation may be alleviated in a future revision of the Speech module.
965965

966966
<dl dfn-type=value dfn-for=voice-family>
967-
<dt><dfn><<family-name>></dfn>
967+
<dt><dfn type><<voice-family-name>></dfn>
968968
<dd>
969969
Values are specific voice instances (e.g., Mike, comedian, mary, carlos2, "valley girl").
970970
Like 'font-family' names, voice names must either be given quoted as [=strings=],
@@ -1123,7 +1123,7 @@ The 'voice-rate' property</h3>
11231123

11241124
<pre class=propdef>
11251125
Name: voice-rate
1126-
Value: [normal | x-slow | slow | medium | fast | x-fast] || <<percentage [0,∞]>>
1126+
Value: [ normal | x-slow | slow | medium | fast | x-fast ] || <<percentage [0,∞]>>
11271127
Initial: normal
11281128
Applies to: all elements
11291129
Inherited: yes
@@ -1210,7 +1210,8 @@ The 'voice-pitch' property</h3>
12101210

12111211
<pre class=propdef>
12121212
Name: voice-pitch
1213-
Value: <<frequency [0Hz,∞]>> && absolute | [[x-low | low | medium | high | x-high] || [<<frequency>> | <<semitones>> | <<percentage>>]]
1213+
Value: <<frequency [0Hz,∞]>> && absolute | [ [ x-low | low | medium | high | x-high ] ||
1214+
[ <<frequency [0Hz,∞]>> | <<semitones>> | <<percentage>> ] ]
12141215
Initial: medium
12151216
Applies to: all elements
12161217
Inherited: yes
@@ -1237,7 +1238,7 @@ The 'voice-pitch' property</h3>
12371238
are not mutually-exclusive, due to how values are inherited and combined for selected elements.
12381239

12391240
<dl dfn-type=value dfn-for=voice-pitch>
1240-
<dt><dfn><<frequency>></dfn>
1241+
<dt><dfn><<frequency [0Hz,∞]>></dfn>
12411242
<dd>
12421243
A value in frequency units (Hertz or kiloHertz, e.g. ''100Hz'', ''+2kHz'').
12431244
Values are restricted to positive numbers when the ''voice-pitch/absolute'' keyword is specified.
@@ -1323,7 +1324,8 @@ The 'voice-range' property</h3>
13231324

13241325
<pre class=propdef>
13251326
Name: voice-range
1326-
Value: <<frequency [0Hz,∞]>> && absolute | [[x-low | low | medium | high | x-high] || [<<frequency>> | <<semitones>> | <<percentage>>]]
1327+
Value: <<frequency [0Hz,∞]>> && absolute | [ [ x-low | low | medium | high | x-high ] ||
1328+
[ <<frequency [0Hz,∞]>> | <<semitones>> | <<percentage>> ] ]
13271329
Initial: medium
13281330
Applies to: all elements
13291331
Inherited: yes
@@ -1350,7 +1352,7 @@ The 'voice-range' property</h3>
13501352
are not mutually-exclusive, due to how values are inherited and combined for selected elements.
13511353

13521354
<dl dfn-type=value dfn-for=voice-range>
1353-
<dt><<frequency>>
1355+
<dt><dfn><<frequency [0Hz,∞]>></dfn>
13541356
<dd>
13551357
A value in frequency units (Hertz or kiloHertz, e.g. ''100Hz'', ''+2kHz'').
13561358
Values are restricted to positive numbers when the ''voice-range/absolute'' keyword is specified.
@@ -1551,7 +1553,7 @@ The 'voice-duration' property</h3>
15511553

15521554
<pre class=propdef>
15531555
Name: voice-duration
1554-
Value: auto | &lt;time [0s,∞]&gt;
1556+
Value: auto | <<time [0s,∞]>>
15551557
Initial: auto
15561558
Applies to: all elements
15571559
Inherited: no

0 commit comments

Comments
 (0)