From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ICOOKmEboWAIMgEAgWs5BA (envelope-from ) for ; Sun, 16 May 2021 15:17:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uKPTJWEboWAGGgAA1q6Kng (envelope-from ) for ; Sun, 16 May 2021 13:17:21 +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 14CF514568 for ; Sun, 16 May 2021 15:17:21 +0200 (CEST) Received: from localhost ([::1]:34602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liGdz-0006XY-NY for larch@yhetil.org; Sun, 16 May 2021 09:17:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liGIo-000370-8I for emacs-orgmode@gnu.org; Sun, 16 May 2021 08:55:26 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:41557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liGIk-0002hf-UH for emacs-orgmode@gnu.org; Sun, 16 May 2021 08:55:25 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 61835FF802; Sun, 16 May 2021 12:55:16 +0000 (UTC) From: Nicolas Goaziou To: "Bruce D'Arcus" Subject: Re: [org-cite] citekey restrictions? References: <87eee6zzlg.fsf@nicolasgoaziou.fr> Mail-Followup-To: "Bruce D'Arcus" , org-mode-email Date: Sun, 16 May 2021 14:55:15 +0200 In-Reply-To: (Bruce D'Arcus's message of "Sun, 16 May 2021 07:41:36 -0400") Message-ID: <875yzizvm4.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.199; envelope-from=mail@nicolasgoaziou.fr; helo=relay9-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=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: , Cc: org-mode-email 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=1621171041; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=TNKcq2zAhn3yxbwbDnLPbAYkiwDIefoVR0mba92/vds=; b=YnZ4ZSukw8l+DTQ2hpeLlsrL+NywnuA965VO8E1yNTrZ3mgzusKjSC+0smNjaAp2TkVrFs QocwknW0n9T8eMIJPlBuXpIr66H4YkrlGy5oSCVUdqJKkgg8El+wknK6SF34HIyyhPb4/L V+CjRci2nj5fbJViRU7Z0fmaCN9Bulx8cSvDqBvLnD5LMjW9yGV/CKO4vjyuxgQ423ORAE dOBF21c1OBhnnS+W/YI8n25iUqcA6O2neg7MNvo7T4AfHpwx6PppGM3ADIHAe2kvDtVruR 8IljJL6gyNxtzLDtbKfxgIUQS0Df/jaVgdDhqfxIFCW5eBllpmjBSxGSdD7O8Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621171041; a=rsa-sha256; cv=none; b=Qsj+OUX7pMjPSBrEckMuf6cu840n+bSSgOzttoytpfqFHhwQ/Cpk6wpTgChnuMNVcFtTeB M7kOH+QqsGFLIXx0MGDMpqnxLv1XfnjDr3YVaQfOV285uHrtdCqztaMrzpv2TQUQPV9uKr LXXc9eKwhJazUb/+AayoXEjQV+daWAcx/aDcu0fNP7P820wYmnQJKFFF7ZHw40Aa3pbRA+ 7y+UDub6HG1m+/rhrDcWTpobxee+WSqD6QcPjpMeqSqYiONNe5YqzJIrqoFVGwfqq1euo8 K9Svq/e8khV9esrc5qS1iYR5LD5jpv74JW3ktCpJ2HUyN2C2IBdxKYHNurnGZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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.05 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 14CF514568 X-Spam-Score: 0.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: rPwYZu9/IPRE "Bruce D'Arcus" writes: > I'm not super sure of the details around, for example, bibtex, but > this post seems to be helpful to check against for the details? > > https://tex.stackexchange.com/questions/388500/what-is-valid-as-a-biblate= x-entry-key/388652#388652 Oh my! You're reviving a 6 years old thread[=C2=B9]! Basically, current syntax is inherited from a previous citation specification allowing shortcuts: @key instead of [cite:@key]. Since these shortcuts do not exist anymore, we don't need to be so careful about characters allowed in a key. The only one being dangerous is the semicolon, since it is used to separate keys in a citation reference. Closing square bracket could also be problematic if it is not paired properly. So, to be on a safe side, anything beside space, semicolon and square brackets are fine. 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. OTOH, we can put the burden of the user's shoulders. So... let's get liberal and say a key must match: (rx "@" (one-or-more (any word "-.:?!`'/*@+|()<>&_^$#%&~"))) Nothing bad could happen, right? [=C2=B9] https://lists.gnu.org/archive/html/emacs-orgmode/2015-03/msg00131= .html --=20 Nicolas Goaziou