- From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
- Date: Tue, 25 Jun 2013 22:51:27 +1000
- To: Simon Pieters <simonp@opera.com>
- Cc: David Ronca <dronca@netflix.com>, public-texttracks@w3.org
On Tue, Jun 25, 2013 at 6:23 PM, Simon Pieters <simonp@opera.com> wrote: > On Tue, 25 Jun 2013 03:01:32 +0200, Silvia Pfeiffer > <silviapfeiffer1@gmail.com> wrote: > >> On Tue, Jun 25, 2013 at 10:28 AM, David Ronca <dronca@netflix.com> wrote: >>> >>> Consider the TTML cue below (from a real asset with the text changed). >>> Note that there is a blank line between the two lines of text. Thus >>> the cue: >>> >>> <p begin="3480002000t" end="3500007000t" style="style0" >>> xml:id="subtitle84">First line of text.<br/><br/>Second line of >>> text.</p> >>> >>> Should be rendered: >>> >>> First line of text >>> <Blank Line> >>> Second line of text >>> >>> How would you do this in WebVTT? My only guess might be this: >>> >>> 84 >>> 00:05:48.000 --> 00:05:50.000 >>> First line of text. >>>   >>> Second line of text >>> >>> Would this work? Is there a 'correct' way for a blank line? >> >> >> FAIK this is the right way and it should work. Also, it needs to be >> (note the semicolon at the end). > > > wouldn't be an empty line. It would render the space (which is > visible if you have a background). > > You can use a literal space instead (or a tab). The default value of > 'white-space' for WebVTT is 'pre-line', which means that line breaks are > preserved but other whitespace is collapsed. Good catch! BTW: I just tested this in Chrome, and " " gets rendered literally, while a single blank is rendered as a single blank with background. I'm pretty sure that's a Chrome bug though. Silvia.
Received on Tuesday, 25 June 2013 12:52:14 UTC