Another Adobe Bug or...?
Pipian
pipian at pipian.com
Sun Apr 6 23:43:17 PDT 2008
While fiddling around with Exempi and alternate language blocks, I
noticed a curious habit of exempi automatically changing a localized
string to the default string IF AND ONLY IF there are only two
localizations, and one of them is the default (i.e. xml:lang="x-
default"). This is a bit curious, and also appears in Adobe's
implementation in Photoshop CS3. I'm not sure if this is what we want
though...
Shouldn't specified localizations be as they're given, even if the
default isn't the same as say, the "french" localization, or is it a
quirky aspect of the Adobe spec (it doesn't seem to be)?
I've attached a file that exhibits this problem (It SHOULD have two
alternate renderings of dc:title, "Blue Square Test File - .jpg" in "x-
default" and "Carré Bleu Test File - .jpg" in "fr-FR", but it instead
has "Blue Square Test File - .jpg" as the "fr-FR" translation as well).
I've also attached a proposed patch to the 2.0.0 branch that fixes
this bug (in the upstream source/XMPCore/XMPCore_Impl.cpp file). My
apologies for not sending this patch in a more 'Adobe'-friendly manner
(I just did a git diff). I forgot the method to do so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmp.jpg
Type: image/jpeg
Size: 24205 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/exempi-devel/attachments/20080407/f8faedc1/attachment-0001.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lang-default.patch
Type: application/octet-stream
Size: 403 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/exempi-devel/attachments/20080407/f8faedc1/attachment-0001.obj
More information about the Exempi-devel
mailing list