#1 2021-06-03 23:24

Lauraq
Member
Registered: 2016-10-02
Posts: 86

Change case of name differently for Author, Title and comment part

uppercase and capital letter very hard sad



Hi smile

I have many mp3 that are like:

11 - Simone filippi & Luca alfonso rossi - Cuore spezzato (Feat Carl brave)

Can I have

11 - Simone Filippi & Luca Alfonso Rossi - Cuore spezzato (feat Carl Brave)


Basically I would like all capital letters before "-" and then only the first capital letter
And, when there is "(feat " everything that comes after is capitalized



Thanksssss ^_^

Offline

#2 2021-06-06 09:05

skiwi
Member
Registered: 2009-06-15
Posts: 26

Re: Change case of name differently for Author, Title and comment part

Try the Case rule, this will largely do what you want
Then in another rule change change "(F" to "(f", change "Spezzato" to "spezzato" etc

Offline

#3 2021-06-06 10:21

Lauraq
Member
Registered: 2016-10-02
Posts: 86

Re: Change case of name differently for Author, Title and comment part

sorry but my english is bad and i don't know technical things. Can you tell me step by step what to do? Thank you smile

However, I think you have misunderstood, mine is an example, I don't have to change just "spezzato" big_smile

Last edited by Lauraq (2021-06-06 10:23)

Offline

#4 2021-06-06 11:16

skiwi
Member
Registered: 2009-06-15
Posts: 26

Re: Change case of name differently for Author, Title and comment part

Add rule "Case". chose case change (see https://www.den4b.com/wiki/ReNamer:Rules:Case) or accept the default

Preview the result. (see https://www.den4b.com/wiki/ReNamer:Previewing_files)

Add rule "Replace" to restore any lower case you want, (see https://www.den4b.com/wiki/ReNamer:Rules:Replace)
E.g. find "(Feat" and replace with "(feat"

Rename the files (see also https://www.den4b.com/wiki/ReNamer:Renaming_files)

Last edited by skiwi (2021-06-06 11:20)

Offline

#5 2021-06-06 21:42

Lauraq
Member
Registered: 2016-10-02
Posts: 86

Re: Change case of name differently for Author, Title and comment part

thanks ... now is there someone who can really help me? Thank you

please @den4b save me from these "special aids" smile

Last edited by Lauraq (2021-06-06 21:45)

Offline

#6 2021-06-06 23:56

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 354

Re: Change case of name differently for Author, Title and comment part

Lauraq, try this rules combination:

1) Case: Capitalize every word (skip extension), Force case fragments "feat"
2) Regular Expressions: Replace expression "([a-zA-Z]+) ([a-zA-Z ]+)*(\(feat[^)]+\))" with "$1 \L$2 $3" (skip extension)
3) Clean Up: Normalize spaces, Fix spaces (skip extension)

I added more possible examples just in case they exist:

From:

11 - Simone filippi & Luca alfonso rossi - Cuore spezzato (Feat Carl brave)
11 - Simone filippi & Luca alfonso rossi - Cuore spezzato something more (Feat Carl brave)
11 - Simone filippi & Luca alfonso rossi - Cuore (Feat Carl brave)
11 - Simone filippi & Luca alfonso rossi - Cuore (Feat Carl)
11 - Simone filippi & Luca alfonso rossi - Cuore (Feat. Carl)
Luca alfonso rossi - Cuore (Feat Carl brave)
Luca - Cuore (Feat Carl brave)

To:

11 - Simone Filippi & Luca Alfonso Rossi - Cuore spezzato (feat Carl Brave)
11 - Simone Filippi & Luca Alfonso Rossi - Cuore spezzato something more (feat Carl Brave)
11 - Simone Filippi & Luca Alfonso Rossi - Cuore (feat Carl Brave)
11 - Simone Filippi & Luca Alfonso Rossi - Cuore (feat Carl)
11 - Simone Filippi & Luca Alfonso Rossi - Cuore (feat. Carl)
Luca Alfonso Rossi - Cuore (feat Carl Brave)
Luca - Cuore (feat Carl Brave)

Note: On my end ReNamer freezes up to dozens of seconds while using Analyze dialog. It might happen on yours too when adding files.

Denis, RegEx rule by some unknown reason takes too long to process. Can you check why it takes too long? I debugged it and it processes matched strings up to 14 steps.


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

#7 2021-06-07 10:57

Lauraq
Member
Registered: 2016-10-02
Posts: 86

Re: Change case of name differently for Author, Title and comment part

Thank you so much for the help but my OLD PC freeze like yours but after a few minutes I was forced to close ReNamer because it was no longer working sad

I hope that the problem is solved because your solution is fantastic because it covers all possible variables! smile smile smile

Last edited by Lauraq (2021-06-07 11:19)

Offline

#8 2021-06-07 13:10

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 354

Re: Change case of name differently for Author, Title and comment part

First add rules, then add files and wait until gets responsive (it might take minutes - depending on how many files you added, can't tell).

Lauraq wrote:

I hope that the problem is solved because your solution is fantastic because it covers all possible variables!

It looks like it is not fantastic at all tongue try to wait and then claim it as deserved. Good luck! smile


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

#9 2021-06-07 16:28

Lauraq
Member
Registered: 2016-10-02
Posts: 86

Re: Change case of name differently for Author, Title and comment part

nothing to do sad I have add only 7 file (with the same name of your example) and after 10 min the prog is always freezed.
My PC is a Intel Core i7 LGA1156 i5-860 with 8 giga RAM

it is not possible to divide the command into several separate commands?

Last edited by Lauraq (2021-06-07 16:29)

Offline

#10 2021-06-09 13:21

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 354

Re: Change case of name differently for Author, Title and comment part

Lauraq wrote:

it is not possible to divide the command into several separate commands?

Provided one no. Maybe someone can write a Pascal script which process files faster.


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

Board footer

Powered by FluxBB