A few months ago, frustrated with Lightroom's generally plodding nature when doing keywording, I decided to try moving that step over to PM, which I was already using for import. I exported my keywords from Lightroom and imported them into PM with no issue, and setup up PM in a way that (I thought) would maximize compatibility between the two, as I wanted to continue using Lightroom's DAM capabilities. Specifically, I set PM to use the | character to denote a keyword hierarchy, as that is read by Lightroom by default (though you can also define a couple other characters if you wish).
Since I was going back and keywording a lot of historical shots (back to 2003, when I started shooting digital), I would do a few months' worth, and then tell Lightroom to read the metadata from the files (everything is using XMP sidecars). I noticed an issue at the time, but didn't really figure out what was going on until yesterday. When I imported a batch of photos, keywords that were already in an established hierarchy in Lightroom were coming in separated from that hierarchy. For instance, if I had already defined Birds | Raptors | Hawks | Red-tailed Hawk in Lightroom, if I read in metadata with that hierarchy applied in PM, it created a second "Birds" top-level keyword, instead of using the established one.
Having finished most of my keywording, I sat down yesterday to reimport all of the metadata in Lightroom, and the whole thing just spiraled out of control. Duplicate entries everywhere. After trying to put things back together, it finally occurred to me what had happened when Lightroom popped up a message about not using leading or trailing spaces in keyword hierarchies. Sure enough, the "duplicate" top-level keywords all had a trailing space after the keyword, and all other keywords that had been applied in PM had similar issues. If a keyword was in the middle of a hierarchy, it would have leading and trailing spaces; if it was the last keyword in a hierarchy, it would have only a leading space.
I can't see any way to force PM to omit the spaces that it's inserting in the hierarchies that it creates in the Structured Keywords panel - I have checked the file that I exported from Lightroom, and there are no leading or trailing spaces in the file. Is there something I'm missing? If not, could we have a setting somewhere that could omit the spaces in keyword hierarchies going forward?
I'm running a Mac Pro with OS X 10.5.7, 9GB of RAM, using Lightroom 2.4 and PM 4.6.1.
Thanks for any assistance you can provide.