From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6IkrAxZwoWAEPAAAgWs5BA (envelope-from ) for ; Sun, 16 May 2021 21:18:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ONVsOhVwoWCqIQAAB5/wlQ (envelope-from ) for ; Sun, 16 May 2021 19:18:45 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D63EE147D7 for ; Sun, 16 May 2021 21:18:43 +0200 (CEST) Received: from localhost ([::1]:59242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liMHi-0001qG-QS for larch@yhetil.org; Sun, 16 May 2021 15:18:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liMGx-0001q7-IO for emacs-orgmode@gnu.org; Sun, 16 May 2021 15:17:55 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:37991) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liMGt-00054p-VJ for emacs-orgmode@gnu.org; Sun, 16 May 2021 15:17:55 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 22FE69FA for ; Sun, 16 May 2021 15:17:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 16 May 2021 15:17:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=DHGSvpcOh+KUisyVbazAwoiOUd HllKBqRxphrV7MAhA=; b=Om9kdNxfQAUu4FMKplbVRTmP51aULzT5vHLUkJb36p ivU8GEE6M0SSctVTVnYKyOgZKt3rCUHDFwXOZGHyHuw4e0aVPIQ1+PH9NuvC/GEI /j7UjQVT5S3n0eX8A9OZGerqVZ+yVM5RguCrEIugWsBQ+pUDy6ukT0BGZ9X/T+33 32q9QIFWp0ObGDbMFZEYur5aiwmFuCiOSvPWe86L/wvaFKee61EDl1Xpd53qe+zV g+wlpTM9zzNlqufoNNhBUc6hyw72X0ZJt6kS+pFF9wWI6nVH/c1EmbYjwDWgI9Fg vc30MUvJO3iH7+8xy2rCBhFyrNUGst5Sj6gj6Lzh+Itw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=DHGSvp cOh+KUisyVbazAwoiOUdHllKBqRxphrV7MAhA=; b=SoVRM/CuXMYdq/3PrS+7Rh udOZ1LUWZNeA/x/8/zt/1v8ZSVNXWG1+YgB3687wJax+K9YQ2nB4wmdga4vBOsW4 cvjmIBSjluIJ33umrj7dAyRPnQCT1RVVYc2v/fWqjNUoiy8i/0/Ycv7KrpXRh96b wtILFCwMOEYEsBdkwfhH037Ts7B1ocoqzUIhhRr9LggnI1ESqhNnzic9KI/zqp1Q miGpv65aR3P6ATP3/UzyNy+pIFfnT34ldT2fp6b1agluYKqfzDuZQiRHiUmLov4h Iw2OIyWgzPbjbbBpNZiRvrbepaY1VY1qDERc2jxh/5yMVfIPWMEiMkpBYI9a4Wrg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeifedgudeffecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufffjgfkgggtsehttd ertddtredtnecuhfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgv mhgvrhhssehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpedviefhteeuve ekudetheduieehvdelgfeijeehvdetfeegleelhefhjeduieejveenucfkphepfedurddu jedrvdehuddrudelleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Received: from Lenovo.fastmail.com (ip1f11fbc7.dynamic.kabel-deutschland.de [31.17.251.199]) by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 16 May 2021 15:17:49 -0400 (EDT) References: <87eee6zzlg.fsf@nicolasgoaziou.fr> <875yzizvm4.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.5.12; emacs 27.2 From: Joost Kremers To: emacs-orgmode@gnu.org Subject: Re: [org-cite] citekey restrictions? Date: Sun, 16 May 2021 20:49:27 +0200 In-reply-to: <875yzizvm4.fsf@nicolasgoaziou.fr> Message-ID: <87eee68p45.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.20; envelope-from=joostkremers@fastmail.fm; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621192725; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DHGSvpcOh+KUisyVbazAwoiOUdHllKBqRxphrV7MAhA=; b=ZtbDTTUGxKM7Or1bLXoOiQMkvJ6sErngKJ/CKExzyKy+wj/o2KH/jLUb22tnXNNuvMBHu9 ElQ3IF/WUjWC7juSERKqwfEK4x1V0RGUZjX+96GOkpDFZUl+oBorPReVeGy+uNDj1PgPSm lJDHxcvEtKadfG7ZDN+nuZ5RjKD9kMt5opKA2RikGb10ShCkiaN3r+77rEQF++xHfsDdhD BrT33nCVJeZJmT2+e9hnzmDD3OEulgyNgd531Z/sH+HCu6yDqUC4Me4/Wv1zcptkgJGeiu Qete6Azp15ynLN48gs3MG45aJFhI1PZMrZHUEJdVawINUoEzqeajNy5pjXB4tg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621192725; a=rsa-sha256; cv=none; b=nKveFR4M9uVAorEestDLgIduH1K7wOQMsHCKfoctF/EQHoxv88MQKErMwDtL72mGGwJfT9 1W0kfS0Qb9rWnuGaG9/ehG1wRRwjSGGT6rWYGgwV9hpfY+BXL7uLlxfZDqxm9zcNjuUkP6 hT6AxDSKTMXiIEupiA5DtMvMCGtiaY/0p4gEemQ7uplUtBeKBcLBASXzHdbvBxKDQi/Al6 +9Z53LsK5c4Sly8sexcogGNkVmzGzHWIi2fQ2vcgofKcDAbE7/ChAXlPuiO661UHUIeaR0 UDPUJopHnFlHdm3jLeNSrKepKzssHJ2AdO2kIdNu4KwR6dm8x6xqn0gdZ0KUqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.fm header.s=fm3 header.b=Om9kdNxf; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="SoVRM/Cu"; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.65 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.fm header.s=fm3 header.b=Om9kdNxf; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="SoVRM/Cu"; dmarc=pass (policy=none) header.from=fastmail.fm; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: D63EE147D7 X-Spam-Score: -0.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7+JxDCh1gvIN On Sun, May 16 2021, Nicolas Goaziou wrote: > However, allowing anything means some keys will not be compatible with > some bibliography formats. For example, I doubt BibTeX would appreciate > a percent character in a key. Careful, trying to find out the details of BibTeX's file format is a quest that I think no-one has ever returned from. :D I have a comment in =parsebib.el= saying that BibTeX allows $ ^ and & in entry keys, despite the fact that those characters are special in TeX... The regexp =parsebib.el= uses for entry keys is this: "[^\"@\\#%',={} \t\n\f]+" Mind you, I have no idea if BibTeX really rejects all these characters (well, I'm pretty sure about the white space... :D ), but even if they are acceptable, they probably don't occur much in the wild. At least I'm not aware of any user complaints since the time I added support for $^&, which was four years ago, > So... let's get liberal and say a key must match: > > (rx "@" (one-or-more (any word "-.:?!`'/*@+|()<>&_^$#%&~"))) > > Nothing bad could happen, right? On a scale of 1 to 10, 1 being getting an error message and having to go online to find out what it means, and 10 being the total and utter destruction of our solar system, I doubt it'll exceed 1. -- Joost Kremers Life has its moments