If I can just chip in here.
I just ran a test with a NEF file with hierarchical keywords embedded in it (as opposed to in an XMP sidecar file)
I used my own keywording app that is fully MWG compliant to prepare the file.
Embedded in RAW
Here is the ExifTool output for that file…
[XMP] Subject : Couleur, Orange, Entreprise, Télécommunications
[XMP] Hierarchical Subject : Couleur, Entreprise, Couleur|Orange, Entreprise|Télécommunications, Entreprise|Télécommunications|Orange
… and here is the ExifTool output for an exported JPEG…
[XMP] Subject : Couleur, Entreprise, Orange, Télécommunications
[XMP] Hierarchical Subject : Couleur, Couleur|Orange, Entreprise, Entreprise|Télécommunications, Entreprise|Télécommunications|Orange
Written to XMP sidecar
Now, I use my app to clear out the keywords from the NEF file and rewrite the same keywords to an XMP sidecar file…
<dc:subject>
<rdf:Bag>
<rdf:li>Couleur</rdf:li>
<rdf:li>Orange</rdf:li>
<rdf:li>Entreprise</rdf:li>
<rdf:li>Télécommunications</rdf:li>
</rdf:Bag>
</dc:subject>
…
<lr:hierarchicalSubject>
<rdf:Bag>
<rdf:li>Couleur</rdf:li>
<rdf:li>Entreprise</rdf:li>
<rdf:li>Couleur|Orange</rdf:li>
<rdf:li>Entreprise|Télécommunications</rdf:li>
<rdf:li>Entreprise|Télécommunications|Orange</rdf:li>
</rdf:Bag>
</lr:hierarchicalSubject>
Closing PL5, deleting the database and any DOP file, reopening PL5 and exporting to JPEG gives the following ExifTool output from the JPEG…
[XMP] Subject : Couleur, Entreprise, Orange, Télécommunications
[XMP] Hierarchical Subject : Couleur, Couleur|Orange, Entreprise, Entreprise|Télécommunications, Entreprise|Télécommunications|Orange
This is totally correct, as expected and MWG compliant.
@OXiDant @akirstein what are you using to write the original keywords and hierarchies and could you please post
- the
dc:subject
and lr:hierarchicalSubject
tags that you have before PL5 gets to touch them
- the
dc:subject
and lr:hierarchicalSubject
tags that you have after PL5 has done its thing