fred
October 28, 2010, 2:05am
1
Hi,
Based on the original Title Case , I added some cleanup and format options as well as french, italian and spanish special words to exclude from uppercase. You can change option by choosing False or True behind each one.
Features
Cleanup and format
fAnime = False ' Remove Bracket and its content "[Hyogo]Naruto_Shippuuden_143_VOSTFR [400p][Xvid-Mp3] FADDA119 " will results "Naruto_Shippuuden_143_VOSTFR"
fBracket = False ' Replace "[]" with "()"
fBrakSpace = True ' Put a space around brackets
fComSpace = True ' Put a space after comma
fDot = True ' Dots to spaces except for numbers & extension
fExtLCase = True ' Make extension lower case
fManga = False ' Add "0" before volume and chapter, i.e.: "Kenichi - v2 - c8 - 01.jpg" to "Kenichi - v02 - c08 - 01.jpg"
fMultiSpace = True ' Remove multiple spaces
fNumbers = False ' delete all numbers
fNumSpace = True ' add spaces between numbers and letters such as "v2.8.8example" results "v2.8.8 example" and "34copies" results "34 copies" but keep "323x56x76"
fOddChars = True ' Replace %20 with spaces
fScore = True ' Add space before and after a score "-"
fScore2 = True ' Replace"--" with "-"
fStripSpaces = True ' Strip leading/trailing spaces
fUnderscore = True ' Replace "_" with a space
fUnderscore2 = True ' Replace mutltiple "" with only one " "
fVersion = False ' Delete [version]1.0.0.8 (aka deletes "v." or "v") else it formats as "v1.0.0.8"
Capitalise
fTitleCase = True ' Convert to true titlecase
fParCap = True ' Capitalise after parenthesis
fDashCap = True ' Capitalise after a dash
fFullStopCap = True ' Capitalise after a full stop
fFirstNonNum = True ' Capitalise first non-numeric
Example:
(Links to Imageshack images broken. )
This script is very useful with this button .
TitleCasePlus.orp (23.2 KB)
3 Likes
Works well. I added Portuguese words to not capitalize to mine and made it capitalize after single quotes (this broke some cases for English that I still need to fix - e.g. 's and 'n).
I plan to change the "add space before and after a score "-"" function to prevent it from changing dates of the format 1970-01-01. Still did not made the code right for that. I'll try again latter.
This worked in Opus 13.14. It failed in Opus 13.14.2. I don't have a copy of Opus 13.14.1 so I can't test that version. It fails in Opus 13.14.6.
Chuck
April 5, 2025, 11:17pm
4
I have 13.14.1 and this is an issue there, as well. I think the problem is related to this thread: Rename broken after 13.14 - #9 by Chuck
Also may be an issue with vbscript rename presets as those seem to be a problem with 13.14.1 and on.
1 Like
lxp
April 6, 2025, 4:10am
5
It's probably the Opus 10 Rename_GetNewName legacy function that can't hide its age any longer.
Chuck
April 6, 2025, 1:38pm
6
Good catch! Please recommend an alternative, thanks!
lxp
April 6, 2025, 1:51pm
7
The original script has been updated to Opus 12 and even sports custom fields instead of script variables. If it's missing functionality, an update should be simple.
1 Like
Chuck
April 6, 2025, 2:11pm
8
I had overlooked that update. Works and modified for my use case, thanks!
Confirm that this rename preset works under Opus 13.14.7. Thank you.
Leo
April 8, 2025, 6:14pm
10
Yes, that was broken for VBScript rename scripts, but should work again now with the latest beta.