>>>>> On Fri, 15 Sep 2023, Alexander Neuwirth wrote:

> I am looking for a way to link scientific publications to
> ebuilds/packages. The easiest, but hacky way right now is to use the 
> |<doc lang="doi">https://doi.org/...</doc>|. Integration with
> |epkginfo|/|equery meta| works nicely out of the box. However,
> currently |pkgcheck| and/or the XML format complains about repeated
> |lang| entries and does not allow long |lang| attributes (i.e.
> |lang="inspirehep"| fails understandably).

Please don't do this. The lang attribute is of type xs:language [1]
so it must be a valid BCP 47 language tag.

As a matter of fact, "doi" happens to be a valid tag for the Dogri
language [2], but this isn't helpful either.

[1] 
https://gitweb.gentoo.org/data/xml-schema.git/tree/metadata.xsd?id=db829cfdb40ae0a0034848cce38ee741a7c8d68c#n257
[2] https://www.loc.gov/standards/iso639-2/php/langcodes_name.php?code_ID=117

Reply via email to