#1 2013-04-22 03:24

zukster
Member
Registered: 2013-04-22
Posts: 2

Shorten names, Strip Space and Capitalize Next

Here's a good one I could not figure out.

I have an mp3 car deck and it only displays 12 characters or so. So I wanted to change something like

Happy to Meet.mp3

with HappyToMeet.mp3 to conserve space.

So how do I change space-letter to nospace-capitalletter?

Even better would be a smart algorithm that would take a given sentence and shink it as best as possible to a specified length, but that sounds more AI involved...

So it would get changed to something like this if you specified 12.

Hapy2Meet.mp3

Offline

#2 2013-04-22 07:48

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Shorten names, Strip Space and Capitalize Next

FROM:
Happy to Meet.mp3
TO:
HappyToMeet.mp3

DO two rules:
1. add an Case rule and Capitalise Every Word
2. add an Remove rule to remove blanks

Then click at the Preview button to see if it works.


http://www.den4b.com/wiki/ReNamer:Rules:Case
http://www.den4b.com/wiki/ReNamer:Rules:Remove



- - -


Furthermore you could do something like this:


FROM:
Happy to Meet featuring Matty (bar remix).mp3

TO:
Hapy2MetFeatMaty(BarRmx).mp3

DO:
1) RegEx: Replace expression "(.)\1" with "$1" (skip extension) //To Remove Doubled Chars: 'pp' > 'p'
2) Replace: Replace all "Featuring" with "feat", "Remix" with "RMX", "to" with "2" (skip extension)
3) Case: Capitalize every word (skip extension)
4) Remove: Remove all " " (skip extension)


I hope you get the idea?

.


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2013-04-22 22:59

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Shorten names, Strip Space and Capitalize Next

For converting from "HappyToMeet.mp3" to "Happy to Meet.mp3" you can use CleanUp rule with "Insert space in front of capitals" option.

Offline

#4 2013-05-01 19:46

zukster
Member
Registered: 2013-04-22
Posts: 2

Re: Shorten names, Strip Space and Capitalize Next

Yes I get the idea. Thanks a lot.

That will help a great deal. I'll do most of what you suggest and then finish with a truncation rule.

When you have so many options to apply its amazing how many ways you can accomplish what you want.

Great program Den4b!

Offline

Board footer

Powered by FluxBB