[html5] r7424 - [giow] (1) Add left and right caption alignment options. Fixing https://www.w3.o [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Sep 28 16:13:39 PDT 2012


Author: ianh
Date: 2012-09-28 16:13:37 -0700 (Fri, 28 Sep 2012)
New Revision: 7424

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Add left and right caption alignment options.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17973
Affected topics: Video Text Tracks

Modified: complete.html
===================================================================
--- complete.html	2012-09-28 22:37:23 UTC (rev 7423)
+++ complete.html	2012-09-28 23:13:37 UTC (rev 7424)
@@ -34057,14 +34057,27 @@
 
    <dt><dfn id=text-track-cue-alignment title="text track cue alignment">An alignment</dfn>
    <dd>
-    <p>An alignment for the text of each line of the cue, either <dfn id=text-track-cue-start-alignment title="text track cue start alignment">start alignment</dfn> (the
-    text is aligned towards its start side), <dfn id=text-track-cue-middle-alignment title="text track
-    cue middle alignment">middle alignment</dfn> (the text is aligned
-    centered between its start and end sides), <dfn id=text-track-cue-end-alignment title="text track
-    cue end alignment">end alignment</dfn> (the text is aligned
-    towards its end side). Which sides are the start and end sides
-    depends on the Unicode bidirectional algorithm and the <a href=#text-track-cue-writing-direction title="text track cue writing direction">writing
-    direction</a>. <a href=#refsBIDI>[BIDI]</a></p>
+
+    <p>An alignment for the text of each line of the cue, one of:</p>
+
+    <dl><dt><dfn id=text-track-cue-start-alignment title="text track cue start alignment">Start alignment</dfn></dt>
+     <dd>The text is aligned towards its start side.</dd>
+
+     <dt><dfn id=text-track-cue-middle-alignment title="text track cue middle alignment">Middle alignment</dfn></dt>
+     <dd>The text is aligned centered between its start and end sides.</dd>
+
+     <dt><dfn id=text-track-cue-end-alignment title="text track cue end alignment">End alignment</dfn></dt>
+     <dd>The text is aligned towards its end side.</dd>
+
+     <dt><dfn id=text-track-cue-left-alignment title="text track cue left alignment">Left alignment</dfn></dt>
+     <dd>The text is aligned to the left.</dd>
+
+     <dt>or <dfn id=text-track-cue-right-alignment title="text track cue right alignment">Right alignment</dfn></dt>
+     <dd>The text is aligned to the right.</dd>
+
+    </dl><p>Which sides are the start and end sides depends on the Unicode bidirectional algorithm and
+    the <a href=#text-track-cue-writing-direction title="text track cue writing direction">writing direction</a>. <a href=#refsBIDI>[BIDI]</a></p>
+
    </dd>
 
    <dt><dfn id=text-track-cue-text title="text track cue text">The text of the cue</dfn>
@@ -35274,6 +35287,10 @@
      <dd><p>The string "<code title="">middle</code>".</dd>
      <dt>If it is <a href=#text-track-cue-end-alignment title="text track cue end alignment">end alignment</a></dt>
      <dd><p>The string "<code title="">end</code>".</dd>
+     <dt>If it is <a href=#text-track-cue-left-alignment title="text track cue left alignment">left alignment</a></dt>
+     <dd><p>The string "<code title="">left</code>".</dd>
+     <dt>If it is <a href=#text-track-cue-right-alignment title="text track cue right alignment">right alignment</a></dt>
+     <dd><p>The string "<code title="">right</code>".</dd>
     </dl><p>Can be set.</p>
    </dd>
 
@@ -35441,6 +35458,8 @@
    <tbody><tr><td><a href=#text-track-cue-start-alignment title="text track cue start alignment">Start alignment</a> <td> "<code title="">start</code>"
     <tr><td><a href=#text-track-cue-middle-alignment title="text track cue middle alignment">Middle alignment</a> <td> "<code title="">middle</code>"
     <tr><td><a href=#text-track-cue-end-alignment title="text track cue end alignment">End alignment</a> <td> "<code title="">end</code>"
+    <tr><td><a href=#text-track-cue-left-alignment title="text track cue left alignment">Left alignment</a> <td> "<code title="">left</code>"
+    <tr><td><a href=#text-track-cue-right-alignment title="text track cue right alignment">Right alignment</a> <td> "<code title="">right</code>"
   </table><p>On setting, the <a href=#text-track-cue-alignment>text track cue alignment</a> must be set
   to the value given in the first cell of the row in the table above
   whose second cell is a <a href=#case-sensitive>case-sensitive</a> match for the new

Modified: index
===================================================================
--- index	2012-09-28 22:37:23 UTC (rev 7423)
+++ index	2012-09-28 23:13:37 UTC (rev 7424)
@@ -34057,14 +34057,27 @@
 
    <dt><dfn id=text-track-cue-alignment title="text track cue alignment">An alignment</dfn>
    <dd>
-    <p>An alignment for the text of each line of the cue, either <dfn id=text-track-cue-start-alignment title="text track cue start alignment">start alignment</dfn> (the
-    text is aligned towards its start side), <dfn id=text-track-cue-middle-alignment title="text track
-    cue middle alignment">middle alignment</dfn> (the text is aligned
-    centered between its start and end sides), <dfn id=text-track-cue-end-alignment title="text track
-    cue end alignment">end alignment</dfn> (the text is aligned
-    towards its end side). Which sides are the start and end sides
-    depends on the Unicode bidirectional algorithm and the <a href=#text-track-cue-writing-direction title="text track cue writing direction">writing
-    direction</a>. <a href=#refsBIDI>[BIDI]</a></p>
+
+    <p>An alignment for the text of each line of the cue, one of:</p>
+
+    <dl><dt><dfn id=text-track-cue-start-alignment title="text track cue start alignment">Start alignment</dfn></dt>
+     <dd>The text is aligned towards its start side.</dd>
+
+     <dt><dfn id=text-track-cue-middle-alignment title="text track cue middle alignment">Middle alignment</dfn></dt>
+     <dd>The text is aligned centered between its start and end sides.</dd>
+
+     <dt><dfn id=text-track-cue-end-alignment title="text track cue end alignment">End alignment</dfn></dt>
+     <dd>The text is aligned towards its end side.</dd>
+
+     <dt><dfn id=text-track-cue-left-alignment title="text track cue left alignment">Left alignment</dfn></dt>
+     <dd>The text is aligned to the left.</dd>
+
+     <dt>or <dfn id=text-track-cue-right-alignment title="text track cue right alignment">Right alignment</dfn></dt>
+     <dd>The text is aligned to the right.</dd>
+
+    </dl><p>Which sides are the start and end sides depends on the Unicode bidirectional algorithm and
+    the <a href=#text-track-cue-writing-direction title="text track cue writing direction">writing direction</a>. <a href=#refsBIDI>[BIDI]</a></p>
+
    </dd>
 
    <dt><dfn id=text-track-cue-text title="text track cue text">The text of the cue</dfn>
@@ -35274,6 +35287,10 @@
      <dd><p>The string "<code title="">middle</code>".</dd>
      <dt>If it is <a href=#text-track-cue-end-alignment title="text track cue end alignment">end alignment</a></dt>
      <dd><p>The string "<code title="">end</code>".</dd>
+     <dt>If it is <a href=#text-track-cue-left-alignment title="text track cue left alignment">left alignment</a></dt>
+     <dd><p>The string "<code title="">left</code>".</dd>
+     <dt>If it is <a href=#text-track-cue-right-alignment title="text track cue right alignment">right alignment</a></dt>
+     <dd><p>The string "<code title="">right</code>".</dd>
     </dl><p>Can be set.</p>
    </dd>
 
@@ -35441,6 +35458,8 @@
    <tbody><tr><td><a href=#text-track-cue-start-alignment title="text track cue start alignment">Start alignment</a> <td> "<code title="">start</code>"
     <tr><td><a href=#text-track-cue-middle-alignment title="text track cue middle alignment">Middle alignment</a> <td> "<code title="">middle</code>"
     <tr><td><a href=#text-track-cue-end-alignment title="text track cue end alignment">End alignment</a> <td> "<code title="">end</code>"
+    <tr><td><a href=#text-track-cue-left-alignment title="text track cue left alignment">Left alignment</a> <td> "<code title="">left</code>"
+    <tr><td><a href=#text-track-cue-right-alignment title="text track cue right alignment">Right alignment</a> <td> "<code title="">right</code>"
   </table><p>On setting, the <a href=#text-track-cue-alignment>text track cue alignment</a> must be set
   to the value given in the first cell of the row in the table above
   whose second cell is a <a href=#case-sensitive>case-sensitive</a> match for the new

Modified: source
===================================================================
--- source	2012-09-28 22:37:23 UTC (rev 7423)
+++ source	2012-09-28 23:13:37 UTC (rev 7424)
@@ -37310,16 +37310,32 @@
 
    <dt><dfn title="text track cue alignment">An alignment</dfn>
    <dd>
-    <p>An alignment for the text of each line of the cue, either <dfn
-    title="text track cue start alignment">start alignment</dfn> (the
-    text is aligned towards its start side), <dfn title="text track
-    cue middle alignment">middle alignment</dfn> (the text is aligned
-    centered between its start and end sides), <dfn title="text track
-    cue end alignment">end alignment</dfn> (the text is aligned
-    towards its end side). Which sides are the start and end sides
-    depends on the Unicode bidirectional algorithm and the <span
-    title="text track cue writing direction">writing
-    direction</span>. <a href="#refsBIDI">[BIDI]</a></p>
+
+    <p>An alignment for the text of each line of the cue, one of:</p>
+
+    <dl>
+
+     <dt><dfn title="text track cue start alignment">Start alignment</dfn></dt>
+     <dd>The text is aligned towards its start side.</dd>
+
+     <dt><dfn title="text track cue middle alignment">Middle alignment</dfn></dt>
+     <dd>The text is aligned centered between its start and end sides.</dd>
+
+     <dt><dfn title="text track cue end alignment">End alignment</dfn></dt>
+     <dd>The text is aligned towards its end side.</dd>
+
+     <dt><dfn title="text track cue left alignment">Left alignment</dfn></dt>
+     <dd>The text is aligned to the left.</dd>
+
+     <dt>or <dfn title="text track cue right alignment">Right alignment</dfn></dt>
+     <dd>The text is aligned to the right.</dd>
+
+    </dl>
+
+    <p>Which sides are the start and end sides depends on the Unicode bidirectional algorithm and
+    the <span title="text track cue writing direction">writing direction</span>. <a
+    href="#refsBIDI">[BIDI]</a></p>
+
    </dd>
 
    <dt><dfn title="text track cue text">The text of the cue</dfn>
@@ -38710,6 +38726,10 @@
      <dd><p>The string "<code title="">middle</code>".</p></dd>
      <dt>If it is <span title="text track cue end alignment">end alignment</span></dt>
      <dd><p>The string "<code title="">end</code>".</p></dd>
+     <dt>If it is <span title="text track cue left alignment">left alignment</span></dt>
+     <dd><p>The string "<code title="">left</code>".</p></dd>
+     <dt>If it is <span title="text track cue right alignment">right alignment</span></dt>
+     <dd><p>The string "<code title="">right</code>".</p></dd>
     </dl>
     <p>Can be set.</p>
    </dd>
@@ -38903,6 +38923,8 @@
     <tr> <td><span title="text track cue start alignment">Start alignment</span> <td> "<code title="">start</code>"
     <tr> <td><span title="text track cue middle alignment">Middle alignment</span> <td> "<code title="">middle</code>"
     <tr> <td><span title="text track cue end alignment">End alignment</span> <td> "<code title="">end</code>"
+    <tr> <td><span title="text track cue left alignment">Left alignment</span> <td> "<code title="">left</code>"
+    <tr> <td><span title="text track cue right alignment">Right alignment</span> <td> "<code title="">right</code>"
   </table>
 
   <p>On setting, the <span>text track cue alignment</span> must be set
@@ -39228,6 +39250,8 @@
    <li><dfn>Text track cue start alignment</dfn>
    <li><dfn>Text track cue middle alignment</dfn>
    <li><dfn>Text track cue end alignment</dfn>
+   <li><dfn>Text track cue left alignment</dfn>
+   <li><dfn>Text track cue right alignment</dfn>
    <li><dfn>Text track cue line position</dfn>
    <li><dfn>Text track cue automatic line position</dfn>
    <li><dfn>Text track cue computed line position</dfn>
@@ -40458,6 +40482,18 @@
          <span>text track cue alignment</span> be <span title="text
          track cue end alignment">end alignment</span>.</p></li>
 
+         <li><p>If <var title="">value</var> is a
+         <span>case-sensitive</span> match for the string "<code
+         title="">left</code>", then let <var title="">cue</var>'s
+         <span>text track cue alignment</span> be <span title="text
+         track cue left alignment">left alignment</span>.</p></li>
+
+         <li><p>If <var title="">value</var> is a
+         <span>case-sensitive</span> match for the string "<code
+         title="">right</code>", then let <var title="">cue</var>'s
+         <span>text track cue alignment</span> be <span title="text
+         track cue right alignment">right alignment</span>.</p></li>
+
         </ol>
 
        </dd>
@@ -114024,6 +114060,8 @@
        <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
               the <span>text track cue alignment</span> is <span title="text track cue end alignment">end</span>,
               and <var title="">direction</var> is 'rtl'</dt>
+       <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
+          and the <span>text track cue alignment</span> is <span title="text track cue left alignment">left</span></dt>
        <dt>If the <span>text track cue writing direction</span> is <span title="text track cue vertical growing left writing direction">vertical growing left</span>,
               and the <span>text track cue alignment</span> is <span title="text track cue start alignment">start</span></dt>
        <dt>If the <span>text track cue writing direction</span> is <span title="text track cue vertical growing right writing direction">vertical growing right</span>,
@@ -114038,6 +114076,8 @@
        <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
               the <span>text track cue alignment</span> is <span title="text track cue start alignment">start</span>,
               and <var title="">direction</var> is 'rtl'</dt>
+       <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
+          and the <span>text track cue alignment</span> is <span title="text track cue right alignment">right</span></dt>
        <dt>If the <span>text track cue writing direction</span> is <span title="text track cue vertical growing left writing direction">vertical growing left</span>,
               and the <span>text track cue alignment</span> is <span title="text track cue end alignment">end</span></dt>
        <dt>If the <span>text track cue writing direction</span> is <span title="text track cue vertical growing right writing direction">vertical growing right</span>,
@@ -114089,6 +114129,9 @@
        <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
               the <span>text track cue alignment</span> is <span title="text track cue start alignment">start</span>,
               and <var title="">direction</var> is 'ltr'</dt>
+       <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
+              the <span>text track cue alignment</span> is <span title="text track cue left alignment">left</span>,
+              and <var title="">direction</var> is 'ltr'</dt>
        <dd>
         <p>Let <var title="">x-position</var> be the <span>text track cue text position</span>.</p>
        </dd>
@@ -114096,6 +114139,9 @@
        <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
               the <span>text track cue alignment</span> is <span title="text track cue end alignment">end</span>,
               and <var title="">direction</var> is 'rtl'</dt>
+       <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
+              the <span>text track cue alignment</span> is <span title="text track cue left alignment">left</span>,
+              and <var title="">direction</var> is 'rtl'</dt>
        <dd>
         <p>Let <var title="">x-position</var> be the <span>text track cue text position</span> subtracted from 100.</p>
        </dd>
@@ -114103,6 +114149,9 @@
        <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
               the <span>text track cue alignment</span> is <span title="text track cue end alignment">end</span>,
               and <var title="">direction</var> is 'ltr'</dt>
+       <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
+              the <span>text track cue alignment</span> is <span title="text track cue right alignment">right</span>,
+              and <var title="">direction</var> is 'ltr'</dt>
        <dd>
         <p>Let <var title="">x-position</var> be the <span>text track cue text position</span> minus <var title="">size</var>.</p>
        </dd>
@@ -114110,6 +114159,9 @@
        <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
               the <span>text track cue alignment</span> is <span title="text track cue start alignment">start</span>,
               and <var title="">direction</var> is 'rtl'</dt>
+       <dt>If the <span>text track cue writing direction</span> is <span title="text track cue horizontal writing direction">horizontal</span>,
+              the <span>text track cue alignment</span> is <span title="text track cue right alignment">right</span>,
+              and <var title="">direction</var> is 'rtl'</dt>
        <dd>
         <p>Let <var title="">x-position</var> be the <span>text track cue text position</span> subtracted from 100, minus <var title="">size</var>.</p>
        </dd>
@@ -114618,6 +114670,8 @@
     <tr> <td><span title="text track cue start alignment">Start alignment</span> <td> 'start'
     <tr> <td><span title="text track cue middle alignment">Middle alignment</span> <td> 'center'
     <tr> <td><span title="text track cue end alignment">End alignment</span> <td> 'end'
+    <tr> <td><span title="text track cue left alignment">Left alignment</span> <td> 'left'
+    <tr> <td><span title="text track cue right alignment">Right alignment</span> <td> 'right'
   </table>
 
   <p>The 'font' shorthand property on the (root) <span>List of WebVTT




More information about the Commit-Watchers mailing list