- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 09 Oct 2012 19:05:14 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/webvtt In directory hutz:/tmp/cvs-serv3883 Modified Files: Overview.html Log Message: Spelling of 'minimize', balance the line lengths in the WebVTT example, typo fix. (whatwg r7444) Index: Overview.html =================================================================== RCS file: /sources/public/html5/webvtt/Overview.html,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- Overview.html 9 Oct 2012 18:55:38 -0000 1.37 +++ Overview.html 9 Oct 2012 19:05:12 -0000 1.38 @@ -273,36 +273,41 @@ lines, one for each speaker. The third will wrap to fit the width of the video, possibly taking multiple lines. For example, the three cues could look like this:</p> +<!-- 50 --> <pre> Never drink liquid nitrogen. — It will perforate your stomach. — You could die. The Organisation for Sample Public Service -Announcements accepts no liability for the content -of this advertisement, or for the consequences of -any actions taken on the basis of the information - provided.</pre> + Announcements accepts no liability for the + content of this advertisement, or for the + consequences of any actions taken on the + basis of the information provided.</pre> - <p>If the width of the cues is smaller, the firs two cues could wrap as well, as in the following + <p>If the width of the cues is smaller, the first two cues could wrap as well, as in the following example. Note how the second cue's explicit line break is still honored, however:</p> - <pre> Never drink liquid - nitrogen. +<!-- 25 --> + <pre> Never drink + liquid nitrogen. -— It will perforate your - stomach. + — It will perforate + your stomach. — You could die. The Organisation for Sample Public Service -Announcements accepts no -liability for the content -of this advertisement, or - for the consequences of -any actions taken on the -basis of the information - provided.</pre> + Announcements accepts + no liability for the + content of this + advertisement, or for + the consequences of + any actions taken on + the basis of the + information provided.</pre> + + <p>Also notice how the wrapping is done so as to keep the line lengths balanced.</p> </div> @@ -2566,7 +2571,7 @@ <li>Regardless of the value of the 'white-space' property, any line breaks inserted by the user agent for the purposes - of line wrapping must be placed so as to minimise Δ + of line wrapping must be placed so as to minimize Δ across each run of consecutive lines between preserved newlines in the source. Δ for a set of lines is defined as the sum over each line of the absolute of the difference
Received on Tuesday, 9 October 2012 19:05:21 UTC