Rockbox mail archiveSubject: Re: Re: OT: Windows-based ID3 editor for numeric genre tags
From: TP Diffenbach (rockbox_at_diffenbach.org)
> BS> Since so many software authors have interpreted the id3v2.3
I supplied a patch to display freeform genres (patch # 706111 on sourcefourge: http://sourceforge.net/tracker/index.php?func=detail&aid=706111&group_id=44306&atid=439120)
My patch displays the v2.3 genre as freeform unless the first character is an open parenthesis, followed by a number and a close parenthesis; in that case, the number is interpreted as a v1 genre number, and the name associated with that genre number is used as the genre name.
The parsing of this number is performed exactly as the v1 genre is interpreted (and as v2.3 genres are interpreted by the existing Rockbox code) -- in fact I pretty much just copied the existing Rockbox code.
Please note that neither the existing Rockbox code nor my patch fully complies with the v2.3 genre specification, which allows for multiple numbered genres to be interpersed with text, and for two open parentheses to be used as an escape sequence. E.g., "Mellow (1) with (3) crooning ((2)" should, under the specification, be displayed as "Mellow Blues with Country crooning (2)". While not especially challenging to code, supporting this would require a parser with a one-character look-ahead, adding additional code that I question whether anybody would actually use, given the minor space savings over pure freeform text.
(Of course, if even one person responds that they actually use this baroque format, I shall feel an irritating onligation to support it. ;) )
Please note that my patch makes it much easier (I think, anyway) to add new ID3 tags: one must only add an item to an array, and a member to a struct, to read the new tag. Adding code isn't necessary unless special processing of the the new tag is required. (Making it display still requires adding another case to a switch, and a sprintf.)
Quoting Eric Linenberg <elinenbe_at_umich.edu>:
> There is or was a patch for this a while back. There also was an
-- Archos FM needs a Rockbox!
Page was last modified "Jan 10 2012" The Rockbox Crew