More > JRiver Media Center 31 for Windows
Feature Request: Fix Swap-Function
markf2748:
I always sort in MC by first real word, but my 2 cents...
APA is a widely used style. This old blog entry, while it talks about citing references, also has a logical ring to it for sorting and listing by last name:
https://blog.apastyle.org/apastyle/2012/03/jr-sr-and-other-suffixes-in-apa-style.html
More recently: https://writeanswers.royalroads.ca/faq/199230
Same for MLA style: https://owl.purdue.edu/owl/research_and_citation/mla_style/mla_formatting_and_style_guide/mla_works_cited_page_basic_format.html
"Do, however, include suffixes like "Jr." or "II." Putting it all together, a work by Dr. Martin Luther King, Jr. would be cited as "King, Martin Luther, Jr." Here the suffix following the first or middle name and a comma."
So I prefer displaying
"Walker, Billy Joe, Jr."
"Billy Joe Walker Jr." (unless of course Billy Joe himself uses "Billy Joe Walker, Jr.", which must be respected)
though internally it may be stored in whatever way simplifies programming.
Sample Cases:
1) Based on album covers, I conclude "Billy Joe Walker, Jr." is correct, notwithstanding a lot of variation in references to his work.
2) More ambiguous is "Sammy Davis Jr." vs. "Sammy Davis, Jr." since it appears both ways on album covers. I would still want swap() to return "Davis, Sammy, Jr." in both cases.
Win 11 64-bit MC 31.0.26
dtc:
Does this effect people who have Swap in a calculated field? If so it may change their database without them knowing it. I do a swap in some calculated fields but I still use Mr. C's original regex.
dtc:
Parsing the last "word" of the name (minus suffix) and putting that first probably handles the vast majority of the cases, although it will not be perfect. Grabbing the last part means it does not matter how many parts there are to the full name. It also handles von, de and other similar parts of the name, but fails on ... the younger, for example. I guess things like "the younger" could be treated like Jr. III etc., but that might be too much. So, much better than the current, but not perfect.
markf2748:
--- Quote from: dtc on June 26, 2023, 01:30:40 pm ---Parsing the last "word" of the name (minus suffix) and putting that first...
--- End quote ---
Minus suffix and then minus any remaining trailing symbol if present (so you don't end up displaying a double comma, for example).
Also need to be smart about hyphenated name cases.
dtc:
--- Quote from: markf2748 on June 26, 2023, 01:49:51 pm ---Minus suffix and then minus any remaining trailing symbol if present (so you don't end up displaying a double comma, for example).
Also need to be smart about hyphenated name cases.
--- End quote ---
Agreed.
Navigation
[0] Message Index
[*] Previous page
Go to full version