This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Proper Capitalization

Tags: None
(comma "," separated)
Ryan Mikulovsky
Karma
0

Proper Capitalization

Sun Feb 20, 2005 3:40 pm
A while ago I did a bit of experimenting in Python and later Haskell that would take a badly capitalized song title and turn it into something more correct or at least uniform. The idea was to eventually recurse through my entire directory structure and use metaflac to update the titles. Of course, that would only be done when I could be very trusting of the algorithms being able to cope with all sorts of special cases.

Python Code example (fairly \"mature\" but not at all complete)

and

A start at in in Haskell (basically nothing at all)

Anyway, as you can tell I\'m a very poor coder :-) I coded the version in python over a span of a week while on temporary duty in freezing Cold Lake, Canada... the haskell example was just a pipe dream that I revised several times when friends told me it wasn\'t functional enough. I love being trapped in the world of imperative structure.

So the feature request, therefore, is to have a accurate and built in (i.e., NOT an option) feature that would attempt to correct the title in album and track names. This would provide a very accurate and well formed library of music where metadata is concerned.

I use expressly FLACs for all of my owned albums and we all know that CDDB is just horrible at proper having proper track capitalizations. I don\'t really subscibe to the idea that names should be how they appear on the album covers -- that just looks messy when represented on my playlists. Which is what it looks like now because I have a hard time remembering all those rules for names....

So would this be something of interest? As I said, I\'m a poor coder and so I don\'t think it\'d be wise for me to even attempt implementing this in C++, let alone using QT. Same goes for adapting the python script as a amarok script.

Thanks.
Flesh For Fantasy
Karma
0

Re:Proper Capitalization

Wed Feb 23, 2005 2:27 am
Er... wouldn\'t it be simpler to use MusicBrainz for tagging? Caps aren\'t perfect there, but if you go there and clean up the albums you use when you see a mistake, you clean it up for others...
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS

Re:Proper Capitalization

Wed Feb 23, 2005 3:03 pm
I\'m not sure title captialization works the same in all applicable languages. I know for proper nouns it often works different, like Spanish is written \'español\' not \'Español\'.


Amarok Developer
User avatar
sebr
Moderator
Posts
301
Karma
0

Re:Proper Capitalization

Wed Feb 23, 2005 9:38 pm
Ahhh Haskell... The first proper language i learnt after QBasic. Yeah too bad i forgot how to use it.

(Be back home in less than a week!)


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Sogou [Bot], Yahoo [Bot]