[Pmt-exif] "keyword=valueline" syntax [was Re: Exif and PNG]
Brought to you by:
glennrp
From: Glenn Randers-P. <gl...@ho...> - 2000-08-07 10:40:54
|
At 02:48 AM 8/7/00 +0000, Adam M. Costello wrote: >I don't think of my syntax as escaping anything; in fact the whole point >of it is to avoid the need for anything to be escaped or quoted. > >Every newline character means the same thing: the end of the line. The >parser is always in the same state at the start of every line. > >Here's the entire syntax spec: Every line has the form >[keyword][=valueline], where either half may be missing. If the >valueline is present, it gets appended to the value of the most recent >keyword you've seen. > >So a key/value pair is not terminated by a newline. It's terminated by >the appearance of the next keyword, or the end of the chunk. Therefore >it is not necessary to escape newlines. I like this. More completely, "...may be missing. The valueline can be empty and it can contain any characters allowed in PNG text chunks except for the newline." BTW: Do you mind if I copy some of our correspondence from png-list, to place this in context? Glenn |