photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: PandDLong on March 25, 2021, 11:05:19 PM

Title: Upper Case For First Letter In Each Word
Post by: PandDLong on March 25, 2021, 11:05:19 PM

I thought I came across a function (or argument) that would take a text string and set the first letter in each word to upper case.  (ie. "Change this sentence's look" to "Change This Sentence Look").  I even scratched a note to myself and come back to see how to use it.

Now I can't find it.   

Perhaps I was dreaming and there is no such capability?

Title: Re: Upper Case For First Letter In Each Word
Post by: Mario on March 25, 2021, 11:26:52 PM
Data-driven categories have an option for this.
Title: Re: Upper Case For First Letter In Each Word
Post by: PandDLong on March 26, 2021, 09:20:58 PM

Got it - thanks for the quick response.  I was hoping there was a way to rewrite my file titles in this style - but alas - I will do so manually or just leave it as-is.

Michael
Title: Re: Upper Case For First Letter In Each Word
Post by: Aubrey on March 26, 2021, 10:21:50 PM
Sounds relatively simple to do with a ten line app. (always needs more than 10 lines though)

How many files do you have?

Just thinking if it's worthwhile to do....
Aubrey.


Title: Re: Upper Case For First Letter In Each Word
Post by: jch2103 on March 26, 2021, 10:50:11 PM
Another alternative is Bulk Rename Utility https://www.bulkrenameutility.co.uk/. Free, and it easily allows changing file name case to 'Title' (i.e., initial caps for each word). Very handy program for occasional difficult/odd renaming jobs. Among other things, it support regular expressions.
Title: Re: Upper Case For First Letter In Each Word
Post by: loweskid on March 27, 2021, 01:30:06 AM
I'm sure the OP will correct me if I'm wrong but I assumed the question was about the text in the 'Title' field, not the file name.

If so, one option would be to export as a CSV file to a spreadsheet*, use that to capitalise the initial letter of each word, then import it back into IMatch.

* I don't use it if I can possibly avoid it but I know it can be done with Excel.
Title: Re: Upper Case For First Letter In Each Word
Post by: Mario on March 27, 2021, 08:37:41 AM
Mhm...

One way to do this (if this is a one-time only operation) would be to:

1. Create a data-driven category based on the title tag.
2. Enable the option "Unify spelling" with "First lettter upper case"
3. Use the Metadata Mechanic to copy the name of the category containing the file into the title tag

Not sure how often users run into this particular problem. I could add an option for this to the Metadata Mechanic (https://www.photools.com/help/imatch/#app-md-mechanic.htm) app if this is needed often.
Let me know via a feature request.

Forget it. I have added new functions to the Metadata Mechanic: "To Uppercase", "To LowerCase  and "Capitalize".
Starting with "London tower bridge" they produce "LONDON TOWER BRIDGE", "london tower bridge" and "London Tower Bridge".

@PandDLong: Contact me via support email address (https://www.photools.com/support/) if you need this change now. I send you the updated app.
Title: Re: Upper Case For First Letter In Each Word
Post by: PandDLong on March 29, 2021, 12:46:51 AM
Fabulous - lucky me.  I will send an email.

Thanks so much
Title: Re: Upper Case For First Letter In Each Word
Post by: PandDLong on March 29, 2021, 05:42:53 AM
Quote from: loweskid on March 27, 2021, 01:30:06 AM
I'm sure the OP will correct me if I'm wrong but I assumed the question was about the text in the 'Title' field, not the file name.

If so, one option would be to export as a CSV file to a spreadsheet*, use that to capitalise the initial letter of each word, then import it back into IMatch.

* I don't use it if I can possibly avoid it but I know it can be done with Excel.

I should have answered - you are quite right.  It was about the 'Title' field - as I used it as part of my file name I mistakenly called it 'File Title' in my post.

Looks like Mario has a solution - otherwise I would have looked into the export/import idea.

Thanks for the suggestion.