Author Topic: Capitalize iptc variables  (Read 5503 times)

Offline smorgan42

  • Newcomer
  • *
  • Posts: 27
    • View Profile
Capitalize iptc variables
« on: May 19, 2015, 10:44:20 AM »
This is a request for a feature that I don't think exists.

I have to include datelines in my captions like this:
STATE NAME, STATE - MONTH DATE: (In all caps)
I would very much like to have {city}, {state} - {iptcmonth} {iday}:, but the style is to have the dateline be in all caps, where the locations and month are just capitalized. Is there a way to add {citycap}, {statecap} and {iptcmonthcap} to have all caps versions of those variables?

Thanks

Offline Odd Skjaeveland

  • Full Member
  • ***
  • Posts: 188
    • View Profile
Re: Capitalize iptc variables
« Reply #1 on: May 19, 2015, 01:37:24 PM »
Is there a way to add {citycap}, {statecap} and {iptcmonthcap} to have all caps versions of those variables?

String functions lc, UC and PC may provide the case conversion(s) you need. Try {city:UC} , {city:0:UC} and {city:3:UC} just to see what the upper case function can do for you.

--
Odd S.
--
Odd S.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: Capitalize iptc variables
« Reply #2 on: May 19, 2015, 03:18:50 PM »
This is a request for a feature that I don't think exists.

I have to include datelines in my captions like this:
STATE NAME, STATE - MONTH DATE: (In all caps)
I would very much like to have {city}, {state} - {iptcmonth} {iday}:, but the style is to have the dateline be in all caps, where the locations and month are just capitalized. Is there a way to add {citycap}, {statecap} and {iptcmonthcap} to have all caps versions of those variables?

Here is the documentation for the feature you've requested:

http://wiki.camerabits.com/en/index.php?title=User_Manual_Flat_View#Variable_Substring_Extraction

-Kirk

Offline smorgan42

  • Newcomer
  • *
  • Posts: 27
    • View Profile
Re: Capitalize iptc variables
« Reply #3 on: May 31, 2015, 07:48:11 AM »
Sorry for the delay but thank you! I appreciate the info.

Scott