|
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
|