ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Neal Krawetz on August 08, 2024, 11:38:48 AM

Title: More "C2 Pa" capitalization
Post by: Neal Krawetz on August 08, 2024, 11:38:48 AM
Entries C2 Pa Ai Generative Training Use   notAllowed
Entries C2 Pa Ai Inference Use   notAllowed
Entries C2 Pa Ai Training Use   notAllowed
Entries C2 Pa Data Mining Use   constrained
Entries C2 Pa Data Mining Constraint Info   Contact [REDACTED] for more information

Perhaps a regex that keeps "\bC2PA\b" as "C2PA" and "\bAi\b" as "AI"?

Sample image:
https://ipfs-pin.numbersprotocol.io/ipfs/bafybeigmvtek7gce3ikttvs6iajedvigcftziqpgnruq2a56u4cupo5nee
Title: Re: More "C2 Pa" capitalization
Post by: Phil Harvey on August 08, 2024, 02:31:30 PM
Hi Neal,

Thanks for this, but I don't think I want to do anything about it.

The problem here is the leading "Entries".  The routine in question receives a tag with ID like "entriesC2Pa.Ai_Generative_TrainingUse", so there is no word boundary before "C2Pa" and "\b" won't work.  I resist generalizing this to s/C2Pa/C2PA/ because it could break other perfectly valid tag names.

I think I would rather just leave this rather than hack another patch.

And I won't even get into changing "Ai" to "AI".

If C2PA is going to use all lower case for their tag ID's, then they will have to put up with some case problems in the generated tag names.

- Phil