HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: bburl on 2009-07-30 00:22:41

Title: Album Sort Order Tagging and Implimenting with Flacs & foobar
Post by: bburl on 2009-07-30 00:22:41
A couple of questions:

According to this (http://74.125.47.132/search?q=cache:lQAxdXI2MEYJ:age.hobba.nl/audio/tag_frame_reference.html+albumsortorder+foobar&cd=5&hl=en&ct=clnk&gl=ca&client=firefox-a) site, Vorbis (which I believe is the scheme FLAC uses for tagging) has no standardized field name for how an artist's name should be sorted.  That is, if an artist has his name entered as "First Last" in the artist field, there is no standard ancillary field that informs a program on how the name should be sorted. For example if someone wanted to have the name appear as "First Last", but actually be sorted as if it were "Last, First", there is no standard field name in the vorbis scheme for that.  If that's true, any recommendations on what filed name I should use for an artist sort order type entry when I'm tagging?

Second, what code would I use to get foobar to sort artists differently than what is in the artist tag field?  I'm currently using in my Album List Panel settings Views box:

Code: [Select]
$if($meta(album artist),Various Artists,$meta(artist))|%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%


Anyway to get some kind of 'artistsortorder' thing in there that will allow me to have the names appear "First Last" but be sorted "Last, First"?

Thanks

Ps sorry if this has been asked and answered before, I did a fair amount of searching before posting.
Title: Album Sort Order Tagging and Implimenting with Flacs & foobar
Post by: 2E7AH on 2009-07-30 01:17:40
If you mean i.e. "Johann Sebastian Bach" to be displayed as "Bach, Johann Sebastian" try this:

[font= "Lucida Console"]$right(%artist%, $sub($len(%artist%), $strrchr(%artist%, " ")))
,
$left(%artist%, $sub($strrchr(%artist%, " "),1))[/font]

or change %artist% to $meta(artist,0) or %album artist% or $meta(album artist,0) depending on your tagging preferences
Then of course it will be useless on band names so some control flow should be placed first

If you mean about prefixes "The" or "A", there is such function [font= "Lucida Console"]$swapprefix(%artist%)[/font]
Also for Album list panel it is possible to split multi value fields and swap prefixes in one step: [font= "Lucida Console"]$meta_branch_remap_swapprefix(artist)[/font]

As for the Album list panel, if you don't want sorting to be like Album list branching then: "preferences > media library > album list panel: advanced tab" and tick on "Apply core sort...". This way items sent by album list will be sorted by "preferences > general: sort incoming files by" pattern

[edit] grammar
Title: Album Sort Order Tagging and Implimenting with Flacs & foobar
Post by: drbeachboy on 2009-07-30 01:25:18
Quote
Anyway to get some kind of 'artistsortorder' thing in there that will allow me to have the names appear "First Last" but be sorted "Last, First"?
See above.
Title: Album Sort Order Tagging and Implimenting with Flacs & foobar
Post by: bburl on 2009-07-30 03:34:56
If you mean i.e. "Johann Sebastian Bach" to be displayed as "Bach, Johann Sebastian" try this:


What I'm hoping for is to have it displayed as Johann Sebastian Bach and have the 'artist' tag written as Johann Sebastian Bach, but have him appear with the 'B' artists when I'm looking at my library.