IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Reply to this topicStart new topic
> Action Groups, Case Converstion
DB Cooper
post Aug 15 2011, 18:06
Post #1


Member


Group: Members
Posts: 1
Joined: 20-June 10
From: 3rd Stone From Sun
Member No.: 12550
Mp3tag Version: v2.4



I looked all over the forum to locate a way that case converstion would change case'S to case's.
Or any word that has a 'L (capital letter at the end of a word) (wasn't he's that's)

Any help will help



--------------------
As we embellish the sunset of our life,
we are all bound to reach out for the ones
we have lost and misplaced along the way

"Gaining Knowledge Through People Helping People"
Go to the top of the page
 
+Quote Post
ohrenkino
post Aug 15 2011, 18:18
Post #2


Member


Group: Full Members
Posts: 3159
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.55a



ZITAT(DB Cooper @ Aug 15 2011, 19:06) *
... case converstion would change case'S to case's.

create yourself an action of the type case conversion (see FAQs http://forums.mp3tag.de/index.php?showtopic=980#entry4106 on how to create an action)
and then follow the FAQs on how to create an action to modify cases.
http://forums.mp3tag.de/index.php?showtopic=980#entry4107

Whe creating such a case-conversion-action you can specify which characters delimit words - if you leave out the ' then the ' would be treated as any other character and would not cause a case-change behind it.

Concerning your signature: shouldn't "we have lost and missed placed along the way" be "we have lost and misplaced along the way"?


--------------------
42 - wie war die Frage / what was the question / comment était la question
Go to the top of the page
 
+Quote Post
DetlevD
post Aug 15 2011, 18:32
Post #3


Member


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



QUOTE (DB Cooper @ Aug 15 2011, 19:06) *
I looked all over the forum to locate a way that case converstion would change case'S to case's.
Or any word that has a 'L (capital letter at the end of a word) (wasn't he's that's)

Any help will help

Here is an example of five possibilities to change the casing anyway using Mp3tag functions.
Pick the one you need.

For demonstration only I use the preview feature of the Converter 'Tag - Filename'.
Converter: Tag-Filename [Alt]-[1]
Formatstring:
$caps('case''''S')' -- '$caps2('case''''S')' -- '$caps3('case''''S')' -- '$lower('case''''S')' -- '$regexp('case''''S','\L+\>','\L$0')
Result:
Case's -- Case'S -- Case's -- case's -- case's


Same thing with another test string ....
Converter: Tag-Filename [Alt]-[1]
Formatstring:
$caps('It''''S a case''''S case')' -- '$caps2('It''''S a case''''S case')' -- '$caps3('It''''S a case''''S case')' -- '$lower('It''''S a case''''S case')' -- '$regexp('It''''S a case''''S case','\L+\>','\L$0')
Result:
It's A Case's Case -- It'S A Case'S Case -- It's a case's case -- it's a case's case -- It's a case's case


Modified example using regexp ....
Converter: Tag-Filename [Alt]-[1]
Formatstring:
$regexp('It''''S A case''''S case','\L+\>','\L$0')' -- '$regexp('It''''S A case''''S case','''\L+?\>','\L$0')
Result:
It's a case's case -- It's A case's case

DD.20110815.2015.CEST

This post has been edited by DetlevD: Aug 15 2011, 19:14


--------------------
* 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

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 May 2013 - 16:37