From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AK+6LJ1+xmAgDwAAgWs5BA (envelope-from ) for ; Sun, 13 Jun 2021 23:54:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uEwUKJ1+xmCiKwAAB5/wlQ (envelope-from ) for ; Sun, 13 Jun 2021 21:54:37 +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 0E1FF17B4B for ; Sun, 13 Jun 2021 23:54:37 +0200 (CEST) Received: from localhost ([::1]:39856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsY3v-0005vu-1M for larch@yhetil.org; Sun, 13 Jun 2021 17:54:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsY3W-0005vR-K7 for emacs-orgmode@gnu.org; Sun, 13 Jun 2021 17:54:10 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:33508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lsY3T-0000qw-Fl for emacs-orgmode@gnu.org; Sun, 13 Jun 2021 17:54:09 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (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 4G37dS3yBQzQjmV; Sun, 13 Jun 2021 23:54:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:date:date:message-id:from:from:references:subject :subject:received; s=mail20150812; t=1623621241; bh=rX88s9ZFIY5v i+b0qMDa5hEckdqs/pPq5reCcVGWedw=; b=pCLGlLrsSoTJx6W0Qw/6kqVHTQ7Q Ma4e4Gvpaws41KAjqYSCv+SdXPBCpMzhxdLFuaa8RPvQzYImOcMTwqPUMwtF5O+B KVdvy0j+hiqSxaJKI0bLPofnUceYQcpPPZHmiZkAcDP7GT2JvWnVs4y+PHN2eY0T xKV6tKTQafmE1Cc+ThOv8Gf5LmJ71KGD8mxaSYw66aqWTS4nZVZH6FVVnRiNE6EE gtHaMPtNxXeeNhp/iJDF+E4hXXJKI9FqOvGEgQFoU31PRv6gZ/PTYmhfT91Zbcjt tm9k2YuOwRGqImHmIaSEPZQU02gJQBVEi3ZV6FBvzmZGkt10mXAB/V7rnw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1623621242; 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: in-reply-to:in-reply-to:references:references; bh=yS78+aTBl1byCmhQCkWet520EgVnri2k2VR6hDk1zd0=; b=nzDyK8pYH9uSMqlAIqmxJ2/R+57cX0/sImy/UvLMtxpT7U0UYUdUAa9QYx9ogHGbn4j8h9 kOD2N1FsNiJeU/PVmrT5tWTcwGUCFjUnUIsoNFUy5Rb+2ebi9NgL7KbhTFHMYJhaxV6qNw tQfNvvGvfiRu1xRwUWNOT3E+zS8QrLsKJZeUxmrG80n6wEM3B+ouhw3IwIiGX29e3t0eKE 2s6+x48s52TYUv6xhyKTPyLKK5wdhIk8L0RJILrTpyHmZ/zIw4OQw4Eyfdq/01gD9X2nAf sGIODBZo84hSUSQvjm0IUxj3Q+xB5eHo9NMV/oRb1tGuxIR8L2oGB7p6vUPU4Q== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id NayaWsyQZ8IH; Sun, 13 Jun 2021 23:54:01 +0200 (CEST) Subject: Re: [wip-cite-new] Adjust punctuation around citations To: Bruce D'Arcus , Org Mode List , Nicolas Goaziou References: <871raawc7j.fsf@nicolasgoaziou.fr> <4dd47d8d-5dd8-4769-7e2f-eb3438ba0b4a@mailbox.org> <87sg2orz0z.fsf@nicolasgoaziou.fr> <81051f87-a90e-56ed-7867-d6179ec1e9ad@mailbox.org> <139ff81d-4af6-1e75-f4c9-416032fc514f@mailbox.org> <87h7icatav.fsf@nicolasgoaziou.fr> <952cbae3-496c-acea-4ff1-beb9c3306979@mailbox.org> <87zgvvtoay.fsf@nicolasgoaziou.fr> From: Denis Maier Message-ID: <535c4059-e019-0970-afea-efed82b003ac@mailbox.org> Date: Sun, 13 Jun 2021 23:54:00 +0200 MIME-Version: 1.0 In-Reply-To: <87zgvvtoay.fsf@nicolasgoaziou.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-SPAM-Probability: X-Rspamd-Score: -3.82 / 15.00 / 15.00 X-Rspamd-Queue-Id: 7F1771825 X-Rspamd-UID: 193d3e Received-SPF: pass client-ip=80.241.56.172; envelope-from=denismaier@mailbox.org; helo=mout-p-202.mailbox.org 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, 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.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=1623621277; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=yS78+aTBl1byCmhQCkWet520EgVnri2k2VR6hDk1zd0=; b=lodpa437AzdU7/bmgWTw02UHfgAVYOZfnzLg+OmL3AIkYzbD/tJiDa8veuQPNRizEWq4Kj dvEzCBeChVRkdfh1N6IvUyy/IIa4AG3ZRo1HODN+9JT2hQeeRcYtYYYP90Y2ntbgaroUm+ YfrLqobz7WLx+u6bgJ4evOzqvPoC7uRvLitZ7kfG/2sGmVNkxoeN26p/nNi1RD0tTOxGcV k/cJfH9K3M14tqx23tPod1K7+X4gDaT544UoZa0WS+eq2mLwtk/IAFrXKKF5932ulcB6RN irCIiEHypTfYR9Zw8Lev7qEsGDB89DSMtHlc9aIVKMXkwdBttCcaeyCh6jGShA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623621277; a=rsa-sha256; cv=none; b=NtNcXSne4okU+ODr5YU7zaJPJwBHBwiJtli/YDnqAdM/EFejtqVzohp8ovozmQHK7cSPce Gqb6E4AbAhBv/+nXtj1aG3EdQtHblChlSfldjhH+frfSTduzlBT7XqihFRgO1XJbyNxScV uc5V+y9ZRzPJIhEK+yBbWRYa4KiPkCpQLlXIyLxaAkIHEcuAeVGD7N/EaGEJBIIbtcST84 KIAAJzx2AfCC6Jpm3MEhcyGLcJWOBo2+VCKSksxrXPnSCx5cy4Mc4gsZ9s0LLRBESz0v0T 0BsjBjQYkjU08lOV8ia41lnuvOHGyZa8KUcxIK8NjWhHQNeKOrv2ERDdkmXNaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=pCLGlLrs; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=nzDyK8pY; 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-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=pCLGlLrs; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=nzDyK8pY; 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: 0E1FF17B4B X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: RJflTjG93mU8 Am 12.06.2021 um 11:39 schrieb Nicolas Goaziou: > Hello, > > Denis Maier writes: > >> Yes, good this is coming. > > As a step forward, I rebased wip-cite-new branch with more support for > note numbers handling. > > I added three customizable variables: > > - org-cite-adjust-note-numbers, which simply allows the user to toggle > punctuation and note number moving (on by default). > > - org-cite-note-rules, which defines what rules to apply according to > locale, expressed as a language tag, as in RFC 4646. > > - org-cite-punctuation-marks, which lists strings recognized as > punctuation in the process. > > `csl' and `basic' processors now both make use of this. > > I'd appreciate some feedback, in particular about the docstrings of the > variables above. I focused on the "note numbers" topic instead of > "punctuation" since I found the latter too generic. > > Also, there are some points that may need to be discussed: > > - I'm not sure about the `org-cite-punctuation-marks' variable being > global, i.e., not locale-specific. > > - There is no support for this in LaTeX-derived back-ends, because > I don't know when a citation is going to become a footnote. As > a reminder, there is no "\footcite" command in `biblatex' processor. > OTOH, users might prefer using a more advanced mechanism, e.g., > csquotes. > > - It doesn't do anything special in quote blocks, because I'm still not > sure there is something to do. AFAIU, special casing there only > applies to author-date location, which out of the scope of this code. > > WDYT? Ok, I've managed to test this a bit, and I think this looks pretty good so far. The only question I'd still have is if this could somehow also cover the reverse situation (going from a note style to author-date). I've noticed that simply adding a new language rule doesn't work anymore---as opposed to my initial tests with earlier iterations of that mechanism. Seems like this mechanism is now only triggered when using a note based style. Best, Denis > > Regards, >