Author Topic: Code Replacement Problem  (Read 7787 times)

Offline olidie

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Code Replacement Problem
« on: August 10, 2012, 03:49:38 AM »
Hi,

I encountered a problem with code replacement in v5. I use to following codes to quickly generate the date in the caption according to my agencies standards:
Code: [Select]
d      #{dow}# ({day0}.{month0}.{year4})
Monday         Montag
Tuesday        Dienstag
Wednesday      Mittwoch
Thursday       Donnerstag
Friday         Freitag
Saturday       Samstag
Sunday         Sonntag

#d# worked perfectly in v4 to write me the date in the wanted format - Freitag (10.08.2012). Unfortunately this does not work in v5 anymore. Nothing happens when I use this code replacement. Not completely nothing. I enlarged the font scale in the caption field to 150%. As soon as the code replacement is used, it jumps back to 100% but this also happend in v4.

Any idea to what the problem might be?

Regards
Oliver
(Win7 x64, PM v5 build 13158)

Offline Sven

  • Uber Member
  • ******
  • Posts: 1053
    • View Profile
Re: Code Replacement Problem
« Reply #1 on: August 10, 2012, 03:57:50 AM »
Hi Oliver!

I have nearly the same CR implemented.

I adopted your first line and indeed it doesn't work :(
As soon as typing #d# it gets replaced with an empty string.

Entering your "#{dow}# ({day0}.{month0}.{year4})" works as expected.

Tested on build 13158 on a Mac
Sven
After 5 years of absence I restarted the photography.

Offline olidie

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Code Replacement Problem
« Reply #2 on: August 10, 2012, 04:01:18 AM »
Same here. Just entering "#{dow}# ({day0}.{month0}.{year4})" works but not in combination with a delimiter character.

Offline Sven

  • Uber Member
  • ******
  • Posts: 1053
    • View Profile
Re: Code Replacement Problem
« Reply #3 on: August 10, 2012, 04:05:14 AM »
I just changed the "#" to a "+" and it gets a bit further.

entering "+d+" get replaced with the replacement string.
After closing the image the text is replaced as expected.

Sven
« Last Edit: August 10, 2012, 04:08:05 AM by SK-Foto »
After 5 years of absence I restarted the photography.

Offline olidie

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Code Replacement Problem
« Reply #4 on: August 10, 2012, 04:08:44 AM »
Thanks Sven but changing the delimiter character from # to + did not bring any improvment. Still the same beheaviour.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Code Replacement Problem
« Reply #5 on: August 22, 2012, 11:51:08 AM »
This problem should now be fixed.

http://forums.camerabits.com/index.php?topic=7679.0

-Kirk

Offline Sven

  • Uber Member
  • ******
  • Posts: 1053
    • View Profile
Re: Code Replacement Problem
« Reply #6 on: August 23, 2012, 05:29:34 AM »
confirmed for me.

Thanks Kirk!
After 5 years of absence I restarted the photography.