[vorbis] Tag changes
Beni Cherniavksy
cben at techunix.technion.ac.il
Mon Apr 15 04:03:20 PDT 2002
On 2002-04-14, David K. Gasaway wrote:
> On 14 Apr 2002 at 22:10, Beni Cherniavksy wrote:
>
> > The word "must" should not appear in the document IMO. For example I
> > can write 19?7-03-04 if I didn't hear well and keep it like this until I
> > find out... Possibilites for scratching notes are endless, this should
> > only be a strong recomendation and any programs that break on
> > outstanding tags are broken.
>
> We've gone around on this question more than once now, and just can't
> seem to decide. There's no doubt that this is a standard quite
> different from the original - a fact that I've been reluctant to
> accept. However, we must move on.
>
Hmm... OK, I there is a point in defining a format to which tags should
conform. I just want a note in the beggining of the standard, on the
lines of:
"Nothing said in this standard should be taken as an excuse to break
horribly (segfault, refuse to play, remove bogus tags without asking,
etc.) on files which do not conform to it. It's good practice to behave
[partially] reasonably on files that partially conform to it."
> So, I offer the following solution, with the understanding that it is
> probably not the perfect solution. I won't even say that I recommend
> it. ;)
>
> Place this data into a different tag - say, INCOMPLETEDATE. Or, if
> you'd rather use standard tags, COMMENT. Then, once a complete date is
> available, promote it to DATE.
>
No to the first, second and Jonathan's idea (
"DATE=1963-04-12 (decade unknown, probably incorrect)"
) would be OK.
> > First define how do you _want_ them to be sorted at all in this case...
>
> You see the extra work, though. My statement was more of an
> observation than a critique. No one should expect sorting by date to
> be trivial, no matter the format of DATE.
>
Agreed.
> > Consider puting the additional information in a separate DATE tag if
> > this matter to you. If you sort in unix you can trom
s/trom/trim/
> > that additional informtaion with some easy pipe...
>
> You lost me there! :(
>
If you use some VorbisSortingGUIWizard that can sort by whole tags or
even by several fields (surprising for a wizard :) then splitting the
information into two tags: "DATE=2001-04-15", "DATE=(an example)" can do
the job (assuming it looks at first instance of given tag).
Unix has lot's of nifty "filters" - grep, sed, cut, join, sort, ... - from
which it's very easy to compose smart manipulations of the data in order
to achieve any sort order you want. For example:
vorbiscomment -l *.ogg | \
sed -n -e 's/^DATE=\([0-9-]*\( [0-9:]*\)?\).*$/DATE=\1\2/p'
hould print all DATE tags with only the real date part extracted (modulo
my mistakes). From that you can sort...
Just read in cut(1)'s man:
Use grep(1) to make horizontal ``cuts'' (by context) through
a file, or paste(1) to put files together column-wise (that
is, horizontally). To reorder columns in a table, use cut
and paste.
Cute ;) Long live unix! Pardon me if you know all that but I
misunderstood what you misunderstood.
--
Beni Cherniavsky <cben at tx.technion.ac.il>
<p><p>--- >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 at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis
mailing list