From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yKEkK+ZTA2GpYQAAgWs5BA (envelope-from ) for ; Fri, 30 Jul 2021 03:20:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SPDmJuZTA2GBRAAA1q6Kng (envelope-from ) for ; Fri, 30 Jul 2021 01:20:38 +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 99E3F2BDD1 for ; Fri, 30 Jul 2021 03:20:37 +0200 (CEST) Received: from localhost ([::1]:55262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9HCV-0002gA-4T for larch@yhetil.org; Thu, 29 Jul 2021 21:20:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9HC3-0002fw-Pz for emacs-orgmode@gnu.org; Thu, 29 Jul 2021 21:20:08 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:41905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9HC0-0006v2-Te for emacs-orgmode@gnu.org; Thu, 29 Jul 2021 21:20:07 -0400 Received: by mail-wr1-x433.google.com with SMTP id b7so9078536wri.8 for ; Thu, 29 Jul 2021 18:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Wf6i4ci23Z+heXIzE9AuKgniXFaVY1Qnlv4a95tDTA8=; b=PGiMevtXqhsHBypY3oyVXQ45uA92T+Uf3sojP5t6iLn34YZoHKSoBylIR1MdKbNdba VLa5lv09ndMDz9kBF2P1nCxveS80U8yE0tycvyvwnXc5ZKpKbr/0azzE2v7ko3+XqN6D +bjlaQ92dWY9L5vu9LY1rBdhXoVrOcgM02dTch64C6aFywvplFKz4RSHx/NVZfkxqh61 ltqxjajeEtpG8TZD7dmdKfEyunzmGcdroNeltI3fQRgQlgNvfuw8zBSfDwAjZr0uMVfH kDcbRE2HcBEUzByTp5fOgvBvVTSkFINmdmS2nxqtBXUthlR5SpUCDN450pZPE21EJTcJ jldQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wf6i4ci23Z+heXIzE9AuKgniXFaVY1Qnlv4a95tDTA8=; b=Tx0dcxjHv7/o+BK7Qf2huSzVY41ovKWdJI72SSiDdpUz2Zuwn4bVUTyEhsVMPLrZHR SuOuOJdxWTbo7Bn/AbskkF9t3eD1uxDN02jdHYvY/YgxwqmuVKpQrg84I00w8iSAD9BD ZatwsvKbG0rzx8PKhZt+kdA8ZZ5UoWuVXUDCNll1NTBUAW5TKXncXRhv9DIcGpa+UroR O20a2smOhsRcoJK4ru/Hc/pjkqg2JiUUazM+TBqABylb8LOyj8icu2qFsaVZbWbF1amK 9ZuG3JMKq2bZVoLps0bED4iCbf3TNGlvqCt+2XX+cMMzXJP3GkVQb87CEJnTI2fYV8Ya RrAg== X-Gm-Message-State: AOAM533W0lKAR1tpJ1ANW6LOIaXEi7kZVVEIzd5H7udNIxt/kg5ODsWM wYMCb1JFeAiO31ErqiA5eXTMPv4cKKLyJgKw7HU= X-Google-Smtp-Source: ABdhPJyP4UvuoMhiL9iSAh4ndKkjzu+uO2OziG76hhQSNclRZd30ggyqrqcSXhMBeLxBwAo4A4/Oj1X67Pk7rdEXpKI= X-Received: by 2002:a05:6000:2a9:: with SMTP id l9mr222906wry.75.1627608003335; Thu, 29 Jul 2021 18:20:03 -0700 (PDT) MIME-Version: 1.0 References: <87czr0j4xr.fsf@nicolasgoaziou.fr> In-Reply-To: From: John Kitchin Date: Thu, 29 Jul 2021 21:19:52 -0400 Message-ID: Subject: Re: [org-mode] make citation object available to org-cite-make-insert-processor SELECT-STYLE? To: "Bruce D'Arcus" Content-Type: multipart/alternative; boundary="000000000000df5b6d05c84d04e4" Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: org-mode-email , Nicolas Goaziou 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=1627608038; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Wf6i4ci23Z+heXIzE9AuKgniXFaVY1Qnlv4a95tDTA8=; b=BCmWInTMuMO/XdyECUPSy618hHVblkLjCoSs93kNu6TjYrkHl72ULAqH4gMSJufwQiGizM o68E7t9nyKFIqU4+pzXc2UHBPLnuy5SWnabUuBgFa9noF+GNWvgH3nUs/M8Gk+/TldklWo hHZuC7AHsmVd2dN5QyKVzuMqJ8PaPsyZOgGO5hveds+5rxUmiIln8hIAjPzWI2h30Kkopz UDGYbDrlEX7+FZ/1Ni05qOqsm/q796n7TA3HaOITSOLYxKfnQN6H6hvV7YOndS9Coynpf1 PSZFbSrOz9MfC4EjMS7yGou7hXdacNhOjj0u1LVKBTZoglb8SMxeflG4a3CnIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627608038; a=rsa-sha256; cv=none; b=gXIp3HNShHYbYeCHrnRAD3M6XWJJAs0eGA1Dlj7//IUG2ozK+D98TlNdcqusjgyWwMmg8w nybVRwNPcqY3CSLNKDh9SbCLlcCE04dGxVbStcn1JeKKHOY/+UqDqyJycL2IxQbhskjN2h oz9fn3nsfubtt+pnsqw4Nsrq62xJ1PdBuLRZ0FA2LOCAQvaklIhQDAPGLNg+FcGnsaP7AG 1spMpXNE7NlD5JbWYPl7m+gXTCMJUJ/mceFUogw2xj/Dy9YI08d9tEEOW0Z4Quc1sa9Wl2 l9X69Wg8DyMj9k7n/n6hwkG8g7x/8DWJY7CsRAeWJJH/lM6ukbr4zQ3baw3cRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=PGiMevtX; 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.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=PGiMevtX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=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: 99E3F2BDD1 X-Spam-Score: -0.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: iU5GmB92Us0/ --000000000000df5b6d05c84d04e4 Content-Type: text/plain; charset="UTF-8" my solution to this (which I think worked well) is to select the keys, and insert a default style, and then you run a command that updates the style. that way you can get the keys that are in the citation easily from org-element-context, and then I can make a preview for each style that is consistent with the best guess for what the exporter is. (based on the cite_export keyword, or a default choice). On Thu, Jul 29, 2021 at 8:58 PM Bruce D'Arcus wrote: > Hi Nicolas, > > On Thu, Jul 29, 2021 at 3:28 PM Nicolas Goaziou > wrote: > > > > Hello, > > > > "Bruce D'Arcus" writes: > > > > > But to do that best and most consistently (next step is CSL, for > > > example), I need the citation accessible from there, so I can run the > > > export processors to generate the previews. > > > > > > Could we possibly tweak SELECT-STYLE to take one argument: citation? > > > > When you are inserting a whole new citation, what would be the value? > > nil? What would you display then? > > The first iteration of the idea behind the request is this style selection > UI: > > > https://user-images.githubusercontent.com/1134/126531061-40cf47ab-0c7f-42ac-8ddb-341e7ab70d4b.png > > So the idea is to present a preview of the style/variant output when > selecting the style. > > Like: > > / (Doe, 2019) > > ... or maybe even multiple columns: > > / (Doe, 2019) \citep > > I'm thinking the best way to build this UI is to iterate through > org-cite-support-styles, and run at least the default export processes > to create that preview annotation, > > As my thinking has evolved (and there's been a lot of discussion on > this the past week), I see two options: > > 1. Generate the previews from the citations at point. This was the > idea that promoted the suggestion here, since I can't get access to > that citation data if I use org-cite-make-insert-processor. > > 2. Instead, have a standardized example record just for the preview. > With this approach, the citation context isn't relevant. > > As to your question, do any style UIs currently allow you to select a > style on a new citation before selecting the keys? > > Bruce > > --000000000000df5b6d05c84d04e4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
my sol= ution to this (which I think worked well) is to select the keys, and insert= a default style, and then you run a command that updates the style. that w= ay you can get the keys that are in the citation easily from org-element-co= ntext, and then I can make a preview for each style that is consistent with= the best guess for what the exporter is. (based on the cite_export keyword= , or a default choice).


On Thu, Jul 29, 20= 21 at 8:58 PM Bruce D'Arcus <bd= arcus@gmail.com> wrote:
Hi Nicolas,

On Thu, Jul 29, 2021 at 3:28 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:<= br> >
> Hello,
>
> "Bruce D'Arcus" <bdarcus@gmail.com> writes:
>
> > But to do that best and most consistently (next step is CSL, for<= br> > > example), I need the citation accessible from there, so I can run= the
> > export processors to generate the previews.
> >
> > Could we possibly tweak SELECT-STYLE to take one argument: citati= on?
>
> When you are inserting a whole new citation, what would be the value?<= br> > nil? What would you display then?

The first iteration of the idea behind the request is this style selection = UI:

htt= ps://user-images.githubusercontent.com/1134/126531061-40cf47ab-0c7f-42ac-8d= db-341e7ab70d4b.png

So the idea is to present a preview of the style/variant output when
selecting the style.

Like:

/=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (Doe, 2019)

... or maybe even multiple columns:

/=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (Doe, 2019)=C2=A0 =C2=A0 =C2=A0 =C2=A0\= citep

I'm thinking the best way to build this UI is to iterate through
org-cite-support-styles, and run at least the default export processes
to create that preview annotation,

As my thinking has evolved (and there's been a lot of discussion on
this the past week), I see two options:

1. Generate the previews from the citations at point. This was the
idea that promoted the suggestion here, since I can't get access to
that citation data if I use org-cite-make-insert-processor.

2. Instead, have a standardized example record just for the preview.
With this approach, the citation context isn't relevant.

As to your question, do any style UIs currently allow you to select a
style on a new citation before selecting the keys?

Bruce

--000000000000df5b6d05c84d04e4--