[Digikam-devel] Encoding for IPTC comments

Leonid Zeitlin lz at europe.com
Wed Feb 7 11:37:50 GMT 2007


Hi Gilles,
Thanks for your reply. I didn't realize the code was refactored since
0.9.0 release. I will get the latest from SVN and adapt my patch to
the new code.

Regarding the discussion in bug #132244. I tried setting
Iptc.Envelope.CharacterSet with exiv2 command-line utility and then
saving Iptc.Application2.Caption in UTF8 as described there. I've
found that both Photoshop and IrfanView didn't decode UTF and showed
it as is (unreadable), while Picasa simply didn't recognize the
presence of caption at all. I also saw that Picasa doesn't set
Iptc.Envelope.CharacterSet tag. Therefore I think my approach is
orthogonal to what is discussed there and still would be a good
feature.

I will get back to you once I update the patch to the latest code.

Thanks,
  Leonid

On 2/6/07, Caulier Gilles <caulier.gilles at kdemail.net> wrote:
> Hi Leonid,
>
> In first, thanks for your help. All contributions are very appreciate.
>
> Well, i know the IPTC char encoding problem. Look the bug report :
>
> http://bugs.kde.org/show_bug.cgi?id=132244
>
> .. and the solution is written in this report....
>
> About you patch, you must never use a stable inplementation to build a source
> code patch, but always the current implementation from svn. Look here :
>
> http://www.digikam.org/?q=contrib
>
> With the current implementation, i cannot use your patch directly, because i
> have created a new shared library named libkexiv2 witch is an Exiv2 interface
> for digiKam and kipi-plugins. This way remove all dupplicate code in
> Digikam::DMetadata class and KipiPlugins::Exiv2Iface class.
>
> The libkexiv2 is at the same place than kipi-plugins in svn :
>
> http://websvn.kde.org/trunk/extragear/libs/libkexiv2
>
> To apply the solution explained into #132244 bug report, the libkexiv2 need to
> be patched.
>
> Others part of your big patch sound good (widgets, settings, etc.). of course,
> i need to test it indeep (:=)))
>
> Please review again your patch. Thanks in advance for your help
>
> Regards
>
> Gilles Caulier
>



More information about the Digikam-devel mailing list