I'm writing a couple of reader/writer functions for a music tag class for python that can read and write 'raw' vorbis comments to text files[1]. I want these text files to be basically the same as the output/input comments used by the vorbiscomment program, but while testing out multi line comments I discovered that while vorbiscomment can set them with a -t "tag=value" option, and can write them out, it can't subsequently read them again. Fair enough, as '=' is a valid comment value character; vorbiscomment couldn't distinguish an overrun line with a '=' in it from a new comment. I figure I'll solve the problem by indenting multi line comments with a space, rather like Description blocks in debian control files, but I'm curious to know whether anyone else has run into this problem (and cares :-), and whether there is any kind of fix in CVS I ought to know about and conform to. John --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Thu, Oct 02, 2003 at 11:09:17PM +1200, John Morton wrote:> Fair enough, as '=' is a valid comment value character; vorbiscomment > couldn't distinguish an overrun line with a '=' in it from a new comment. I > figure I'll solve the problem by indenting multi line comments with a space, > rather like Description blocks in debian control files, but I'm curious to > know whether anyone else has run into this problem (and cares :-), and > whether there is any kind of fix in CVS I ought to know about and conform to.No, we've not implemented any more sophisticated input format for vorbis comment. As you say, -t "foo=bar" works fine up to the length-limit of the commandline. I have run into the problem occasionally, but in those few cases I just used that as a work-around. -r --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.