# Custom Case for Artist Names in Tags

**URL:** https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179
**Category:** Support
**Created:** [January 12, 2019, 5:42pm UTC](https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179 "2019-01-12T17:42:26Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [January 12, 2019, 5:42pm UTC](https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179/1 "2019-01-12T17:42:26Z")

</div>

Hello there,

I have an action which forces uppercase on tags.

Now I am wondering if there is a way to force exact case for bank names which have specific capitalisation. For example, 'InMe' instead of 'INME' or 'inme'.

I know you prefer plain English descriptions, so I include the key which states what everything means within the code, which I created back in July 18.

T=Action  
T=1 'Case conversion'  
T=2 'Replace'  
T=3 Not listed in action types  
T=4 'Regular expression'  
T=5 'Format value'  
T=6 'Remove duplicate fields'  
T=7 'Guess values'  
T=8 'Merge duplicate fields'  
T=9 'Remove fields'  
T=10 'Remove fields except'  
T=11 'Convert codepage'  
T=12 'Import cover from file'  
T=13 'Export cover to file'  
T=14 'Import text file'  
T=15 'Export'  
T=16 'Split field by seperator'

F=Field

1=Original string  
2=Replace original string with  
3=0 Means 'only as whole word' and 'case-sensitive comparison' not selected  
3=1|0 Means 'only as whole word' selected and 'case-sensitive comparison' not selected  
3=0|1 Means 'only as whole word' not selected and 'case-sensitive comparison' selected  
3=1|1 Means 'only as whole word' selected and 'case-sensitive comparison' selected

```
Existing forcing uppercase:
    ! Artist UPPERCASE Conversion List (Initiate)=

[#67]
T=5
! Artist and Band UPPERCASE Conversion (Start)=
F=ARTIST_LIST
1=abba|adda|absrdst|acdc|ac dc|akdong musician|bkpr|blk jks|bts|chllngr|chvrches|chll pll|dfrnt|diiv|dmc|dnce|drwn|dtcv|dwntwn|dvsn|dvsr|exo-k|grmln|haim|htrk|hxlt|inxs|jmsn|jpnsgrls|kaytranada|kda|kshmr|ladybaby|lany|lee hi|lndn drgs|lnzndrf|lvthn|mgmt|mika|mnek|mndrmnek|ms mr|mstrkrft|n sync|nsync|partynextdoor|pwr bttm|pza|rdgldgrn|rkcb|rlyr|r\u00dcf\u00dcs du sol|rvivr|ry x|sbtrkt|shxcxchcxsh|sophie|stnnng|strfkr|swmrs|tnght|tr/st|tts|tstr|walk the moon|wzrd|u2|u-kiss|unkle|wstrn|xtrmst|zayn

[#68]
T=4
F=_ALL
1=$regexp(%_all%,(?i)\\b(%artist_list%)\\b,\\U$1\\E)
2=
3=0

[#69]
T=9
! Artist UPPERCASE Conversion List (End and Delete)=
F=ARTIST_LIST

```

I hope you can help, thank you in advance.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 14, 2019, 8:25am UTC](https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179/2 "2019-01-14T08:25:37Z")

</div>

To replace one text constant (here: name found in tags) with another (here: special capitalization) there is either the action "Replace" or the $replace() function.

---

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [January 18, 2019, 11:06pm UTC](https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179/3 "2019-01-18T23:06:08Z")

</div>

Thanks for your reply. I have had a think about this and am not sure how to practically apply your suggestion to this example.

So let's say that there are a list of artists which have particular capitalisation, like the original example I have, how would I incorporate this into the existing action?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 19, 2019, 9:05am UTC](https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179/4 "2019-01-19T09:05:21Z")

</div>

You would have to create actions with the pairs of search and replace words with the correct case in the replace word.

---

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [January 19, 2019, 10:27am UTC](https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179/5 "2019-01-19T10:27:49Z")

</div>

Are you saying that I would have to create a new action for each artist name? This can't be achieved within one action for multiple artists, like in the original code I showed which deals with multiple artists changing case from lower to upper?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 19, 2019, 10:32am UTC](https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179/6 "2019-01-19T10:32:56Z")

</div>

Basically yes.  
As there is no rule that can be applied like "put everything you find in capitals", you have to treat every name as special case.  
You can use $replace() so that you have to write fewer actions, the number of pairs stays the same, though.

---

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [January 19, 2019, 1:16pm UTC](https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179/7 "2019-01-19T13:16:51Z")

</div>

Could you please demonstrate how this would work?

I genuinely cannot figure out how this needs to be coded.

$replace(inme:InMe)

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 19, 2019, 3:24pm UTC](https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179/8 "2019-01-19T15:24:07Z")

</div>

see e.g. this thread with a number of suggestions with the correct syntax:

> [@Using TAG in actions/combining actions for different tags](https://community.mp3tag.de/t/using-tag-in-actions-combining-actions-for-different-tags/42419):
>
> I get the impression that using TAG is a shortcut in actions to updating many tags at the same time. Is there a way to add exclusions so that certain tags are not affected without going down the route of specifying every tag you do want to affect? For example, if I want to use capitalisation on every tag except artist because the case of the artist is originally correct and any manipulation would cause their name to be incorrect, can this be done? I want to try and avoid situations like this e…

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [January 6, 2021, 2:29pm UTC](https://community.mp3tag.de/t/custom-case-for-artist-names-in-tags/44179/9 "2021-01-06T14:29:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
