Posted on 2009-05-05 14:31:08-07 by pixelpicker in response to 10596
Re: Separating languages in keywords & caption...
Hello Phil! Hope you had a wonderful vacation - welcome back :)

Yes, I have to do something to separate the language-keywords.
Cause its not possible to write the two languages completely into the XMP it makes no sense to use XMP. Sad.
Half the way I found a solution:
I use your unser-defined tags with the config-file. For the caption it looks like this:

MyCaptionB => { Require => 'Caption-Abstract', ValueConv => q{ $val=~s/([^\|]*)\| .*/\1/ ? $val : undef }, },

This script cuts everything after the separator | as it looks up to now. (I say "looks" cause I found the command
s/([^\|]*)\| .*/\1/
in the net and after experimenting it seems to work.)

What remains is a script to cut vice versa: cut everything before |

One could use the double keyworded images for storing and when a language is needed one could create a copy of the image an delete the not needed language in this new image. The command for copying and deleting after the | should look something like this:

exiftool -o DIR "-caption-abstract<mycaptionb" DIR


Do you have any clue how to cut vice versa?

Many greetings
pixelpicker
Direct Responses: 10600 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.