From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 9q3tB3OFxmC+HwAAgWs5BA (envelope-from ) for ; Mon, 14 Jun 2021 00:23:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QGm4AnOFxmCfTwAA1q6Kng (envelope-from ) for ; Sun, 13 Jun 2021 22:23:47 +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 6AD6C18046 for ; Mon, 14 Jun 2021 00:23:46 +0200 (CEST) Received: from localhost ([::1]:46120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsYW8-0004AI-1R for larch@yhetil.org; Sun, 13 Jun 2021 18:23:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsYVk-0004A7-5o for emacs-orgmode@gnu.org; Sun, 13 Jun 2021 18:23:20 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:54138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lsYVf-0002lp-Vi for emacs-orgmode@gnu.org; Sun, 13 Jun 2021 18:23:19 -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-103.mailbox.org (Postfix) with ESMTPS id 4G38H406lhzQjhX; Mon, 14 Jun 2021 00:23:12 +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 :subject:subject:references:in-reply-to:message-id:from:from :date:date:received; s=mail20150812; t=1623622989; bh=BxBk6whbIl rvlf40d00YN/P2D9wsK7lVhgqf+fHLVR0=; b=NlPn2XhblBoYWIt/6xCqzZ2x2L leAdLtqRuCbQ90V0x0G89Q7j6i0IurS5g3KygkcDvppOugzoUeOuf+h4/E8PP+En 1BUoKIFXBI67WpIsFalp3tzOSctQWG0J+/z2rLhM7/Z3SYAMfCxj/b2Bt1PEa+to i/a87M0vhR+8pmEa62C2XOrBzgW+A4o8uu5xg/jpzrxZIKdowCQDC4f/x8UPEfCf mn8DadnLvxH1GmLzrWWmYB2/7q0iws8+jkgptwUf9sW/lG+MuSq7eQSh6/pM8AbH 3zxYnHucMWTV1kpyrtEx6MHNGfUeU3o/1JAuSp8m3Nwj9c+5R5hLXgvdWaSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1623622990; h=from:from: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; bh=yrGAPWi459MYOFbQLGgyt/Hb6p+kCGnOaB1wJxdXSqY=; b=wVmp53HSCrJJnV28uc/VuquBUOck8t3xvkvFWE5kQLeo7W9kUsYUmxvDPLks0QOJsmob+E /mt0KZkrYNMCu61WHzqJxlBmtiw+lYr6EnUnr213UG0lw3IJXNw0nNxOursOZl6IUJN70L dGIkQUgE3+DD4azuDnW9tTkJagxOgyq80+mqgkqpEBg9CVTTuAgisuyaeHURJAa/Nwj/V4 EudiRvJyv5j16wLjJH8OLXQoFA78clIG8aBG6jegsVxWp8B3WLkmH4iZNi1juuIe2t/R+n o0jMruODJPDJR9CknCQwiVJW1tyMSSRAeR2tk8OTFAcXQakYx6wGo728WFYGdQ== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id H5voNd5Ickln; Mon, 14 Jun 2021 00:23:09 +0200 (CEST) Date: Mon, 14 Jun 2021 00:23:08 +0200 (CEST) From: Denis Maier To: Bruce D'Arcus Cc: Org Mode List , Nicolas Goaziou Message-ID: <2009852882.89167.1623622988878@office.mailbox.org> In-Reply-To: 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> <535c4059-e019-0970-afea-efed82b003ac@mailbox.org> Subject: Re: [wip-cite-new] Adjust punctuation around citations MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-MBO-SPAM-Probability: X-Rspamd-Score: -3.87 / 15.00 / 15.00 X-Rspamd-Queue-Id: 249F6189C X-Rspamd-UID: faab49 Received-SPF: pass client-ip=80.241.56.161; envelope-from=denismaier@mailbox.org; helo=mout-p-103.mailbox.org X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, HTML_MESSAGE=0.001, MIME_HTML_ONLY=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=1623623026; 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:dkim-signature; bh=yrGAPWi459MYOFbQLGgyt/Hb6p+kCGnOaB1wJxdXSqY=; b=MplPE1pFrQmD62pyAMyk7HP+xwX+8coBnJxI1+CxuXR9Dhil7oFNAEFeGRD8K/zJ0QVACz ozROOITL7H8NY/8j8RpjgF2Wn48jdtAiOAIY7rZl7GQIwHss+vRm8hfA6dlWIoH+avEnMp bFYIpFtMxK1TJ3MF6uM0Ghb3Iby7iVCZhyDPK4mALZCAkd1ESv+ens761jq3Qy16x2Xdhf r5wHb6doKaagv1ypa9s5yN/gVfG+8rmZlx8DYsklhUfGW4bB8uhlLoi//hq7n9eXdm9PgS Xfh1CSkrMK8Fps3N9kHIKtRBe79yADEbRDP6X9jzY/gs7mKtf5xkiDr761TBaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623623026; a=rsa-sha256; cv=none; b=ax8GAPdj9JSBj++AOnHdvn9L+eFrTTd4niVnDepAX0moTCgwVKXqGuAz//UNcdY8ApvT5Z tFA4oKaOennUevhwX1OrZpKWo6pjyvkBCw2Po6hcdVnyV1uoQAKya7DftMxoLcBevsGPBv X2FcNgyPZYj4FV0s7JCf1UhNqeD4imiHtOqk3nU/vzcQHlcbjJn9wn9qkjmS39p6UYlQaD YRanqHykF8OLcoI1skOTd4FTMeOlusqKhgTaviuv1KRgvS5pFVhpRe4Q+ni+iQKbq66wtt yTO+cQIK6yOwgDFEPKOU3YquSSPYMYbBEoNtdT49ujBc+b8e6XSpGXbZ5VNomQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=NlPn2Xhb; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=wVmp53HS; 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: -2.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=NlPn2Xhb; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=wVmp53HS; 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: 6AD6C18046 X-Spam-Score: -2.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: QmQdF7+rWvyJ

Bruce D'Arcus <bdarcus@gmail.com> hat am 14.06.2021 00:04 geschrieben:


Nicolas explained the reverse is out of scope,
IIRC, it was out of scope ATM.
and gave a reasonable explanation why (because much harder to reconstruct missing information IIRC).
That's where I disagree. I think the opposite is true.

On Sun, Jun 13, 2021, 2:54 PM Denis Maier <denismaier@mailbox.org> wrote:
Am 12.06.2021 um 11:39 schrieb Nicolas Goaziou:
> Hello,
>
> Denis Maier <denismaier@mailbox.org> 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,
>