From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8GclI8Qze2AMdgEAgWs5BA (envelope-from ) for ; Sat, 17 Apr 2021 21:15:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2JyjHsQze2A0LAAAbx9fmQ (envelope-from ) for ; Sat, 17 Apr 2021 19:15:16 +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 5A1AFDC19 for ; Sat, 17 Apr 2021 21:15:15 +0200 (CEST) Received: from localhost ([::1]:39616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXqPS-0004FG-3Q for larch@yhetil.org; Sat, 17 Apr 2021 15:15:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXqO6-0004BK-A5 for emacs-orgmode@gnu.org; Sat, 17 Apr 2021 15:13:51 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:51834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lXqNx-0007Ha-8N for emacs-orgmode@gnu.org; Sat, 17 Apr 2021 15:13:48 -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 4FN2mc0PWxzQjxR; Sat, 17 Apr 2021 21:13:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guelker.eu; s=MBO0001; t=1618686813; 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=ejySI6x0CYXELBc8Xdh2IZPgXY/Df4UpCxsf4kbipu0=; b=Z02aiJJxFpB8ztVbKarNwyp/WTHeCOXUGTpLA6RJmkp1srO9xfMO0TaSmeww9BTKwF9b5u 81U9Mbcg5cx3PJGV30HV1G8QLM6k9wnLnq/+UtUVcZ83iBeNKfNHqMp3LiR6Ja2eBF2Z2l N1OFimV02mG4l35k1AbDNgog0WkYotse+MZbNhCTbg69Ixz7OD7BCd/5EZVHR7Ebj5Sb6T aZI2qnu6EUP7QxN5Wnp+NV7oqHZAgGjTfcyEdNNk77w8UjEXFcAkjtudMgvTDN2QEaYonL HxI8mov1hRJ+lVjYSMpY4UbHJqgeYoVBY7o1EyP8crcLjVl0NSIUMv5ee/Y2CA== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id Vv9YDMB49lI6; Sat, 17 Apr 2021 21:13:32 +0200 (CEST) Date: Sat, 17 Apr 2021 21:13:30 +0200 From: =?utf-8?B?TS4g4oCYcXVpbnR1c+KAmSBHw7xsa2Vy?= To: emacs-orgmode@gnu.org Subject: Re: wip-cite status question and feedback Message-ID: <20210417191330.GA17788@atlantis> Mail-Followup-To: emacs-orgmode@gnu.org, Bruce D'Arcus , =?utf-8?Q?Andr=C3=A1s?= Simonyi References: <87mu5xpm4x.fsf@gnu.org> <87img81ad7.fsf@gnu.org> <20210324182751.GA8721@atlantis> <87czuzprmh.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87czuzprmh.fsf@nicolasgoaziou.fr> X-MBO-SPAM-Probability: ** X-Rspamd-Score: 2.14 / 15.00 / 15.00 X-Rspamd-Queue-Id: BE0B217BE X-Rspamd-UID: 3b8c34 Received-SPF: pass client-ip=80.241.56.172; envelope-from=post+orgmodeml@guelker.eu; 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, 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: , Cc: Bruce D'Arcus , =?utf-8?Q?Andr=C3=A1s?= Simonyi 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=1618686916; 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=ejySI6x0CYXELBc8Xdh2IZPgXY/Df4UpCxsf4kbipu0=; b=UlaByjqn8cb88GqwcDXdCfEbtkyqM43KRTdGBN9tj2BQatpvrvSlCfDB4JRdMkeshr3GWo T+7NuNripMZYBlAkC2vnR4Gx8D5v/BJYDOT1CqQyQmEMBBxuZIx+QdzoN/JLGbK7Qo6vpp BSpgj3H5edzh4Fz6X+CRwOITIjSevqFjr60i7NQxaJgdrrIbYvi/NnJtDVslnidC7G6qpT zTEPfsd5jdztFxYL2C7AkacnZyDARvBVfnUSH98ymCXwSTAx23T+VTrbuTzAF19dkXT7Vu jb7vpHsP6yqs9uS0CDxnC8BKwxBULissyusTxYWMI+dE4xBbDnZFhAEKQpY37w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618686916; a=rsa-sha256; cv=none; b=JoCe7ACtWn7HsK2llSn7qjiryoMGDbXvRB4TpaiD3vDCzc9Qktu7M+J8jliMeQGN6Hp21N mg9x3K7lH1sgtMLCl3i+VI7VcEnPQaDB/jmImjk8dGrKVx4vHZjCQDmGDXpwAunn/Zp91s 9Q7/4nHie58orQAIz8YKcrLA1PsGsUYLO0RDUgl+xCtXqxcWZKl9JtoTENWZ/0WfyXFe02 5DJ+bdKY/fdSBNGTyd6qj9sfhW/sYYs5xzxBPQLwXiSJZh+fkn1h7k6txf/PrcUDsYa8kb lCUVzWWlveEfwAjJ+r2lc+/TF6AzUfzpKvvpJFPPocao+mlMzB2DOahUYs5SHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=guelker.eu header.s=MBO0001 header.b=Z02aiJJx; 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: -0.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=guelker.eu header.s=MBO0001 header.b=Z02aiJJx; dmarc=none; 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: 5A1AFDC19 X-Spam-Score: -0.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: VaUys3zQRttu Hi, Am 12. April 2021 um 15:19 Uhr +0200 schrieb Nicolas Goaziou: > The syntax is complete in "wip-cite-new" branch. For the record, in its > full glory, it can look like this: > > [cite/style: global prefix; prefix -@key suffix ; ... ; global suffix] > > [...] > - "exporting" action is trickier, because there are multiple ways to > do the integration, and, since I'm not an implementor for citation > processors, I don't have an accurate view about what is the best > design. [...] > The second mandatory function is obviously responsible for rendering > citations. It is called with a citation object, the desired style, > if any, and the export back-end, the full list of citations objets > in the document, and the list of bibliography files. It should also > return a string. Org provides a helper function to determine the > footnote containing a citation (and its label, or number) from > a citation object. > > In the functions described above, I don't know if the arguments are > sufficient. The citation object will provide access to all elements of the new cite syntax I assume, including things like key, prefix and suffix? Several styles I am normally confronted with require crossreferencing in citation footnotes (example: “Doe (see above Fn. 24), pp. 35-37”). Formatting this requires access to the place where an @key first occured in a footnote. The full list of citation objects probably suffices for that information; on a first thought I would either use the first citation object from that list with the @key at hand unequal to the active citation object (if the list is in the order in which the citations appear in the exported document, which might not match the order in the org source) or use the citation object whose footnote label has the lowest number and is unequal to the active citation object (if the list is not guaranteed to be in said order). I would prefer the former approach, because sometimes I deal with footnotes with numbers like “4a” (a footnote inserted at a late stage in the authoring process between footnotes 4 and 5), which defeats the lowest-number approach. For non-footnote-based citations, the “helper function to determine the footnote containing a citation” should probably return nil. -quintus -- Dipl.-Jur. M. Gülker | https://mg.guelker.eu | For security: Passau, Germany | kontakt@guelker.eu | () Avoid HTML e-mail European Union | PGP: see homepage | /\ http://asciiribbon.org