Author Topic: Multiple text replacement files in Preferences  (Read 5760 times)

Offline FairfieldPhoto

  • Full Member
  • ***
  • Posts: 236
    • View Profile
    • Fairfield Photography, LLC
Multiple text replacement files in Preferences
« on: September 21, 2006, 08:11:12 AM »
Hi!

I noticed that you can now have multiple text replacement files defined in the preferences section.

Save me some trial/error time.  How does PM use multiple files?  Does it internally concatenate the text or do I get to choose which one I want searched?

I can see the benefit of first option if one file is the home team roster and the second file is the visiting team roster.

For my equestrian shows, I have a code replacement file for the events (class # and class name) and the riders/horses (rider # and rider name).  Is there any way to have two (or more) categories of text replacement active at the same time so I can have class #/name replaced in one IPTC field and rider #/name replaced in a different one without have to make two passes and change files in between?

-Mike

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: Multiple text replacement files in Preferences
« Reply #1 on: September 21, 2006, 09:07:29 AM »
Mike,

I noticed that you can now have multiple text replacement files defined in the preferences section.

Save me some trial/error time.  How does PM use multiple files?  Does it internally concatenate the text or do I get to choose which one I want searched?

It parses through each file in order and adds the codes and the replacements as it processes them.  Collisions are handled in the following way:if file A has code x24 and file B has code x24 then the replacement for file B will be used.  It is of course best to use unique codes for each file.

Quote from: FairfieldPhoto
I can see the benefit of first option if one file is the home team roster and the second file is the visiting team roster.

For my equestrian shows, I have a code replacement file for the events (class # and class name) and the riders/horses (rider # and rider name).  Is there any way to have two (or more) categories of text replacement active at the same time so I can have class #/name replaced in one IPTC field and rider #/name replaced in a different one without have to make two passes and change files in between?

Just use slightly different codes for the two types of replacements, like for class #, append a 'c' onto the codes.  For the rider #, append a 'r onto the codes, like so:

12c[tab]class 12
12r[tab]rider 12

That should do it.

HTH,

-Kirk