Author Topic: Code Replacement Characters  (Read 2873 times)

Offline mklass

  • Sr. Member
  • ****
  • Posts: 377
    • View Profile
    • Mick Klass Photography
Code Replacement Characters
« on: October 28, 2012, 04:48:27 PM »
I have the code replacement deliniator set to "\". My code replacement looks up  the lens type {lt} and reads a more complete description from a code replacement file.  Instead of just returning the replacement text, it returns the text bracket with \ on each end as in \85mm f/1.4D Sigma\ instead of 85mm f/1.4 Sigma

This was working fine before the latest upgrade, or maybe I'm just missing something.

Win7 64-bit; PM5 version 13444

Mick

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Code Replacement Characters
« Reply #1 on: October 28, 2012, 07:30:28 PM »
Mick,

I have the code replacement deliniator set to "\". My code replacement looks up  the lens type {lt} and reads a more complete description from a code replacement file.  Instead of just returning the replacement text, it returns the text bracket with \ on each end as in \85mm f/1.4D Sigma\ instead of 85mm f/1.4 Sigma

This was working fine before the latest upgrade, or maybe I'm just missing something.

Please post your code replacement text file.

-Kirk

Offline mklass

  • Sr. Member
  • ****
  • Posts: 377
    • View Profile
    • Mick Klass Photography
Re: Code Replacement Characters
« Reply #2 on: October 29, 2012, 03:51:50 AM »
I think I found the problem.

It seems that PM5 is interpreting the lens information differently than V4.6 and generating a different entry for the lens type {lt}. In particular, AF lenses the also have VR have changed. For example, "AF VR Zoom 16-85mm f/3.5-5.6G IF-ED" now is "VR Zoom 16-85mm f/3.5-5.6G IF-ED", and the "AF VR Zoom 24-120mm f/4G IF-ED" is now the "VR Zoom 24-120mm f/4G IF-ED". Since I didn't have the new codes in my file, PM simply returned the original {lt} bracketed by \. Adding the new {lt} entries in the file solved the problem.

I guess I'll need to check my lenses to see what PM5 uses for the {lt} and add the new entries to the code replacement file.

Mick