Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Database alpha ignore.
« previous next »
  • Print
Pages: [1] 2

Author Topic: Database alpha ignore.  (Read 4707 times)

Offline PaperArtillery

  • Member
  • *
  • Posts: 13
  • iPod Classic 160GB
    • deviantArt
Database alpha ignore.
« on: May 09, 2008, 11:57:34 AM »
I was wondering if anyone had any thoughts about duplicating most media players' and iPod's system for ignoring the article "the" when alphabetizing the database, particularly by artist names.  I would experiment, but as my programming experience is extremely limited and I don't understand the actual internals of rockbox, I figured I should ask first.

What I'd like a sample to look like is this:

Bad Religion
The Beatles
Counting Crows
The Decembrists
E Nomine


and so on, instead of:

Bad Religion
Counting Crows
E Nomine
The Beatles
The Decembrists
Logged
"I will say this - we are soldiers.  We know what war is.  We can only share it with each other.  In battle, we keep each other alive.  After the years have passed and the weapons are cold, it is our duty, still, to help each other survive."

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Database alpha ignore.
« Reply #1 on: May 09, 2008, 12:01:27 PM »
There are lots of these in the tracker:

http://www.rockbox.org/tracker/task/2413

Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Database alpha ignore.
« Reply #2 on: May 09, 2008, 12:50:45 PM »
Another topic that always comes back... ;)

There are several threads in the forums about it, just search for "ignore the" and you'll get a lot of hits and lots to read. The idea of just ignoring "the" has been rejected because it only works with English and adding other languages' articles isn't very handy too - who decides which language will be added to such a list, who would actually add the code... and what will happen when a word is an article in one language and has a completely different meaning in another language (often cited example, the German article "die").

It was agreed on that the better solution is to make the database support the "sorting" tags and then a user could let the displayed artists/albums etc. be sorted by these tags but let it display the usual artist names etc. Someone already started working on that and posted the work to the tracker (tracker task #7287).
Logged

Offline danny_pav

  • Member
  • *
  • Posts: 23
Re: Database alpha ignore.
« Reply #3 on: May 13, 2008, 01:04:40 PM »
why couldn't the list of articles be a file so that you can have a different list of articles for each language pack?
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Database alpha ignore.
« Reply #4 on: May 13, 2008, 01:23:40 PM »
Well it could, almost anything is possible. The point is whether or not it would be accepted into the standard code and the dev's consensus opinion at the moment is that the 'correct' way to do it is to support the standard sorting tags and no other way.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Database alpha ignore.
« Reply #5 on: May 13, 2008, 01:25:52 PM »
Quote from: danny_pav on May 13, 2008, 01:04:40 PM
why couldn't the list of articles be a file so that you can have a different list of articles for each language pack?

What happens if I have songs in a mix of languages, and sometimes I want 'Die" to mean "die" as in English, and sometimes I want it to mean "The" in German?
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Database alpha ignore.
« Reply #6 on: May 13, 2008, 01:28:41 PM »
Quote from: pixelma on May 09, 2008, 12:50:45 PM
(often cited example, the German article "die").
Just as an explanation how a "language pack" would fail:
Imagine someone having the artists "Die Ärzte" (a german band, where the "Die" is an article) and "Die Happy". If you language-like treat "Die" as article you'll get a sorting based on "Ärzte, Die" (which is correct) and "Happy, Die" (which is wrong). Simply put, it isn't as simple as ignoring an article or even making that article configurable. The only proper solution is to implement sort tags in the files metadata.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline danny_pav

  • Member
  • *
  • Posts: 23
Re: Database alpha ignore.
« Reply #7 on: May 22, 2008, 08:56:37 AM »
using sort tags is problematic in that:
1. for every tag we would want to sort by, we need to have an alternate sorting tag.  so tag artist, would need sort_artist, album would need sort_album, etc.
2. are there any ripper/organizer/library software that supports these tags -- if not, how do we tag our music sets to wrok properly?  is the sort going to completely blow up when i don't have the new tags on some part of my collection?


Logged

Offline markun

  • Developer
  • Member
  • *
  • Posts: 462
Re: Database alpha ignore.
« Reply #8 on: May 22, 2008, 09:30:38 AM »
Sorting should be done on the the normal tags if the file doesn't have a sort tag. So just add it where needed.

No idea which tag editors support it.

Here you can see some sorting tags for various formats:

http://musicbrainz.org/doc/PicardQt/TagMapping
Logged

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Re: Database alpha ignore.
« Reply #9 on: May 22, 2008, 10:06:41 AM »
Quote from: danny_pav on May 22, 2008, 08:56:37 AM
using sort tags is problematic in that:
1. for every tag we would want to sort by, we need to have an alternate sorting tag.  so tag artist, would need sort_artist, album would need sort_album, etc.
2. are there any ripper/organizer/library software that supports these tags -- if not, how do we tag our music sets to wrok properly?  is the sort going to completely blow up when i don't have the new tags on some part of my collection?



1 - The easiest way to start would be to do a bulk tag-write and copy artist to sort_artist and album to sort_album.  Then you can customize the sort tags at your leisure, and the failure result would be to sort albums as usual.
2 - Musicbrainz and Foobar should both support these tags - and that is the only two tagging programs I am familiar with.  As I said - there will be no blow-up - only failure-to-status quo.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

Offline danny_pav

  • Member
  • *
  • Posts: 23
Re: Database alpha ignore.
« Reply #10 on: May 22, 2008, 10:46:56 AM »
so if the tag is not present, it will use the original?  so then this feature could be added and no one will be forced to retag their library?  that's good

and then if you wanted to take advantage of this, there are (at least) 2 apps which can do the tagging?  that's good, too.

so, has this been officially entered as an issue?  is there a tracking #?

thx - dan

Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Database alpha ignore.
« Reply #11 on: May 22, 2008, 10:57:16 AM »
Quote from: danny_pav on May 22, 2008, 10:46:56 AM
so, has this been officially entered as an issue?  is there a tracking #?

errr... see pixelma's post above, she links to the only actual attempt to do this. AFAIK, the rest of the 'track sorting' tasks in the tracker are just feature requests ;)
« Last Edit: May 22, 2008, 10:58:48 AM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline SinthrillMeadear

  • Member
  • *
  • Posts: 3
    • my myspace
Re: Database alpha ignore.
« Reply #12 on: June 02, 2008, 05:54:02 PM »
another simple way to have rockbox overlook "the", is to remove them. i kinda figured that out one day, that if a word isn't there, the database can't sort it.  :)
Logged

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: Database alpha ignore.
« Reply #13 on: June 02, 2008, 08:43:10 PM »
Instead of deleting 'The' it could be moved, e.g. 'Beatles, The'.

Or come to terms with the fact that the band decided to name themselves 'The xxx', and therefore they really do have a name beginning with 'T' ;)
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Database alpha ignore.
« Reply #14 on: June 02, 2008, 09:43:16 PM »
That's my personal position on it. You always gotta scroll to somewhere, and I actually think it looks worse seeing a whole bunch of Bs intermixed with occasional Ts on the left side of the screen when a so called "smart" sorting algorithm is in place.

But the sort tags, when they're finished, will allow for a solution that's pretty darn flexible too. And fixes more problems than just ignoring "The" anyway.
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Database alpha ignore.
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.135 seconds with 14 queries.