Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (http://www3.telus.net/pfrank)
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Title case for quoted strings in filename

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions
View previous topic :: View next topic  
Author Message
W4tch3r



Joined: 26 Aug 2008
Posts: 1

PostPosted: Tue Aug 26, 2008 1:21 am    Post subject: Title case for quoted strings in filename Reply with quote

Hi,
I'm using v2.22 and I can't figure out how to generically change quoted strings to Title Case. For example

'global' club mix.mp3 --> 'Global' Club Mix.mp3

I am trying to use the "Title Case In" predefined command, but I can't get it working (its skipping the quoted strings). I was hoping "Title Case In All" could be filtered with a search pattern (eg Search:'[0-9A-Za-z]' Replace:"Title Case In All") but thats not working for me. What is the easiest way to achieve this please (without naming the strings explicitly),

Thanks.
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Tue Aug 26, 2008 3:42 am    Post subject: Reply with quote

PFrank doesn't ignore quote characters in title case mode. It will, however, skip over brackets because they are assumed to be paired whereas quotes are not necessarily paired.
i.e. It wouldn't make sense to capitalize something like "isn't' to "isn'T"

I'll think about modifying PFrank to handle words that are quoted within a pair of quotes. For now I made a plugin which can be found at:

http://www3.telus.net/pfrank/PFrank_CapitalizeQuotedWord_Plugin.py

Just rename the plugin to PFrankUser.py and copy it to the PFrank install folder (usualy under c:\Program Files\PFrank).
When you start PFrank, the plugin command will be available at the top of the Pre-Defined Command pull-down menu.
The plugin will only convert the first quoted word it finds. If you think there will be names with mutliple quoted words, then just enter the command into the custom creator list multiple times.

Let me know how it works out!

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com