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 0EX1DfS8OGE+2AAAgWs5BA (envelope-from ) for ; Wed, 08 Sep 2021 15:39:00 +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 AJKCCfS8OGFmMgAA1q6Kng (envelope-from ) for ; Wed, 08 Sep 2021 13:39:00 +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 9BC8325D64 for ; Wed, 8 Sep 2021 15:38:59 +0200 (CEST) Received: from localhost ([::1]:41916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNxn0-0008QT-Mx for larch@yhetil.org; Wed, 08 Sep 2021 09:38:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNxlY-0008Pb-2T for emacs-orgmode@gnu.org; Wed, 08 Sep 2021 09:37:28 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:8566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1mNxlR-0003wy-ML for emacs-orgmode@gnu.org; Wed, 08 Sep 2021 09:37:27 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4H4NV564btzQkFM; Wed, 8 Sep 2021 15:37:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :date:date:message-id:subject:subject:from:from:received; s= mail20150812; t=1631108235; bh=of0+9P18dHVvVXZS9/XA85pRs+IvIPbum XglZmDOgng=; b=Gs4K5A9sD31MKqFN5hoBFYxUGXRceLWvxa22vX2u7/l7/+ec4 r4GMfI1JinlCEfHFm0GIg7BSYqW1sMISprY4FvXi98zGcTBURdJVPiiggEohv0b2 oUelj7kjeCuQSNfco7uD8jMSguwSAfDJA8mV/IlgH85IpGJTrZYzf4R8/EoYxDYx FQIfu9wXnkvefxtSTcQK+/h/gIUpmsjvo9aOFx5kWlHV3tnbU00hpM4kj8NIH3WU kb+smriqWkJ90jWNa4F+fmRJN5w7gWNa52fDRzl8PnFLce69g1BulD7RTjTtWfeL hnYbODnI8T4AUYDo06qhTpUfSNotEoDTuG7uw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1631108236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yzVHriix1Y+N4aY+vNyY3QT4jxJSvppq4lXL2Eixn1A=; b=oly9BbcihG/lRUpcWPKIhLWRYxr+ihg47lHtbBfoxAsorRE4eQmimVV2blWlWhWSdzH/+v aL9HO75nlg4FHUDoGgWw00hz7Izj0so53PXrJSdgKeXSmce81LGfzCjyk9plDPLEambphM hrRLNVDDwymO2XhfuLbIXk2DSfomI+NgCXMRIDF8iRFp+9sWgXMlY3HbGShuokZQG/TMp+ aeLMTeHa0Z/XLwtzb5UUZarNCIqF0wD/NJxJt9iWGb0ExrnFtt3ZouvRhx9B+3zKBOyC3Y ZM43l5d2rf5mdnSUX2bADG/EBJ9/a7o5t6+ET0sc5wJS8vWeCND9HQReSwdDeQ== X-Virus-Scanned: amavisd-new at heinlein-support.de To: Org Mode List , Elias Bounatirou From: Denis Maier Subject: Suggestions for improved suffix parsing in oc-biblatex Message-ID: Date: Wed, 8 Sep 2021 15:37:15 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 2A39D18B4 Received-SPF: pass client-ip=80.241.56.172; envelope-from=denismaier@mailbox.org; helo=mout-p-202.mailbox.org 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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: , 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=1631108339; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=yzVHriix1Y+N4aY+vNyY3QT4jxJSvppq4lXL2Eixn1A=; b=Hm/9t4FO3rp8vM2nuNYETAAmfABzENp/uFmH9lN1ACqjnGRY61xmxx1hzy0R5Ox4t9xfRG n954sZIvsMvOauUN5ZWHgpxxhHQWXA7bufL6RVB9dgPb+rpHRPNZM5dafHkPoKXnoVyI65 OqPDpeZazYlGvc0LZQ532QL98lzlLYwp5NNzVeKC0H5I7JL+Qo839DoSGKC9HlUFBWnou6 FLltfhq6PxJuo3gCGRX0e2y89G9YtabGBpHIDBtVKpiCcMrZoQE5i1CKsAHj06bL++G1jg OGXIwf3pBeL5TuDOsUoU5NGO7chHjgevm7yz9Aojme3dFz34Uwl3WQplk0S8mQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631108339; a=rsa-sha256; cv=none; b=OsJUQQeZUfcRionYHX/QlMiINUg23jVCYyqoDcpbQyssJfmRaTCh2VT0YRU/d1+LUFrklV t/a6tY9SfHEESU3cQoQROAMp9gDVii8qHJuy5eyxuuz0nmByYLXRtM+o4zCADtGJTlalLk fW7BCQYdHcKf6EZA7b0snYXyKOu6Kl6DX51/tQ3KPOI69H15mljl3vqti4muAX3QBMewfg o0zSxlLH1nFtxDs/PiMtJuUOz+GJIt3Y3bHnFh3+NYdeq13oa3EqHAKTApJy+eU3qqosE6 zzUJBozLO7RWI1R34b7kmCbjuOC9/q3ZGgYePmyFkSKTiaU0EkAvBU/MSkRCaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=Gs4K5A9s; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=oly9Bbci; 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: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=Gs4K5A9s; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=oly9Bbci; dmarc=pass (policy=reject) header.from=mailbox.org; 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: 9BC8325D64 X-Spam-Score: -3.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: h9eJWFuwQKQL Hi, I think the suffix parsing in oc-biblatex could be improved. Consider this example: ==================================== #+cite_export: biblatex authoryear [cite:@doe 4] [cite:@doe 4, with some more text] ===================================== This gives us ===================================== \autocite[4]{doe} \autocite[4, with some more text]{doe} ===================================== The problem isĀ  that biblatex will add a label if the suffix consists only of a number, a range of numbers, or a list of numbers. So \autocite[4]{doe} will result (Doe 2021, p. 4). However, \autocite[4, with some more text]{doe} results in (Doe 2021, 4, with some more text). In this special case you'd have to help biblatex: \autocite[\pnfmt{4}, with some more text]{doe} => (Doe 2021, p. 4, with some more text) FWIW, pandoc's citeproc already has some support for this. There you can use braces to specify a locator in a complex suffix. Like so: [cite:@doe {4}, with some more text] I don't know how complex that is, but that would be a great addition. Denis