IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> ACTION>CASE CONVERSION addition
vvikkass
post Feb 11 2017, 15:16
Post #1


Member


Group: Full Members
Posts: 40
Joined: 13-October 16
Member No.: 22612
Mp3tag Version: 2.78



Action > Case Conversion (Normal) does a good job with filenaming.

when case converted in for eg. this file name 01 - aRtisT - tiTle.mp3 it will result in this 01 - Artist - Title.mp3

Is it possible to let the already capital words remain their case, and just upper case the first letter of word if they are not?

like 01 - aRtisT - tiTle.mp3 may become 01 - ARtisT - TiTle.mp3

Kind regards,
Go to the top of the page
 
+Quote Post
DetlevD
post Feb 11 2017, 16:08
Post #2


Member


Group: Full Members
Posts: 6681
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.84e



QUOTE (vvikkass @ Feb 11 2017, 15:16) *
... Is it possible to let the already capital words remain their case, and just upper case the first letter of word if they are not? ...

From: aRtisT
To  : ARtisT
Action "Format value"
ARTIST <== $regexp(%ARTIST%,'^.','\u$0')

From: tiTle
To  : TiTle
Action "Format value"
TITLE <== $regexp(%TITLE%,'^.','\u$0')


... or have a look to the function $caps2() ...
_FILENAME <== $caps2(%_filename%)

DD.20170211.1621.CET

This post has been edited by DetlevD: Feb 11 2017, 16:21


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
vvikkass
post Feb 11 2017, 17:28
Post #3


Member


Group: Full Members
Posts: 40
Joined: 13-October 16
Member No.: 22612
Mp3tag Version: 2.78



QUOTE (DetlevD @ Feb 11 2017, 20:38) *
From: aRtisT
To  : ARtisT
Action "Format value"
ARTIST <== $regexp(%ARTIST%,'^.','\u$0')

From: tiTle
To  : TiTle
Action "Format value"
TITLE <== $regexp(%TITLE%,'^.','\u$0')


... or have a look to the function $caps2() ...
_FILENAME <== $caps2(%_filename%)

DD.20170211.1621.CET


It worked biggrin.gif

You and all those who have helped me in past are genius :blackhat:
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: 23rd October 2017 - 16:16