From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 6H8TKuBVN2ZpEQEAe85BDQ:P1 (envelope-from ) for ; Sun, 05 May 2024 11:48:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6H8TKuBVN2ZpEQEAe85BDQ (envelope-from ) for ; Sun, 05 May 2024 11:48:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XY6vOHaY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714902496; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=K9QpHZ6s4T02tgtkf5c+mJ7GqdN3yJjqLlnDOVlFvs4=; b=g1LakBLXuQJxj5A5TPpLRDULbEJf3i9fEeoCajTPuBKXlLJLE1xIm4xH/1Jl1qBgvxa4GR kxNy3ZVhXpLLAw1+zToKWJKAucGlIYoyTpLB+9eRrxOJfTDYIwiMgKgHRtoCnjEGxkTDpT B5Y9yV/SYTfbB2E4KCDgEgxAu0TgTf9cT65fePMICE4itixJZUNjIUVClhIWIqTVexGObZ /121VxqgMZrcE7/ETjtNdEu2PX6pTYwM6wjf0C7JWQm7nkYEZwSCoXGIphfO1bywhCNSlH COhdQ8q861Mlf2X3eNHr3hIQnXbm2VgouZKWklad5RbL3NRfetfgfthaBRHXYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714902496; a=rsa-sha256; cv=none; b=YBXcvqE78w5BAtE2l7rRs1sCmBalWq/mM4kYnQwkBuD7Be+I6+pt7eQdio7Wj6mSXqIuB+ 4FP8J9ALDbSLCic91cwsxyQd/wsHT3XpoOOafBsJTNq8IzmfPocL6Kr76HrcX4IMLhensc oC9SlnwqkS2g4F5b3mbxG3SCE+z/BvAQszu3uHaVm39Xvv2CVYe08SNCZIcLrez+mUaBiv OsDQNzeB/55QO1+7beQTqMN3zvmEAkp8AsiciARIHJk6BrlQcLvYJorHTPfCEernHx8yAX TrANPZqahQhIXIyABmUb+aLiCjuy/d2ksO7C/emuXSn1Y6nyPM5llopfOU6U5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XY6vOHaY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" 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 2726CC79B for ; Sun, 05 May 2024 11:48:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3YSi-0003QV-CA; Sun, 05 May 2024 05:47:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s3YSf-0003QF-56 for emacs-orgmode@gnu.org; Sun, 05 May 2024 05:47:13 -0400 Received: from mail-ua1-x931.google.com ([2607:f8b0:4864:20::931]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3YSd-00070J-8P for emacs-orgmode@gnu.org; Sun, 05 May 2024 05:47:12 -0400 Received: by mail-ua1-x931.google.com with SMTP id a1e0cc1a2514c-7f3a5ab6a18so226638241.2 for ; Sun, 05 May 2024 02:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714902429; x=1715507229; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=K9QpHZ6s4T02tgtkf5c+mJ7GqdN3yJjqLlnDOVlFvs4=; b=XY6vOHaYqxbTxwI1dJSf8eC1T4pX3vpCObFyDPYGdObo0abaciDrJnBZmPFUWslMdR AmAzirQ1Pl97mMd16uRPjf0cYvWwUFj+Dp2VOTWY+pBaZbsaPfUdaSyUQfcBGriZ/Bqu tJpibivYLasSAhPipau36rqeGH7ivFZMXLHleiOyy3q7YLH5GVkStPZvzNj6tvlc7gSU JLaJ7EfhdWh+jbY122GvwhVsspn9yTlLOjZFThjEMwnvxAX5RUf3Pi8tIyBWj3j9khi7 jtG3Syxq11R/jCX3T5e5H2X7o/AU7ruz4WFoxwPNo81WcU3q2Vhji1WR0VQdiLlb9SW+ vtDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714902429; x=1715507229; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=K9QpHZ6s4T02tgtkf5c+mJ7GqdN3yJjqLlnDOVlFvs4=; b=ba2J49ecliNNaZ48xkYYi1VWGf8Sk5de2np7goQemW8gDT26tmkIIlBAoRU2sGT5M1 2Z044ULHh081RHygbcpeHPzUa0W3PM02WeXGV2dqa9Ftc2ylZZ+jMYwf184h4WJsI+Vb dQgxq2fY4X/eMI7tES99CfPqGr0Hgdtzkya7Aq9PO0i976xnks89TDQx6VuJ1Sgh85Ax M0qfMP3JWA3FU17FYW+9SEX+rVl7ipZ/Zfi5WptOr/vFzbLiabf4XNA2Kx4DA+bsPc4s k+nDIQn5rLJoL2O0YuyTrx0d9a8bj4f51TcHzntm+5yWqJ916XjlhsEZ5sXCndbqtheR 1tkA== X-Gm-Message-State: AOJu0Yx47fXvJmT6uabZxuXktPvt7GApM99xtvdaAxswShxRyE6475Gi Ffr+enodHXO//8jjTJBXV7fji5SIhzZPhnSVR2KUhykO17B2AI5TMh78p/INuwVBEv6P3t8AcXG A3iFKDvuvDtC/ggYTX7Ra6dIW0Ri4KBq6 X-Google-Smtp-Source: AGHT+IG+6+q/sF5To+S0uGADwLKwg67xVcXbIp+YXM4ff+/GVySNrAIwwZvMDrdkkNjr+Fz5TRxiBZbVFzLX+CWhJ9k= X-Received: by 2002:a05:6122:32d3:b0:4c9:f704:38c with SMTP id ck19-20020a05612232d300b004c9f704038cmr7576466vkb.11.1714902429304; Sun, 05 May 2024 02:47:09 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Date: Sun, 5 May 2024 11:46:58 +0200 Message-ID: Subject: [PATCH] oc-csl: Remove spaces before citations in superscript To: emacs-orgmode list Content-Type: multipart/mixed; boundary="0000000000001fc75c0617b1d67d" Received-SPF: pass client-ip=2607:f8b0:4864:20::931; envelope-from=andras.simonyi@gmail.com; helo=mail-ua1-x931.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.61 X-Spam-Score: -5.61 X-Migadu-Queue-Id: 2726CC79B X-Migadu-Scanner: mx11.migadu.com X-TUID: 9U81hKTeBoGP --0000000000001fc75c0617b1d67d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear All, there is a rather peculiar set of numeric citation styles (perhaps most famously, that of Nature's) which sets citation numbers in superscript -- similarly to footnote numbers, these citations should not have any space between them and the previous word. The attached patch checks during export whether a citation is produced by a CSL style belonging to this category and removes any leading space present. Best wishes, Andr=C3=A1s --0000000000001fc75c0617b1d67d Content-Type: text/x-patch; charset="US-ASCII"; name="0001-oc-csl-Remove-spaces-before-citations-in-superscript.patch" Content-Disposition: attachment; filename="0001-oc-csl-Remove-spaces-before-citations-in-superscript.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lvtclfh50 RnJvbSBmZTMzMWI5NDg2ZDRiYWMzMWE1NTkwNjdjNTY1YjMwNDc0MjQ2Y2VhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBBbmRyYXMgU2ltb255aSA8YW5kcmFzLnNpbW9ueWlAZ21haWwu Y29tPgpEYXRlOiBTdW4sIDUgTWF5IDIwMjQgMTE6MDc6NDUgKzAyMDAKU3ViamVjdDogW1BBVENI XSBvYy1jc2w6IFJlbW92ZSBzcGFjZXMgYmVmb3JlIGNpdGF0aW9ucyBpbiBzdXBlcnNjcmlwdAoK KiBsaXNwL29jLWNzbC5lbCAob3JnLWNpdGUtY3NsLS1jcmVhdGUtc3RydWN0dXJlKTogUmVtb3Zl IHNwYWNlcyBiZWZvcmUgY2l0YXRpb24KaWYgaXQgaXMga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