Difference between revisions of "Cue Text, including replacements"
(→Concrete Tests) |
(→Concrete Tests) |
||
Line 98: | Line 98: | ||
<pre> | <pre> | ||
− | WEBVTT | + | WEBVTT |
+ | 00:11.000 --> 00:13.000 | ||
We are in New York City | We are in New York City | ||
</pre> | </pre> | ||
Line 107: | Line 108: | ||
<pre> | <pre> | ||
− | WEBVTT | + | WEBVTT |
+ | 00:11.000 --> 00:13.000 | ||
We <i>are</i> in New York City | We <i>are</i> in New York City | ||
</pre> | </pre> | ||
Line 114: | Line 116: | ||
<pre> | <pre> | ||
− | WEBVTT | + | WEBVTT |
+ | 00:11.000 --> 00:13.000 | ||
We <b>are</b> in New York City | We <b>are</b> in New York City | ||
</pre> | </pre> | ||
Line 121: | Line 124: | ||
<pre> | <pre> | ||
− | WEBVTT | + | WEBVTT |
+ | 00:11.000 --> 00:13.000 | ||
We <u>are</u> in New York City | We <u>are</u> in New York City | ||
</pre> | </pre> | ||
Line 131: | Line 135: | ||
<pre> | <pre> | ||
− | WEBVTT | + | WEBVTT |
+ | 00:11.000 --> 00:13.000 | ||
We <i are</i> in New York City | We <i are</i> in New York City | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
− | WEBVTT | + | WEBVTT |
+ | 00:11.000 --> 00:13.000 | ||
We <iare</i> in New York City | We <iare</i> in New York City | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
− | WEBVTT | + | WEBVTT |
+ | 00:11.000 --> 00:13.000 | ||
We <i>are<i> in New York City | We <i>are<i> in New York City | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
− | WEBVTT | + | WEBVTT |
+ | 00:11.000 --> 00:13.000 | ||
We <iare</i in New York City | We <iare</i in New York City | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
− | WEBVTT | + | WEBVTT |
+ | 00:11.000 --> 00:13.000 | ||
We <iare<i in New York City | We <iare<i in New York City | ||
</pre> | </pre> | ||
Line 161: | Line 170: | ||
<pre> | <pre> | ||
− | WEBVTT | + | WEBVTT |
+ | 00:11.000 --> 00:13.000 | ||
We <i>are</i in New York City | We <i>are</i in New York City | ||
</pre> | </pre> |
Revision as of 12:01, 24 September 2012
Contents
Group 5 Members
Name | IRC Nick | Blog | Github Account | Wiki Page | |
Rick Eyre | reyre | http://epsilon812.wordpress.com | RickEyre | User:Errichard | @epsilon812 |
Shayan Zafar Ahmad | szahmad | Shayan's Blog | Shayan's GitHub | User:Szahmad | ShayanZafar |
Michael Afidchao | mdafidchao | http://kypertrast.net/seneca | mafidchao | User:Mdafidchao | None |
Jordan Raffoul | jbraffoul | http://jbraffoul.wordpress.com | jbraffoul | User:Jbraffoul | None |
Cue Text Scope
WebVTT chapter title text is syntactically a subset of WebVTT cue text, and WebVTT cue text is syntactically a subset of WebVTT metadata text. Conformance checkers, when validating WebVTT files, may offer to restrict all cues to only having WebVTT chapter title text or WebVTT cue text as their cue payload; WebVTT metadata text cues are only useful for scripted applications (using the metadata text track kind).
A WebVTT file whose cues all have a cue payload that is WebVTT chapter title text is said to be a WebVTT file using chapter title text.
A WebVTT file whose cues all have a cue payload that is WebVTT cue text is said to be a WebVTT file using cue text. By definition, any file that is a WebVTT file using chapter title text is also a WebVTT file using cue text.
Specifications: http://dev.w3.org/html5/webvtt/#webvtt-metadata-text
Notes/Issues/Updates
Test Scenarios Identified
Base/Metadata tests
- No cue text
- No cue text with line feed character(s)
- No cue text with carriage return character(s)
- No cue text with a combination of line feed and carriage return character(s)
- Simple one-line of cue text - no other components
- multiple-line text
- line terminator in between
Chapter Title Text
- Cue text consisting of only an ampersand escape character
- Cue text consisting of only a less than escape character
- Cue text consisting of only a greater than escape character
- Cue text consisting of only a left-to-right escape character
- Cue text consisting of only a right-to-left escape character
- Cue text consisting of only an nbsp escape character
- Cue text different combinations (vary tests for different components: multiple ampersands, all types of components, etc.)
- 2+ components that are separated from each other with line terminators
- Cue text including escape character(s)
- Line terminators
Cue Text
Note that these may overlap with group 6 - text tags, we'll probably only need to cover the first 2.
We'll cover these for sure:
- Cue text that uses a span tag
- Cue text that uses 2+ span tags
- Separated with line terminator
These should automatically be covered by the text tags testing as they create tests for each tag:
- Cue text that uses a class span tag
- Cue text that uses an italics span tag
- Cue text that uses a bold span tag
- Cue text that uses an underline span tag
- Cue text that uses a ruby span tag
- Cue text that uses a voice span tag
- Cue text that uses a timestamp tag
Concrete Tests
Good
Cue Text Span
WEBVTT 00:11.000 --> 00:13.000 We are in New York City
Cue Text Consisting of any valid Cue Text Component in <[cue text component]>[Text Payload]</[cue text component]> notation
Italic Cue Text
WEBVTT 00:11.000 --> 00:13.000 We <i>are</i> in New York City
Bold Cue Text
WEBVTT 00:11.000 --> 00:13.000 We <b>are</b> in New York City
Underline Cue Text
WEBVTT 00:11.000 --> 00:13.000 We <u>are</u> in New York City
Bad
Cue Text is Correctly Formatted using the <[valid cue text component]>[Text Payload]<[valid cue text component]/> notation
Tag used in example
WEBVTT 00:11.000 --> 00:13.000 We <i are</i> in New York City
WEBVTT 00:11.000 --> 00:13.000 We <iare</i> in New York City
WEBVTT 00:11.000 --> 00:13.000 We <i>are<i> in New York City
WEBVTT 00:11.000 --> 00:13.000 We <iare</i in New York City
WEBVTT 00:11.000 --> 00:13.000 We <iare<i in New York City
WEBVTT 00:11.000 --> 00:13.000 We <i>are<i in New York City
WEBVTT 00:11.000 --> 00:13.000 We <i>are</i in New York City