You are not logged in.
Pages: 1
Hi
I have a lot of songs that are like this:
14 - Senza Una Donna (Without a woman) (feat jack savoretti)
is it possible to have everything lowercase (except the first letter) but have the content in "(feat " uppercase?
Like this:
14 - Senza una donna (without a woman) (feat Jack Savoretti)
Thanks
Offline
There is no quick way to apply the Case rule options selectively yet.
However, you can use a combination of these two rules:
1. Case rule: First letter capital.
2. Pascal Script rule: Use the script below.
const
Delimiter = '(feat ';
var
Start: Integer;
BaseName, Extension, Prefix, Suffix: Widestring;
begin
Extension := WideExtractFileExt(FileName);
BaseName := WideStripExtension(FileName);
Start := WideTextPos(Delimiter, BaseName);
if Start > 0 then
begin
Prefix := WideCopy(BaseName, 1, Start - 1);
Suffix := WideCopy(BaseName, Start + Length(Delimiter), Length(BaseName));
FileName := Prefix + Delimiter + WideCaseCapitalize(Suffix) + Extension;
end;
end.
Basically, this script applies capital case to the part of the filename that follows "(feat ".
Offline
thank you, you are always so kind
That's exactly what I was looking for
Offline
Pages: 1