I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-05-28 01:03:20-07 by pixelpicker
Adding separator to keywords for languages...
Hello to all and special to Phil,

I would like to add a separator sign to every listed keyword, caption and headline for the images of a folder to be able to distinguish between languages.

The keyword list now looks like this: car, table, crunchy
and should be like this with the separator: | car, | table, | crunchy
This means I have to add the pipe to each list item of the keywords.
Same with catption and headline, which should afterwards look like this:
| blabla text in the caption
| blabla text in the headline.

I tried it with
exiftool -keywords -sep "|" DIR
but it didn't work - thought as much :) - likely this can be done with composite userdefined tags, but I have no clue what operation to construct.

Greetings from
Bette
Direct Responses: 10847 | Write a response
Posted on 2009-05-28 11:44:38-07 by exiftool in response to 10843
Re: Adding separator to keywords for languages...
Hi Bette,

Here is a config file for you:

%Image::ExifTool::UserDefined = ( 'Image::ExifTool::Composite' => { MyKeywords => { Require => 'Keywords', ValueConv => q{ my @list = ref $val eq 'ARRAY' ? @$val : ($val); $_ = "| $_" foreach @list; return \@list; }, }, MyCaption => { Require => 'Caption-Abstract', ValueConv => '"| $val"', }, MyHeadline => { Require => 'Headline', ValueConv => '"| $val"', }, } ); 1; #end

Read the config file documentation for details on how to install this file. Also, if you have problems read FAQ number 3 to be sure you are using the correct tag names.

- Phil
Direct Responses: 10848 | Write a response
Posted on 2009-05-28 15:33:10-07 by pixelpicker in response to 10847
Re: Adding separator to keywords for languages...
Ahhh! Thank you so much Phil!!!
Workds 1a! :)))
Have a good day.

Many Greetings
Bette
Direct Responses: Write a response