You are not logged in.
Pages: 1
Hi Guys Great Program only been using it for 20minutes or so but so far so good, thanks.
I am using the program to rename Folders of cd`s i have ripped and have come across a couple of areas i would like some help with..
I will try and explain the issues.
My cd singles folders contain the artist - the cd title then in [] brackets the Cd Cat number and the year so it`s like this...
Ace of Base - everytime It rains - [ACECD 10] - [2000]
I am trying to use case and Capitalize every word so it becomes
Ace Of Base - Everytime It Rains - [ACECD 10] - [2000]
but the problem is when i do that it becomes
Ace Of Base - Everytime It Rains - [Acecd 10] - [2000]
I need the Cd Cat contained in the [] to be all capitals ie [ACECD 10] and not [Acecd 10]
So any ideas on that appreciated..
Offline
Hi Xbon, welcome to the community.
FROM:
Ace of Base - Everytime it rains - [ACECD 10] - [2000]
TO:
Ace Of Base - Everytime It Rains - [ACECD 10] - [2000]
First i would try an >old trick of mine<
That is: move the basename/extension delimiter
so that "Ace of Base - Everytime it rains" is temporary the base name and "[ACECD 10] - [2000]" the extension.
Then you can change the case of the "base name" and prevent the "extension".
You can do that in a few steps/rules yourself:
Test this with copies first.
1) Replace: Replace last "." with "#"
2) Rearrange: Split by delimiters " - ", New pattern "$1 - $2.$3 - $4"
3) Case: Capitalize every word (skip extension)
4) Replace: Replace last "." with " - "
5) Replace: Replace last "#" with "."
Check the Preview.
If all looks fine, press Rename.
(Note: please find the Rearrange Rule in the ReNamer beta =>> http://www.den4b.com/?x=downloads)
An other way would be writing an PascalScript which would do the same but with one rule only.
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
Why not to add the possibility to Renamer to accept regex (so the delimiter will be something else than space) on the "force case to fragment" !?
_________________
Do, or do not. There is no 'try.'" -- Jedi Master Yoda
Offline
Here is an alternative way.
1) Use "Case" rule to capitalize every word;
2) Use "PascalScript" to force content inside brackets upper case:
var
Open, Close, Count: Integer;
Part: WideString;
begin
Open := WidePos('[', FileName);
if Open > 0 then
Close := WidePosEx(']', FileName, Open + 1);
while (Open > 0) and (Close > 0) do
begin
Count := Close - Open - 1;
Part := WideCopy(FileName, Open + 1, Count);
WideDelete(FileName, Open + 1, Count);
WideInsert(WideUpperCase(Part), FileName, Open + 1);
Open := WidePosEx('[', FileName, Close + 1);
if Open > 0 then
Close := WidePosEx(']', FileName, Open + 1);
end;
end.
Offline
Pages: 1