Author Topic: Structured keyword list seriously messed up.  (Read 4380 times)

Offline rcohn

  • Full Member
  • ***
  • Posts: 131
    • View Profile
Structured keyword list seriously messed up.
« on: March 15, 2008, 06:20:18 PM »
I just started PM and opened the Structured Keywords list and found it damaged! Many of the main categories appear to be missing, and there are many keywords loose at the main level. It appears that all or almost all of the keywords I have added to the list are now the loose ones. I'm not aware of anything that has happened which would cause this.

Is there any explanation? This is really very disconcerting.

I looked at the file "StructuredKeywords_UTF-8.txt" in the "com.camerabits.PhotoMechanic" and I can see that the keywords in question appear out of their positions. I replaced this file with a backup from before the file became damaged and it appears OK (except for missing the keywords I added after this backup). I still don't understand how this happened or how the words I added could even be distinguished from the words that I didn't add.

Any ideas?

Ric Cohn
« Last Edit: March 15, 2008, 06:49:58 PM by rcohn »

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Structured keyword list seriously messed up.
« Reply #1 on: March 15, 2008, 07:04:27 PM »
Ric,

I just started PM and opened the Structured Keywords list and found it damaged! Many of the main categories appear to be missing, and there are many keywords loose at the main level. It appears that all or almost all of the keywords I have added to the list are now the loose ones. I'm not aware of anything that has happened which would cause this.

Is there any explanation? This is really very disconcerting.

I looked at the file "StructuredKeywords_UTF-8.txt" in the "com.camerabits.PhotoMechanic" and I can see that the keywords in question appear out of their positions. I replaced this file with a backup from before the file became damaged and it appears OK (except for missing the keywords I added after this backup). I still don't understand how this happened or how the words I added could even be distinguished from the words that I didn't add.

Any ideas?

No, but do you still have the 'damaged' version of the file?  I'd like to see it.

-Kirk


Offline rcohn

  • Full Member
  • ***
  • Posts: 131
    • View Profile
Re: Structured keyword list seriously messed up.
« Reply #2 on: March 16, 2008, 09:17:24 AM »
Kirk,

I'll send you a copy of the file. I believe I figured out some of the problem, but not the cause. I have been saving my list of added keywords as a separate word document, and I recently made a copy to send to someone. It appears that this list was somehow copied into my PM list and redistributed alphabetically. This explains why the "garbage" appears to match my list of added keywords.

I suspect user error, but I'm not sure how I accomplished it. I suspect it has to do with the "copy" and "paste" keys in the Keywords Panel. I hadn't thought about this before, but does this feature just use the computer's clipboard? It may be that I somehow copied my text file and then pasted within PM into the Keywords list?

Thanks.

Ric

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Structured keyword list seriously messed up.
« Reply #3 on: March 16, 2008, 10:52:14 AM »
Ric,

I'll send you a copy of the file. I believe I figured out some of the problem, but not the cause. I have been saving my list of added keywords as a separate word document, and I recently made a copy to send to someone. It appears that this list was somehow copied into my PM list and redistributed alphabetically. This explains why the "garbage" appears to match my list of added keywords.

I suspect user error, but I'm not sure how I accomplished it. I suspect it has to do with the "copy" and "paste" keys in the Keywords Panel. I hadn't thought about this before, but does this feature just use the computer's clipboard? It may be that I somehow copied my text file and then pasted within PM into the Keywords list?

It does not use the OS clipboard.

Are you certain you didn't edit the file (that PM uses) with a text editor, or worse, Word?

If you can come up with a set of instructions I can follow to reproduce the problem then perhaps I can add some code to PM to make sure that it doesn't happen again.

-Kirk


Offline rcohn

  • Full Member
  • ***
  • Posts: 131
    • View Profile
Re: Structured keyword list seriously messed up.
« Reply #4 on: March 16, 2008, 12:59:27 PM »
It does not use the OS clipboard.

Are you certain you didn't edit the file (that PM uses) with a text editor, or worse, Word?

If you can come up with a set of instructions I can follow to reproduce the problem then perhaps I can add some code to PM to make sure that it doesn't happen again.

I definitely didn't open the PM file and edit it. My skills aren't good enough to drop them in and have the list resort alphabetically; much less keep the proper levels that I would do if I knew how.<g> I have been adding keywords while working in the Structured Keyword list by Control-clicking on the word I want to create a "Child item" or a "Synonym" for-- which seems to do a good job of adding the notations needed to maintain the structure.

Sometimes I'll copy and paste a word (after checking spelling for example) rather than re-type it. This is the only point I can think of that would cause anything like this to happen, which is why I asked about whether PM uses the Clipboard. In this sense PM does use it, so maybe it still has to do with my pasting in a list by mistake.

Sorry I can't be more specific. If it happens again maybe I'll be more aware of what happened right before it happened, and I'll definitely let you know.
« Last Edit: March 16, 2008, 01:03:37 PM by rcohn »