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

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 UTC