Re: meta-data in the VTT file header, a strawman proposal

OK, a more complete "spec" then:

1.
Name-value pairs of header metadata are given with a name-string
separated from the value by a colon.
No control characters or separators are allowed in the name-string.
No white space is allowed between the name and the colon.
White space immediately after the colon is not part of the value-string.

2.
If the value-string is a single "|" character followed by CRLF, the
value is multi-line, starting on the next line and ending with a line
that only contains a single dot.
The newline just before the dot-line is not part of the value.
Empty lines are not allowed, but there is an escape character "\"
which can be used at the beginning of lines and needs to be removed
when decoding the multi-line value.
"\" escapes empty lines and the lines that just contain a single dot.

Does that summarize it?

Cheers,
Silvia.

Received on Tuesday, 24 April 2012 01:46:06 UTC