View previous topic :: View next topic |
Author |
Message |
W4tch3r
Joined: 26 Aug 2008 Posts: 1
|
Posted: Tue Aug 26, 2008 1:21 am Post subject: Title case for quoted strings in filename |
|
|
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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Tue Aug 26, 2008 3:42 am Post subject: |
|
|
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 |
|
 |
|