html5/webvtt Overview.html,1.41,1.42

Update of /sources/public/html5/webvtt
In directory hutz:/tmp/cvs-serv30131

Modified Files:
	Overview.html 
Log Message:
Try to position inevitably overlapping cues to as to maximise how much of the cue is in the title area, rather than just defaulting to the specified position. We could go even further and try to minimise overlapping with cues, if UAs want to implement that. Let me know. (whatwg r7448)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/webvtt/Overview.html,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- Overview.html	9 Oct 2012 22:55:16 -0000	1.41
+++ Overview.html	10 Oct 2012 20:14:43 -0000	1.42
@@ -122,7 +122,7 @@
 
   <header class=head id=head><!-- the following line added by request of Ian Jacobs --><p class=logo><a href=http://www.w3.org/><img alt=W3C height=48 src=http://www.w3.org/Icons/w3c_home width=72></a></p>
    <hgroup><h1 class="no-num no-toc">WebVTT</h1>
-    <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 9 October 2012</h2>
+    <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 10 October 2012</h2>
    </hgroup><dl><dt>Latest version:</dt>
     <dd><a href=http://dev.w3.org/html5/webvtt/>http://dev.w3.org/html5/webvtt/</a></dd>
     <dt>Participate:</dt>
@@ -2757,9 +2757,12 @@
 
          </li>
 
-         <li><p><i>Default</i>: Remember the position of all the boxes in
-         <var title="">boxes</var> as their <var title="">default
-         position</var>.</li>
+         <li><p>Remember the position of all the boxes in <var title="">boxes</var> as their <var title="">specified position</var>.</li>
+
+         <li><p>Let <var title="">best position</var> be null. It will hold a position for <var title="">boxes</var>, much like <var title="">specified position</var> in the previous
+         step.</p>
+
+         <li><p>Let <var title="">best position score</var> be null.</li>
 
          <li><p>Let <var title="">switched</var> be false.</li>
 
@@ -2777,6 +2780,24 @@
          any of the boxes in <var title="">output</var>, and all of the boxes in <var title="">output</var> are entirely within the <var title="">title area</var> box, then jump
          to the step labeled <i>done positioning</i> below.</li>
 
+         <li><p>Let <var title="">current position score</var> be the percentage of the area of the
+         bounding box of the boxes in <var title="">boxes</var> that <!--overlaps the boxes in <var
+         title="">output</var> (if any) or that--> is outside the <var title="">title area</var>
+         box.</li>
+
+         <li>
+
+          <p>If <var title="">best position</var> is null (i.e. this is the first run through this
+          loop, <var title="">switched</var> is still false, the boxes in <var title="">boxes</var>
+          are at their <var title="">specified position</var>, and <var title="">best position
+          score</var> is still null), or if <var title="">current position score</var> is a lower
+          percentage than that in <var title="">best position score</var>, then remember the
+          position of all the boxes in <var title="">boxes</var> as their <var title="">best
+          position</var>, and set <var title="">best position score</var> to <var title="">current
+          position score</var>.</p>
+
+         </li>
+
          <li>
 
           <p><strong>Horizontal</strong>: If <var title="">step</var> is negative and the top of the
@@ -2804,22 +2825,19 @@
 
          </li>
 
-         <li><p>Jump back to the step labeled <i>step
-         loop</i>.</li>
+         <li><p>Jump back to the step labeled <i>step loop</i>.</li>
 
-         <li><p><i>Switch direction</i>: Move all the boxes in <var title="">boxes</var> back to their <var title="">default
-         position</var> as determined in the step above labeled
-         <i>default</i>.</li>
+         <li><p><i>Switch direction</i>: If <var title="">switched</var> is true, then move all the
+         boxes in <var title="">boxes</var> back to their <var title="">best position</var>, and
+         jump to the step labeled <i>done positioning</i> below.</li>
 
-         <li><p>If <var title="">switched</var> is true, jump to the step
-         labeled <i>done positioning</i> below.</li>
+         <li><p>Otherwise, move all the boxes in <var title="">boxes</var> back to their <var title="">specified position</var> as determined in the earlier step.</li>
 
          <li><p>Negate <var title="">step</var>.</li>
 
          <li><p>Set <var title="">switched</var> to true.</li>
 
-         <li><p>Jump back to the step labeled <i>step
-         loop</i>.</li>
+         <li><p>Jump back to the step labeled <i>step loop</i>.</li>
 
         </ol></dd>
 

Received on Wednesday, 10 October 2012 20:14:47 UTC