W3C home > Mailing lists > Public > public-media-fragment@w3.org > July 2009

RE: ACTION-88 optional comma and ambiguity in syntax.

From: DENOUAL Franck <Franck.Denoual@crf.canon.fr>
Date: Fri, 31 Jul 2009 10:39:08 +0200
To: "public-media-fragment@w3.org" <public-media-fragment@w3.org>
Message-ID: <40375B187E39BC4589F9C89097BD82A4250DE37391@cressida.crf.canon.fr>
Dear fragmenters,

Correct me if I'm wrong, but expanding the rewriting proposed by Yves (bracket missing?), I see the 5 possibilities below to express a "npt temporal fragment":

1- npttimedef   = [ deftimeformat ":"]  clocktime 
2- npttimedef   = [ deftimeformat ":"]  clocktime  ","
3- npttimedef   = [ deftimeformat ":"]  clocktime  "," clocktime 
4- npttimedef   = [ deftimeformat ":"] ","
5- npttimedef   = [ deftimeformat ":"]  "," clocktime

To me:
1 corresponds to a fragment from a start position (given by clocktime) to the end of stream
2 seems useless and redundant with 1
3 corresponds to a fragment between a start and an end time
4 seems useless (no fragment here) 
5 corresponds to a fragment from the beginning of the stream to a given end time.

Considering this, would the following syntax work ?
npttimedef   = [ deftimeformat ":"]  ( 	(clocktime ["," clocktime])
					/("," clocktime)	)

Best regards,
--
	Franck.

> -----Original Message-----
> From: public-media-fragment-request@w3.org [mailto:public-media-fragment-
> request@w3.org] On Behalf Of Yves Lafon
> Sent: jeudi 16 juillet 2009 17:39
> To: public-media-fragment@w3.org
> Subject: ACTION-88 optional comma and ambiguity in syntax.
> 
> Hi,
> The following seems to capture what we (may) want:
> In the grammar [1], replace:
> <<
> npttimedef    = [ deftimeformat ":"] [ clocktime ] "," [ clocktime ]
> >>
> by
> <<
> npttimedef    = [ deftimeformat ":"] ( ( clocktime [ "," [ clocktime ] ]
>                                         / ( "," [ clocktime ] ) )
> >>
> So we are safe on this side.
> 
> [1] http://www.w3.org/2008/WebVideo/Fragments/wiki/Syntax
> 
> --
> Baroula que barouleras, au tiéu toujou t'entourneras.
> 
>          ~~Yves
> 
Received on Friday, 31 July 2009 08:39:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 21 September 2011 12:13:34 GMT