From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 328A7158089 for ; Fri, 15 Sep 2023 10:15:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 913E42BC03E; Fri, 15 Sep 2023 10:15:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5787A2BC024 for ; Fri, 15 Sep 2023 10:15:42 +0000 (UTC) From: Ulrich Mueller To: Alexander Neuwirth Cc: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] metadata.xml upstream docs as reference to scientific publications/papers In-Reply-To: (Alexander Neuwirth's message of "Fri, 15 Sep 2023 11:31:24 +0200") References: Date: Fri, 15 Sep 2023 12:15:37 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain X-Archives-Salt: 4536e70d-99be-4b61-a6f0-f4dd3e7dd201 X-Archives-Hash: 4868047d832578eb01881259b1dd0e3a >>>>> 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 > |https://doi.org/...|. 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