Skip to content

Commit

Permalink
Fix some pubrules errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Dec 8, 2015
1 parent a318f01 commit 49d2390
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
8 changes: 5 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<pre class='metadata'>
Title: WebVTT: The Web Video Text Tracks Format
H1: WebVTT: The Web Video Text Tracks Format
Shortname: webvtt1
Shortname: webvtt
Status: CG-DRAFT
Group: texttracks
ED: https://w3c.github.io/webvtt/
Expand All @@ -21,6 +21,8 @@ Boilerplate: omit conformance, omit feedback-header
Ignored Terms: unicode-bidi, color, text-combine-upright, text-wrap
Ignored Vars: seconds-frac, selector, fragment, seen cue
</pre>

<pre class='anchors'>
Expand Down Expand Up @@ -4830,7 +4832,7 @@ interface VTTCue : TextTrackCue {

<dl class="note">

<dt>|cue| = new <a constructor lt="VTTCue()">VTTCue</a>( |startTime|, |endTime|, |text| )</dt>
<dt>|cue| = new <a constructor lt="VTTCue(startTime, endTime, text)">VTTCue</a>( |startTime|, |endTime|, |text| )</dt>
<dd>
<p>Returns a new {{VTTCue}} object, for use with the {{TextTrack/addCue()}} method.</p>
<p>The |startTime| argument sets the <a>text track cue start time</a>.</p>
Expand Down Expand Up @@ -4948,7 +4950,7 @@ interface VTTCue : TextTrackCue {

</dl>

<p>The <dfn constructor for=VTTCue lt="VTTCue()">VTTCue(|startTime|, |endTime|, |text|)</dfn>
<p>The <dfn constructor for=VTTCue lt="VTTCue(startTime, endTime, text)">VTTCue(|startTime|, |endTime|, |text|)</dfn>
constructor, when invoked, must run the following steps:</p>

<ol>
Expand Down
9 changes: 4 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="http://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/Icons/w3c_home" width="72"> </a> </p>
<h1 class="p-name no-ref" id="title">WebVTT: The Web Video Text Tracks Format</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Draft Community Group Report, <time class="dt-updated" datetime="2015-12-04">4 December 2015</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Draft Community Group Report, <time class="dt-updated" datetime="2015-12-08">8 December 2015</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down Expand Up @@ -4407,7 +4407,7 @@ <h3 class="heading settled" data-algorithm="The VTTCue interface" data-level="7.
enum <dfn class="idl-code" data-dfn-type="enum" data-export="" id="enumdef-linealignsetting">LineAlignSetting<a class="self-link" href="#enumdef-linealignsetting"></a></dfn> { "start", "center", "end" };
enum <dfn class="idl-code" data-dfn-type="enum" data-export="" id="enumdef-positionalignsetting">PositionAlignSetting<a class="self-link" href="#enumdef-positionalignsetting"></a></dfn> { "start", "center", "end", "auto" };
enum <dfn class="idl-code" data-dfn-type="enum" data-export="" id="enumdef-alignsetting">AlignSetting<a class="self-link" href="#enumdef-alignsetting"></a></dfn> { "start", "center", "end", "left", "right" };
[<dfn class="idl-code" data-dfn-for="VTTCue" data-dfn-type="constructor" data-export="" data-lt="VTTCue(startTime, endTime, text)" id="dom-vttcue-vttcue">Constructor<a class="self-link" href="#dom-vttcue-vttcue"></a></dfn>(double <dfn class="idl-code" data-dfn-for="VTTCue/VTTCue(startTime, endTime, text)" data-dfn-type="argument" data-export="" id="dom-vttcue-vttcue-starttime-endtime-text-starttime">startTime<a class="self-link" href="#dom-vttcue-vttcue-starttime-endtime-text-starttime"></a></dfn>, double <dfn class="idl-code" data-dfn-for="VTTCue/VTTCue(startTime, endTime, text)" data-dfn-type="argument" data-export="" id="dom-vttcue-vttcue-starttime-endtime-text-endtime">endTime<a class="self-link" href="#dom-vttcue-vttcue-starttime-endtime-text-endtime"></a></dfn>, DOMString <dfn class="idl-code" data-dfn-for="VTTCue/VTTCue(startTime, endTime, text)" data-dfn-type="argument" data-export="" id="dom-vttcue-vttcue-starttime-endtime-text-text">text<a class="self-link" href="#dom-vttcue-vttcue-starttime-endtime-text-text"></a></dfn>)]
[<a class="idl-code" data-link-type="constructor" href="#dom-vttcue-vttcue">Constructor</a>(double <dfn class="idl-code" data-dfn-for="VTTCue/VTTCue(startTime, endTime, text)" data-dfn-type="argument" data-export="" id="dom-vttcue-vttcue-starttime-endtime-text-starttime">startTime<a class="self-link" href="#dom-vttcue-vttcue-starttime-endtime-text-starttime"></a></dfn>, double <dfn class="idl-code" data-dfn-for="VTTCue/VTTCue(startTime, endTime, text)" data-dfn-type="argument" data-export="" id="dom-vttcue-vttcue-starttime-endtime-text-endtime">endTime<a class="self-link" href="#dom-vttcue-vttcue-starttime-endtime-text-endtime"></a></dfn>, DOMString <dfn class="idl-code" data-dfn-for="VTTCue/VTTCue(startTime, endTime, text)" data-dfn-type="argument" data-export="" id="dom-vttcue-vttcue-starttime-endtime-text-text">text<a class="self-link" href="#dom-vttcue-vttcue-starttime-endtime-text-text"></a></dfn>)]
interface <dfn class="idl-code" data-dfn-type="interface" data-export="" id="vttcue">VTTCue<a class="self-link" href="#vttcue"></a></dfn> : <a data-link-type="idl-name" href="https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackcue">TextTrackCue</a> {
attribute <a data-link-type="idl-name" href="#vttregion">VTTRegion</a>? <a class="idl-code" data-link-type="attribute" data-type="VTTRegion? " href="#dom-vttcue-region">region</a>;
attribute <a data-link-type="idl-name" href="#enumdef-directionsetting">DirectionSetting</a> <a class="idl-code" data-link-type="attribute" data-type="DirectionSetting " href="#dom-vttcue-vertical">vertical</a>;
Expand Down Expand Up @@ -4529,7 +4529,7 @@ <h3 class="heading settled" data-algorithm="The VTTCue interface" data-level="7.
<p>Returns the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/embedded-content.html#text-track-cue-text">text track cue text</a> as a <code class="idl"><a data-link-type="idl" href="https://dom.spec.whatwg.org/#documentfragment">DocumentFragment</a></code> of <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/infrastructure.html#html-elements">HTML
elements</a> and other DOM nodes.</p>
</dl>
<p>The <dfn class="idl-code" data-dfn-for="VTTCue" data-dfn-type="constructor" data-export="" data-lt="VTTCue()" id="dom-vttcue-vttcue">VTTCue(<var>startTime</var>, <var>endTime</var>, <var>text</var>)<a class="self-link" href="#dom-vttcue-vttcue"></a></dfn> constructor, when invoked, must run the following steps:</p>
<p>The <dfn class="idl-code" data-dfn-for="VTTCue" data-dfn-type="constructor" data-export="" id="dom-vttcue-vttcue">VTTCue(<var>startTime</var>, <var>endTime</var>, <var>text</var>)<a class="self-link" href="#dom-vttcue-vttcue"></a></dfn> constructor, when invoked, must run the following steps:</p>
<ol>
<li>
<p>Create a new <a data-link-type="dfn" href="#webvtt-cue">WebVTT cue</a>. Let <var>cue</var> be that <a data-link-type="dfn" href="#webvtt-cue">WebVTT cue</a>.</p>
Expand Down Expand Up @@ -4968,7 +4968,6 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
<li><a href="#dom-vttcue-vertical">vertical</a><span>, in §7.1</span>
<li><a href="#dom-vttregion-viewportanchorx">viewportAnchorX</a><span>, in §7.2</span>
<li><a href="#dom-vttregion-viewportanchory">viewportAnchorY</a><span>, in §7.2</span>
<li><a href="#dom-vttcue-vttcue">VTTCue()</a><span>, in §7.1</span>
<li><a href="#vttcue">VTTCue</a><span>, in §7.1</span>
<li><a href="#dom-vttcue-vttcue">VTTCue(startTime, endTime, text)</a><span>, in §7.1</span>
<li><a href="#dom-vttregion-vttregion">VTTRegion()</a><span>, in §7.2</span>
Expand Down Expand Up @@ -5359,7 +5358,7 @@ <h2 class="no-num heading settled" id="idl-index"><span class="content">IDL Inde
enum <a href="#enumdef-linealignsetting">LineAlignSetting</a> { "start", "center", "end" };
enum <a href="#enumdef-positionalignsetting">PositionAlignSetting</a> { "start", "center", "end", "auto" };
enum <a href="#enumdef-alignsetting">AlignSetting</a> { "start", "center", "end", "left", "right" };
[<a href="#dom-vttcue-vttcue">Constructor</a>(double <a href="#dom-vttcue-vttcue-starttime-endtime-text-starttime">startTime</a>, double <a href="#dom-vttcue-vttcue-starttime-endtime-text-endtime">endTime</a>, DOMString <a href="#dom-vttcue-vttcue-starttime-endtime-text-text">text</a>)]
[<a class="idl-code" data-link-type="constructor" href="#dom-vttcue-vttcue">Constructor</a>(double <a href="#dom-vttcue-vttcue-starttime-endtime-text-starttime">startTime</a>, double <a href="#dom-vttcue-vttcue-starttime-endtime-text-endtime">endTime</a>, DOMString <a href="#dom-vttcue-vttcue-starttime-endtime-text-text">text</a>)]
interface <a href="#vttcue">VTTCue</a> : <a data-link-type="idl-name" href="https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackcue">TextTrackCue</a> {
attribute <a data-link-type="idl-name" href="#vttregion">VTTRegion</a>? <a class="idl-code" data-link-type="attribute" data-type="VTTRegion? " href="#dom-vttcue-region">region</a>;
attribute <a data-link-type="idl-name" href="#enumdef-directionsetting">DirectionSetting</a> <a class="idl-code" data-link-type="attribute" data-type="DirectionSetting " href="#dom-vttcue-vertical">vertical</a>;
Expand Down
13 changes: 10 additions & 3 deletions snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

STATUS=$1
NEW_DATE=$2
PREV_URL=$(echo $3 | sed -e 's#/#\\/#g')

USAGE="\n\nUsage: $0 <status> <date>\n\
For example: $0 WD 2015-10-31"
USAGE="\n\nUsage: $0 <status> <date> <prevurl>\n\
For example: $0 WD 2015-10-31 http://www.w3.org/TR/2014/WD-webvtt1-20141113/"

case $(uname) in
*Darwin*)
Expand Down Expand Up @@ -49,7 +50,13 @@ check "Replace Status metadata"
replace "1,/^$/s/^$/Date: $NEW_DATE/" index.temp.bs
check "Add Date metadata"

bikeshed spec index.temp.bs archives/$NEW_DATE/index.html
replace "1,/^$/s/^$/Previous Version: $PREV_URL/" index.temp.bs
check "Add Previous Version metadata"

replace "1,/^$/s/^$/TR: http:\/\/www.w3.org\/TR\/webvtt-1\//" index.temp.bs
check "Add TR metadata"

bikeshed spec index.temp.bs archives/$NEW_DATE/Overview.html
check "Generate with bikeshed"

rm index.temp.bs
Expand Down

0 comments on commit 49d2390

Please sign in to comment.