Author Topic: PM 4.6.6 corrupts multiple sequential keyword expressions in Stationery Pad  (Read 1871 times)

Offline DaveTheC

  • Newcomer
  • *
  • Posts: 11
    • View Profile
This seems to be a continuation of http://forums.camerabits.com/index.php?topic=5169.0

I am using PM 4.6.6 on Windows 7 x32

I have a Stationery Pad that defines this expression to process the filename "donation2010_DEP03_05.tif"

{filenamebase:-13,4} Donations Deposit {filenamebase:-5,2} Page {filenamebase:-2,2}

And this, when applied, results in a caption of

2010 Donations Deposit 03 Page 05

Works great, so I do the same for the keywords:

SMCORG; {filenamebase:-000013,4}; Page_{filenamebase:-00002,000002}; deposit_{filenamebase:-000005,000002};
    DEPOSIT{filenamebase:-00005,00002}; Clinic; donation


Which should result in the keywords:

SMCORG; 2010; Page_05; deposit_03; DEPOSIT03; Clinic; donation

(Note that, per the previous posting, I have changed the keyword separator to semicolon)

When I save the Stationery Pad, and reopen it, the field changes to

SMCORG; {filenamebase:-000013,4},Page_{filenamebase:-00002,000002},deposit_{filenamebase:-000005,000002},DEPOSIT{filenamebase:-00005,00002}; Clinic; donation

which is really 4 keywords:
SMCORG
{filenamebase:-000013,4},Page_{filenamebase:-00002,000002},deposit_{filenamebase:-000005,000002},DEPOSIT{filenamebase:-00005,00002}
Clinic
donation


SO I edited it again, replacing the bad commas with " ;; ; ; ; ;; ;" thinking that multiple semicolons in a sequence with spaces might trigger the parser to behave...

Reload:
SMCORG; {filenamebase:-000013,4},Page_{filenamebase:-00002,000002}; deposit_{filenamebase:-000005,000002},DEPOSIT{filenamebase:-00005,00002}; Clinic; donation

Closer.

Now I moved the non-expression keywords between the expressions.
{filenamebase:-000013,4} ;  SMCORG  ; Page_{filenamebase:-00002,000002}; JUNK; deposit_{filenamebase:-000005,000002} ; donation ; DEPOSIT{filenamebase:-00005,00002}; Clinic;

Reload:
{filenamebase:-000013,4}; SMCORG; Page_{filenamebase:-00002,000002}; JUNK; deposit_{filenamebase:-000005,000002}; donation; DEPOSIT{filenamebase:-00005,00002}; Clinic

And now the string is saved. And the keywords are correct.
2011; SMCORG; Page_05; JUNK; deposit_03; donation; DEPOSIT03; Clinic

I think you might still have a problem with parsing multiple keyword expressions.

Thanks for a great program!

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24764
    • View Profile
    • Camera Bits, Inc.
Dave,

This seems to be a continuation of http://forums.camerabits.com/index.php?topic=5169.0

I am using PM 4.6.6 on Windows 7 x32

I have a Stationery Pad that defines this expression to process the filename "donation2010_DEP03_05.tif"

{filenamebase:-13,4} Donations Deposit {filenamebase:-5,2} Page {filenamebase:-2,2}

And this, when applied, results in a caption of

2010 Donations Deposit 03 Page 05

Works great, so I do the same for the keywords:

SMCORG; {filenamebase:-000013,4}; Page_{filenamebase:-00002,000002}; deposit_{filenamebase:-000005,000002};
    DEPOSIT{filenamebase:-00005,00002}; Clinic; donation


Which should result in the keywords:

SMCORG; 2010; Page_05; deposit_03; DEPOSIT03; Clinic; donation

(Note that, per the previous posting, I have changed the keyword separator to semicolon)

When I save the Stationery Pad, and reopen it, the field changes to

SMCORG; {filenamebase:-000013,4},Page_{filenamebase:-00002,000002},deposit_{filenamebase:-000005,000002},DEPOSIT{filenamebase:-00005,00002}; Clinic; donation

which is really 4 keywords:
SMCORG
{filenamebase:-000013,4},Page_{filenamebase:-00002,000002},deposit_{filenamebase:-000005,000002},DEPOSIT{filenamebase:-00005,00002}
Clinic
donation


SO I edited it again, replacing the bad commas with " ;; ; ; ; ;; ;" thinking that multiple semicolons in a sequence with spaces might trigger the parser to behave...

Reload:
SMCORG; {filenamebase:-000013,4},Page_{filenamebase:-00002,000002}; deposit_{filenamebase:-000005,000002},DEPOSIT{filenamebase:-00005,00002}; Clinic; donation

Closer.

Now I moved the non-expression keywords between the expressions.
{filenamebase:-000013,4} ;  SMCORG  ; Page_{filenamebase:-00002,000002}; JUNK; deposit_{filenamebase:-000005,000002} ; donation ; DEPOSIT{filenamebase:-00005,00002}; Clinic;

Reload:
{filenamebase:-000013,4}; SMCORG; Page_{filenamebase:-00002,000002}; JUNK; deposit_{filenamebase:-000005,000002}; donation; DEPOSIT{filenamebase:-00005,00002}; Clinic

And now the string is saved. And the keywords are correct.
2011; SMCORG; Page_05; JUNK; deposit_03; donation; DEPOSIT03; Clinic

I think you might still have a problem with parsing multiple keyword expressions.

Thanks for a great program!


If you look back at that other thread, I managed a fix for the next version (4.6.7) of PM.  I expect issues as you have reported to continue in 4.6.6.  We're going to put out a new 4.6.7 beta today.  So please download it later today and try your issue again.

Thanks,

-Kirk