IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
About APEv2 item keys and case-sensitivity.
Martin H
post Feb 15 2007, 17:41
Post #1





Group: Members
Posts: 857
Joined: 5-March 05
From: Denmark
Member No.: 20365



If someone with the needed knowledge could please clarify a question for me, then i would appreciate it smile.gif

The following part about item keys(tag fields) in the APEv2 spec. i would really like to get explained :

# APE Tags Item Key are case sensitive.
# [...]
# And nevertheless Tag readers are recommended to be case insensitive.

I know that this means that tag readers are recommended to be case-insensitive, so that it won't matter what case we use for the tags, but i am currious about why this specific wording ? Why not then just state that the item keys are (recommended)case-insensitive ? What is the exact meaning about having item keys which are case-sensitive and then recommending tag readers to be case-insensitive ? What exactly is it then that is defined to be case-sensitive ? My guess is that it means that the case used when defining the tags is stored - Am i correct in this ? The defined item keys in the APEv2 spec. is nearly everyone in title-case(first letter in upper-case and rest in lower-case), and this is fine for Artist and Album etc. but for my EACLOG tag, which i would like to match the spec. but as it can't be Eaclog and as EACLOG dosen't really match it that good, then i'm in doubt of what to use... I have then just used eaclog.

This is maybe not terribly important to most people, but i'm very interessted in these small technical things about the formats i personally use, and i have been wondering about this alot smile.gif

Finally, i apologise if this is in the wrong forum, as i didn't really know which forum would be appropriate, but as WavPack uses APEv2 as it's native tagging format and as my question is related to WavPack APEv2 tagging, then i hope that it's okey to be posted here, or otherwise, then i ask a mod to kindly move it elsewhere, where he sees it to fit better smile.gif

This post has been edited by Martin H: Feb 15 2007, 17:48
Go to the top of the page
+Quote Post
bryant
post Feb 15 2007, 18:39
Post #2


WavPack Developer


Group: Developer (Donating)
Posts: 1297
Joined: 3-January 02
From: San Francisco CA
Member No.: 900



QUOTE (Martin H @ Feb 15 2007, 08:41) *
The following part about item keys(tag fields) in the APEv2 spec. i would really like to get explained :

# APE Tags Item Key are case sensitive.
# [...]
# And nevertheless Tag readers are recommended to be case insensitive.

I believe that it was Frank Klemm who wrote that, and since English is not his first language that might explain the choice of wording. It might also be that he thought it was not the best way to do it (since I think Matt did the original design) and so he was trying to make it sound sillier than it was.

In any event, the way I interpret it (and implemented it) is exactly how Windows stores and handles filenames. The case is stored and is retrievable, but case is not used for lookups. This also implies that you can't have two items whose name only differs in case, which was the middle item in that list that you snipped.
Go to the top of the page
+Quote Post
Martin H
post Feb 16 2007, 15:46
Post #3





Group: Members
Posts: 857
Joined: 5-March 05
From: Denmark
Member No.: 20365



Hi David smile.gif

Thank you very much for your insight and for the details about your implementation, i really appreciate it smile.gif

Best regards and take care smile.gif

CU, Martin.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd December 2014 - 09:07