Non-Alphabet characters in Case (4) Title Enhanced Excep.

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Non-Alphabet characters in Case (4) Title Enhanced Excep.

Postby BogStandard » Tue Oct 22, 2024 10:30 am

BRU 4.0.0.2

Only the stated setting is used.

In my test filename I want ti to be upper case.

Case (4)
Title Enhanced
Excep. <clear>:TI

Title before:
ti- ti-30x Ti-30X ti30x Multi-Tool ti- ti-.txt
Title after:
TI- TI-30x TI-30x TI30x MulTI-Tool TI- TI-.txt

All ti are upper case but it has affected Multi-Tool -> MulTI-Tool.
So try using $TI

Case (4)
Title Enhanced
Excep. <clear>:$TI

Title before:
ti- ti-30x Ti-30X ti30x Multi-Tool ti- ti-.txt
Title after:
TI- TI-30x TI-30x Ti30x Multi-Tool TI- TI-.txt

$TI looks OK as Multi-Tool is not affected. ti30x -> Ti30x is affected but I can add another Excep. :TI30X:
BUT why has ti- been changed? Only ti was excepted.

So try $TI- to be more precise in what is captured...

Case (4)
Title Enhanced
Excep. <clear>:$TI-

Title before:
ti- ti-30x Ti-30X ti30x Multi-Tool ti- ti-.txt
Title after:
Ti- Ti-30x Ti-30x Ti30x Multi-Tool Ti- Ti-.txt

So that's odd. Using $TI- we have lost TI- and have Ti- instead. It is looking like Title Case has been invoked.
The same happens with comma ($TI,), semi-colon ($TI;) etc and with digits but NOT with <space> ($TI ).

Trying $TI<space>

Case (4)
Title Enhanced
Excep. <clear>:$TI :

Title before:
ti- ti-30x Ti-30X ti30x Multi-Tool ti- ti-.txt
Title after:
TI- TI-30x TI-30x Ti30x Multi-Tool TI- TI-.txt

Which is the same result as using $TI

Can the logic be explained? I am not saying this is wrong but I wasn't expecting it.
I was expecting everything that matched an exception to be captured and changed, without additional processing being invoked by non-alphabetic characters.

Regards...
BogStandard
 
Posts: 23
Joined: Sun Feb 07, 2021 11:25 pm

Re: Non-Alphabet characters in Case (4) Title Enhanced Excep.

Postby Admin » Wed Oct 23, 2024 6:55 am

Hi! the exception $TI will result in every word ti TI tI Ti to be capitalized always. The issue might be that - is considered a word separator so also ti- becomes TI- but not Multi-Tool

If you just want all TI to be uppercase could maybe use multiple replacements Replace (3)? Or a RegEx?
Admin
Site Admin
 
Posts: 2923
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support