Bug 435267

Summary: Hierarchical Keywords
Product: [Applications] digikam Reporter: herb <herb.k>
Component: Metadata-XmpAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.2.0   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In: 7.3.0
Sentry Crash Report:

Description herb 2021-04-02 14:06:39 UTC
SUMMARY
Hierarchical keywords are written (depending on settings) to
- digiKam:TagsList
- MicrosoftPhoto:LastKeywordXMP
- lr:hierarchicalSubject
- mediapro:CatalogSets

For digiKam:TagsList and MicrosoftPhoto:LastKeywordXM the separator character is "/" and for the others it is "|".
Why does DigiKam use differnt characters?

Another question: Which characters are used as separator when all tags of a file are read?
In XnViewMP user has to select characters to be used as separator.

Best regards
herb


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2021-04-02 14:17:32 UTC
>For digiKam:TagsList and MicrosoftPhoto:LastKeywordXM the separator character is >"/" and for the others it is "|".
>Why does DigiKam use differnt characters?

Interroperability :

digiKam:TagsList -> internal uses, so we do do what we want.
MicrosoftPhoto:LastKeywordXM -> to work with M$ tools.
lr:hierarchicalSubject -> Light Room compatibility.

etc. These namespaces are not standardized in XMP definitions. Each program can write data in private format, but of course using XMP containers/rules.

The only section standardized in XMP are Exif, Iptc, Tiff, etc...

>Which characters are used as separator when all tags of a file are read?

The characters which is mostly used by the program generating data. It evaluated by reverse engineering, as these data are not standardized.

The way that Xnview can customize the separator is a error which make a mess in metadata. It's already difficult to have an homogeneous contents everywhere, no need to customize extra format for tags...

Best

Gilles Caulier
Gilles Caulier
Comment 2 Maik Qualmann 2021-04-02 14:27:05 UTC
You can deactivate the default metadata tags in the advanced metadata settings and create your own with other separators.

But as Gilles writes, you shouldn't do it if you want to exchange tags with other programs.

Maik
Comment 3 herb 2021-04-03 08:09:55 UTC
Hello,

thanks for your comments.
@maik: thanks for your private lession

Best regards
herb