More "C2 Pa" capitalization

Started by Neal Krawetz, August 08, 2024, 11:38:48 AM

Previous topic - Next topic

Neal Krawetz

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

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).