Difference between revisions of "Cues IDs"
(→Pass) |
|||
(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | = Group Members = | ||
+ | |||
+ | * Anh Tran | [https://github.com/avru GitHub] | irc: avru | avtran3@myseneca.ca | ||
+ | |||
+ | * Michael Stiver-Balla | [https://github.com/Stiver GitHub] | irc: mmstiver-balla| mmstiver-balla@learn.senecac.on.ca | ||
+ | |||
+ | = Work = | ||
+ | <h3>Objective</h3> | ||
+ | <blockquote style = "border-style: solid; border-width: 1px; width: 530px; padding: 20px; border-color: green;"> | ||
+ | _The current objective is to break down all the tests below into smaller tests, if possible.<br/> | ||
+ | _Each .test is a 'cat' of .meta and .vtt.<br/> | ||
+ | _There will be 3 files in total, with only .test in the good/bad directory.<br/> | ||
+ | _More info at http://zenit.senecac.on.ca/wiki/index.php/Test_files#Test_File_Naming_Scheme | ||
+ | </blockquote> | ||
+ | <h3>Tasks</h3> | ||
+ | {| style = "width: 200px; border-style: dashed; text-align: center; padding: 5px;" border = "1" | ||
+ | |- | ||
+ | ! nick !! test | ||
+ | |- | ||
+ | | avru || 1-8 | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | = About Cue IDs = | ||
+ | |||
+ | A [http://dev.w3.org/html5/webvtt/#webvtt-cue-identifier WebVTT Cue Identifier] is any sequence of one or more characters not containing the substring "-->" (U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS, U+003E GREATER-THAN SIGN), nor containing any U+000A LINE FEED (LF) characters or U+000D CARRIAGE RETURN (CR) characters. | ||
+ | |||
+ | [http://quuz.org/webvtt/ Online WebVTT Validator] | ||
+ | |||
=Proposed tests for Cues IDs= | =Proposed tests for Cues IDs= | ||
− | ==Pass== | + | == ✔ Test - Pass == |
− | ===No cue=== | + | ===1. No cue id=== |
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
Line 8: | Line 37: | ||
<v Roger Bingham>We are in New York City | <v Roger Bingham>We are in New York City | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | ===With numbered cue=== | + | ===2. With numbered cue=== |
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
Line 36: | Line 54: | ||
<v Roger Bingham>from the American Museum of Natural History | <v Roger Bingham>from the American Museum of Natural History | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | ===With mixed cue=== | + | ===3. With mixed cue=== |
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
− | |||
− | |||
− | |||
− | |||
!@$ | !@$ | ||
Line 68: | Line 75: | ||
<v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | ||
</pre> | </pre> | ||
− | ===With various arrows=== | + | ===4. With various arrows=== |
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
Line 92: | Line 99: | ||
<v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | ||
</pre> | </pre> | ||
− | ===With other languages=== | + | ===5. With other languages=== |
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
Line 108: | Line 115: | ||
<v Roger Bingham>from the American Museum of Natural History | <v Roger Bingham>from the American Museum of Natural History | ||
− | ~ | + | �Z゚,<゚<�γ�|:Z゚:テ~.9ミwム)ハ9ミ・�vネ・�Q゚,<゚(<ム・・ム゚,<゚<�・�゚:゚<�テ�カ� |
00:18.000 --> 00:20.000 | 00:18.000 --> 00:20.000 | ||
<v Roger Bingham>And with me is Neil deGrasse Tyson | <v Roger Bingham>And with me is Neil deGrasse Tyson | ||
Line 116: | Line 123: | ||
<v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | ||
</pre> | </pre> | ||
− | ===With multiple lines sub=== | + | |
+ | ===6. With multiple lines sub=== | ||
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
Line 139: | Line 147: | ||
00:20.000 --> 00:22.000 | 00:20.000 --> 00:22.000 | ||
<v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | ||
− | + | 00:20.000 - -> 00:22.000 | |
</pre> | </pre> | ||
− | ===No sub=== | + | |
+ | ===7. No sub=== | ||
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
Line 156: | Line 165: | ||
<v Roger Bingham>And with me is Neil deGrasse Tyson | <v Roger Bingham>And with me is Neil deGrasse Tyson | ||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | ===Others=== | + | ===8. Others=== |
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
Line 197: | Line 203: | ||
00:20.000 --> 00:22.000 | 00:20.000 --> 00:22.000 | ||
<v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium | ||
+ | |||
+ | |||
+ | |||
+ | 00:21.000 --> 00:22.000 | ||
+ | |||
+ | |||
+ | |||
</pre> | </pre> | ||
− | ==Fail== | + | == ✖ Test - Fail == |
− | ===With arrow=== | + | ===1. With arrow (-->)=== |
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
Line 208: | Line 221: | ||
<v Roger Bingham>We are in New York City | <v Roger Bingham>We are in New York City | ||
</pre> | </pre> | ||
− | === | + | ===2. No blank line after signature=== |
+ | |||
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
Line 216: | Line 230: | ||
</pre> | </pre> | ||
− | === | + | ===3. Blank line missing before cue=== |
<pre> | <pre> | ||
WEBVTT | WEBVTT | ||
− | 00: | + | 00:16.000 --> 00:18.000 |
− | <v Roger Bingham> | + | <v Roger Bingham>from the American Museum of Natural History |
+ | 1 | ||
+ | 00:18.000 --> 00:20.000 | ||
+ | <v Roger Bingham>And with me is Neil deGrasse Tyson | ||
+ | |||
+ | </pre> | ||
+ | ===4. Cue identifier cannot be standalone=== | ||
− | + | <pre> | |
− | + | WEBVTT | |
00:16.000 --> 00:18.000 | 00:16.000 --> 00:18.000 | ||
<v Roger Bingham>from the American Museum of Natural History | <v Roger Bingham>from the American Museum of Natural History | ||
+ | |||
1 | 1 | ||
+ | |||
00:18.000 --> 00:20.000 | 00:18.000 --> 00:20.000 | ||
<v Roger Bingham>And with me is Neil deGrasse Tyson | <v Roger Bingham>And with me is Neil deGrasse Tyson | ||
− | |||
− | |||
</pre> | </pre> | ||
+ | ===5. Can't contain LF or CR characters=== | ||
+ | |||
+ | Can't contain following characters: \r , \n , \r\n |
Latest revision as of 20:41, 7 October 2012
Group Members
- Anh Tran | GitHub | irc: avru | avtran3@myseneca.ca
- Michael Stiver-Balla | GitHub | irc: mmstiver-balla| mmstiver-balla@learn.senecac.on.ca
Work
Objective
_The current objective is to break down all the tests below into smaller tests, if possible.
_Each .test is a 'cat' of .meta and .vtt.
_There will be 3 files in total, with only .test in the good/bad directory.
_More info at http://zenit.senecac.on.ca/wiki/index.php/Test_files#Test_File_Naming_Scheme
Tasks
nick | test |
---|---|
avru | 1-8 |
About Cue IDs
A WebVTT Cue Identifier is any sequence of one or more characters not containing the substring "-->" (U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS, U+003E GREATER-THAN SIGN), nor containing any U+000A LINE FEED (LF) characters or U+000D CARRIAGE RETURN (CR) characters.
Proposed tests for Cues IDs
✔ Test - Pass
1. No cue id
WEBVTT 00:11.000 --> 00:13.000 vertical:rl <v Roger Bingham>We are in New York City
2. With numbered cue
WEBVTT 1 00:11.000 --> 00:13.000 vertical:rl <v Roger Bingham>We are in New York City 2 00:13.000 --> 00:16.000 <v Roger Bingham>We're actually at the Lucern Hotel, just down the street 3 00:16.000 --> 00:18.000 <v Roger Bingham>from the American Museum of Natural History
3. With mixed cue
WEBVTT !@$ 00:13.000 --> 00:16.000 <v Roger Bingham>We're actually at the Lucern Hotel, just down the street abcs45 00:16.000 --> 00:18.000 <v Roger Bingham>from the American Museum of Natural History 99 00:18.000 --> 00:20.000 <v Roger Bingham>And with me is Neil deGrasse Tyson 1 00:20.000 --> 00:22.000 <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium
4. With various arrows
WEBVTT -> 00:11.000 --> 00:13.000 vertical:rl <v Roger Bingham>We are in New York City -- > 00:13.000 --> 00:16.000 <v Roger Bingham>We're actually at the Lucern Hotel, just down the street <-- 00:16.000 --> 00:18.000 <v Roger Bingham>from the American Museum of Natural History abv - -> sda 00:18.000 --> 00:20.000 <v Roger Bingham>And with me is Neil deGrasse Tyson <<->> 00:20.000 --> 00:22.000 <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium
5. With other languages
WEBVTT المشروع الرئيس لمؤسسة موزيلا، ويتم تطويره بالتوازي مع ثندربرد عميل البريد. 00:11.000 --> 00:13.000 vertical:rl <v Roger Bingham>We are in New York City മോസില്ല ഫയർഫോക്സ് 00:13.000 --> 00:16.000 <v Roger Bingham>We're actually at the Lucern Hotel, just down the street また、Firefox の技術を元にモバイル版の開発も進められ Firefox for Mobile がリリースされている。 00:16.000 --> 00:18.000 <v Roger Bingham>from the American Museum of Natural History �Z゚,<゚<�γ�|:Z゚:テ~.9ミwム)ハ9ミ・�vネ・�Q゚,<゚(<ム・・ム゚,<゚<�・�?゚:゚<�テ�カ� 00:18.000 --> 00:20.000 <v Roger Bingham>And with me is Neil deGrasse Tyson x₀ x₁ x₂ x₃ x₄ 00:20.000 --> 00:22.000 <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium
6. With multiple lines sub
WEBVTT 00:11.000 --> 00:13.000 vertical:rl <v Roger Bingham>We are in New York City 234 00:13.000 --> 00:16.000 <v Roger Bingham>We're actually at the Lucern Hotel, just down the street 324234 345346 00:16.000 --> 00:18.000 <v Roger Bingham>from the American Museum of Natural History @@@#$ 00:18.000 --> 00:20.000 <v Roger Bingham>And with me is Neil deGrasse Tyson 3 00:20.000 --> 00:22.000 <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium 00:20.000 - -> 00:22.000
7. No sub
WEBVTT 00:11.000 --> 00:13.000 vertical:rl 4 00:13.000 --> 00:16.000 5 -- > 00:16.000 --> 00:18.000 00:18.000 --> 00:20.000 <v Roger Bingham>And with me is Neil deGrasse Tyson
8. Others
WEBVTT <j> 00:11.000 --> 00:13.000 vertical:rl <v Roger Bingham>We are in New York City 00:13.000 --> 00:16.000 <v Roger Bingham>We're actually at the Lucern Hotel, just down the street 00:16.000 --> 00:18.000 <v Roger Bingham>from the American Museum of Natural History 3-- >4<> 00:18.000 --> 00:20.000 <v Roger Bingham>And with me is Neil deGrasse Tyson Astrophysicist, Director of the Hayden Planetarium <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium 00:20.000 --> 00:22.000 <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium 00:21.000 --> 00:22.000
✖ Test - Fail
1. With arrow (-->)
WEBVTT --> 00:11.000 --> 00:13.000 vertical:rl <v Roger Bingham>We are in New York City
2. No blank line after signature
WEBVTT -> 00:11.000 --> 00:13.000 vertical:rl <v Roger Bingham>We are in New York City
3. Blank line missing before cue
WEBVTT 00:16.000 --> 00:18.000 <v Roger Bingham>from the American Museum of Natural History 1 00:18.000 --> 00:20.000 <v Roger Bingham>And with me is Neil deGrasse Tyson
4. Cue identifier cannot be standalone
WEBVTT 00:16.000 --> 00:18.000 <v Roger Bingham>from the American Museum of Natural History 1 00:18.000 --> 00:20.000 <v Roger Bingham>And with me is Neil deGrasse Tyson
5. Can't contain LF or CR characters
Can't contain following characters: \r , \n , \r\n