From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4IxIIgsfh2AIgAAAgWs5BA (envelope-from ) for ; Mon, 26 Apr 2021 22:14:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6FDRHQsfh2D9HwAAbx9fmQ (envelope-from ) for ; Mon, 26 Apr 2021 20:14:03 +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 CB56522616 for ; Mon, 26 Apr 2021 22:14:02 +0200 (CEST) Received: from localhost ([::1]:59706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lb7cG-0003kf-NC for larch@yhetil.org; Mon, 26 Apr 2021 16:14:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lb7bs-0003kZ-HP for emacs-orgmode@gnu.org; Mon, 26 Apr 2021 16:13:36 -0400 Received: from mout-p-103.mailbox.org ([2001:67c:2050::465:103]:59926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lb7bp-0005pI-Qo for emacs-orgmode@gnu.org; Mon, 26 Apr 2021 16:13:35 -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 4FTbgY2T7lzQk0w; Mon, 26 Apr 2021 22:13:29 +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=1619468006; bh=ZcgTt0IZI0Wz 5HFZKAVunbCEXRASKzKcp1VmvzYEiFY=; b=VWtpIdJqo8Ak/Na91U8Kt+saNr3o yeVkyxxrdrrTiwlH3tGN4q05Vhi+EOcDspQLIffCFfKSLsF+kdHdcx0+RxnUINZ0 OqdzM8pnzGF36eQXHbI8JwtfAie+sZyRuNNm2y/6ul9grgVEU5Bsh3ecdKRG7SMR ID3qwQmVoBwarZu3xtsAMGspRTJ4AcyWE0b86aM1vxxw1CumtBj5NcvMwWgvl1BH U4QIkCRGHAnDlsURVtJwqnfr1sKMaLt1yK5hChiCoIFlp08VuDXh1ru6BinPxZTD xu9p0yhtR1thdeGFak2uHspezxwRn0nAIeVInhZ9UAfjbNoDmqIRJzabMg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1619468007; 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=vR0aaBef46FOBbvI3pv7X+SP/OtNQYWThX+aJjKsAgw=; b=ko4OzywBjRt/oMS8vnLHFEOE2xWRAdwRcB6xAXldFKmpXg5ha7Af08JGA5xq6Cp21lxNge 96OCzJCr2k5Uk0qfR0jtMuYbFqaVsce0dAjR9eq1ewhAioHaT2smxEc66DDeleEuftBZdQ 4cNmbHxkdH1Lu+iXR1gjHdQHClDlBm4leVKt0do2ULsz3C1xItanoLA/P4Hz1Kw518BPwE oN4oXFVRfPq0o9QUtZAl+QNqkI/sGqe8N3mToTzaLrn6Y3zdog2FBWZp+POv6JYAO90SZ+ MNrewi6R0397JodZUwOkPeqXyagTF8ll1u3uYxqFKg/Ix2dttN52Jt+wNQCc3Q== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id OAwEZ-Lv_V79; Mon, 26 Apr 2021 22:13:26 +0200 (CEST) Subject: Re: (Not so) Short note about citations in Org To: Bruce D'Arcus , Org Mode List , mail@nicolasgoaziou.fr References: <87pmyn5i1g.fsf@nicolasgoaziou.fr> <6e209667-7dc6-ca71-2888-dabf178a73e1@mailbox.org> <87czugx19f.fsf@nicolasgoaziou.fr> From: Denis Maier Message-ID: <2ae6dd0e-a14b-5c06-e0ca-5416bf80f6a7@mailbox.org> Date: Mon, 26 Apr 2021 22:13:27 +0200 MIME-Version: 1.0 In-Reply-To: <87czugx19f.fsf@nicolasgoaziou.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-SPAM-Probability: X-Rspamd-Score: -4.00 / 15.00 / 15.00 X-Rspamd-Queue-Id: 738C01884 X-Rspamd-UID: ff3af4 Received-SPF: pass client-ip=2001:67c:2050::465:103; envelope-from=denismaier@mailbox.org; helo=mout-p-103.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, 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=1619468043; 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=vR0aaBef46FOBbvI3pv7X+SP/OtNQYWThX+aJjKsAgw=; b=oNtU0WdVsyo8Z/3XpFqMkhrYRx8mc8S4FwMMvxhvyWCs2deBffjz04TPNYw6VBkq4prwea Q4X0uHvfrORQnWakW6+kvqROtfYJv/tL9BCAC91s8fmq/Uv1T/fd+YSj5R0faQ9t4+IK5f 5ufS7CEX8oRo3K1sH5K8yK19RUtkN/xGuyuQD8xhMl+A/qt3mNsZNRxmyexWFHK5TBrxbI GWLXs3p/2AVyxafuWruia/Ot/BSmQlQc0tnFFj6qIWvWusF0OUAV1D8zfzkOmITTCIjrJs dBzXM4P74RlrG17nNFLU6heXHIFCWPKbiWZxELunoP/hr9ImGz0B+WfbTLB9GA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619468043; a=rsa-sha256; cv=none; b=HxkgJc7D0auSO4PsXgKAZ7DeDlHJNjjLcZ5ry6kDUOu0Sq3uIb8KK8QHa3VMNdT3VYfFEM Tbqy+btc95FJqA2Umczlx0uFEbte570eYnamsolv5Dakt+S3chksvulQ48KfO7/htZLZze DxdgjShWfwYosR3DVufSsjIt9DIu3sFyQd1T2ULBfyQFphYfdx5pJgik37cvjkEuzjb3+2 ZFmggOtdgJyTZvuM5z9AHy+L/fA+4H/xd92zyBaxSdIfgty71mOHvbLHeoWb7K3o/7FadN IFd+kmfoPGhujPwcgaDr5G+Cg4vNCujagNJEh7zm2ICbFYb0rv/ml3VHNrgsjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=VWtpIdJq; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=ko4OzywB; 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.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=VWtpIdJq; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=ko4OzywB; 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: CB56522616 X-Spam-Score: -3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: QB66bku4C/2j Am 26.04.2021 um 22:02 schrieb Nicolas Goaziou: > Hello, > > "Bruce D'Arcus" writes: > >> On this, on the other (big) wip-cite thread, Nicolas said the following: >> >> "A drawback with allowing emphasis there is that prefix and suffix become >> parsed data and not plain string anymore. As a consequence, searching >> through them, e.g., when looking for locator names, requires an >> additional level of indirection, since you need to first transform >> parsed data back into plain text." >> >> Nicolas: I get that you need more code to do this, but are there other >> practical consequences of allowing more than plain-text? > > The code I need to write does not count, really. It is 10 locs at most, > without the tests. > > My concern is the additional burden for processor developers. They will > need to shift from one representation to the other, this is not > convenient. Also some tasks then become an order of magnitude harder. While I cannot speak for the processor developers, I still want to throw in that at least the major CSL processors do handle formatting in affixes in one way or the other. The Haskell citeproc that is used by pandoc treats the suffixes as markdown, citeproc-js uses some sort of HTML-like tags for things like italics, bold, sub-/superscript, and a few more things. > > For example, let's consider the suffix: " p.32 and following" If it is > plain text, I can recognize p.32 as a locator, and replace it with "page > 32" using something like `replace-regexp-in-string'. > > Now, if it is a somewhat opaque parsed string, I need to first expand > it, for example with `org-element-interpret-data', modify the output as > above, and then parse it again to get a new parsed string. > > I can no longer (concat "(" prefix author "," year suffix ")") either, > because prefix and suffix are not strings anymore. I need to > > (format "(%s%s, %s%s)" > (org-export-data prefix info) > (org-export-data author info) > year ;I assume year cannot contain problematic characters > (org-export-data suffix info)) > > So, nothing impossible, but still slightly inconvenient. > If it isn't impossible I'd be strongly in favor of adding this. I'm pretty sure authors will miss it otherwises. Denis