From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uCecAc9OA2EsWgAAgWs5BA (envelope-from ) for ; Fri, 30 Jul 2021 02:58:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8Nr2OM5OA2FTNgAA1q6Kng (envelope-from ) for ; Fri, 30 Jul 2021 00:58:54 +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 6103F3C40 for ; Fri, 30 Jul 2021 02:58:54 +0200 (CEST) Received: from localhost ([::1]:46916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9GrV-0004LX-Al for larch@yhetil.org; Thu, 29 Jul 2021 20:58:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9Gqn-0004LJ-Jz for emacs-orgmode@gnu.org; Thu, 29 Jul 2021 20:58:09 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:33415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9Gql-0000sw-3P for emacs-orgmode@gnu.org; Thu, 29 Jul 2021 20:58:08 -0400 Received: by mail-wm1-x335.google.com with SMTP id a192-20020a1c7fc90000b0290253b32e8796so6229482wmd.0 for ; Thu, 29 Jul 2021 17:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XWAF0LjBCVSnBY9RoQFOvz+jZQtZuOW8MX24FkA+CME=; b=Ouo4yQ/kefT8hYKvxNzPfRLxOpUAETG7jUENIioVFYyrDerj3tywu3zcSG+xmAftlR djyjJMxYBjYPUuYL6slmayfB7DFhbK5HAG1cSqCeNSIEDkMoFrGywfp4ogHZnp7CsEJ/ RTen2m9ZqgKhhWSZex2X6L26CYvgHoW7zasLBh3+znxqpfJdZkQe9p4EcTqqqMtFxuuc Kb7eRWHi2gT+hULCJFC4mXQKicG/Wvt4siBBqGibfQItbjGFaybdD6XIgnPKCMkbHHVK PuTBY+Rw9pPGwsAiZHPqbxHmj70PwYg24ManvhoaP3ibPq8nZiUYB0m93lUHCvBDV7Tg 5xTQ== 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=XWAF0LjBCVSnBY9RoQFOvz+jZQtZuOW8MX24FkA+CME=; b=F4oAx51YbyRmoqtZSi7G5AnSh3xtk5dkuCbk4dl9Oori91jo0x++ftdeLiXIkIqEc8 EYyRI6Ji6FssqdguchOEyoGiABOPKKNxtyqEkIdmqeXz92t7eg2cem7G1Mp4UUTDeC2l so4+gwIA6KwyzenpoGaizvJwhGCPNlRZEiIAG5aZaqylkKS/dOFfR9zm4kanw9FHk7KR FjxcjhydYf3wUZoiSkVTTS7IfC3RyWCGFiHv8+rh3l14pomPuEDpYNo0SqFt57zln6ul yIGskSf7Pdt4nHcelFfQ7LEw86tuTdwwDBxKjr40WwBHkzG0EYbcFsxUM+Z9yT8oV821 y9Rw== X-Gm-Message-State: AOAM531EGH2OzqII5n/HQ0GpV5ybd2NY04ss9S+AJEV2Bjv2HgR6/ylh 67F3lFAE6XaquhTc0hmjr1MnCuUWVYo+m4R7h3w= X-Google-Smtp-Source: ABdhPJwPREYPqgB1rfwX8aR4i5iPPFK6dhCKmrB1HL3kahjx5qD/NQ8MZaTDVMeBCaAyChzjh8vSd1UADp8m4aj+Ews= X-Received: by 2002:a1c:2390:: with SMTP id j138mr33274wmj.66.1627606684913; Thu, 29 Jul 2021 17:58:04 -0700 (PDT) MIME-Version: 1.0 References: <87czr0j4xr.fsf@nicolasgoaziou.fr> In-Reply-To: <87czr0j4xr.fsf@nicolasgoaziou.fr> From: "Bruce D'Arcus" Date: Thu, 29 Jul 2021 20:57:52 -0400 Message-ID: Subject: Re: [org-mode] make citation object available to org-cite-make-insert-processor SELECT-STYLE? To: Nicolas Goaziou Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=bdarcus@gmail.com; helo=mail-wm1-x335.google.com 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, FREEMAIL_FROM=0.001, 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: , Cc: org-mode-email 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=1627606734; 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=XWAF0LjBCVSnBY9RoQFOvz+jZQtZuOW8MX24FkA+CME=; b=iWiTNwblxQxwbjrz+ktx0+1E/Rtsq0okfpvE0Gn71ern2Xd6ndqiDkyrSf27lHNAHmp3SO O/InwO/5f1iexOX2//fHnwu7InwClC+Qggr2G63EGc97b7XKFYzhgEnvp/xA3wjtewsS5B 0PfH+xevC/uvWY4SU0zuZ9Hk/HMSUMA+bUEtC6uvpFOd21tNAoXx3h34RgWAXpkxxNn9Pd bTU3HSE1MwfPMHu/t1FQ5oPd1cMsNvlxoitxHliUVh6BiT3E49dTYOghDKMQ1bQR7CZhzq 1Nzp+KR4acxEzNeB9P1ZGVVP2skGdjKxsLQMBT0wo+9iXTuwgISouYuM5itJ4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627606734; a=rsa-sha256; cv=none; b=E/7J+NvfLL8/UXhC7hJhd/wO08O5XK5qvcGKw+CnCplLonT4Ne2NYsWIXg0ekmZZwCSZ5A bAYvQCwQxOVPvTKf4F1Itl9+NRxOocpCYi3pg7qdo1PkDoRH/6OK7IAWGKdQVBMr7imDCf S+UWTwS3ZK7Q7VI2y2FuNu0UMmqzSa5I5aFrvX6oLu3A4qAnTpARGNcQcY7154vjgvVz39 xoQQugmMYLSvkMYHctWv1wGi6X4RX3wYYQ5kOR1GKYRI5WDq+JvqKZQebNrD8FppZhdkB0 MafkwrV4ZheFfEqQmsBisVm4/Rz+Ey+M4x6x4KdS4f6K38kNjUo4f+Y9y/tA9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="Ouo4yQ/k"; dmarc=pass (policy=none) header.from=gmail.com; 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.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="Ouo4yQ/k"; dmarc=pass (policy=none) header.from=gmail.com; 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: 6103F3C40 X-Spam-Score: -2.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: zqO8QqR1BehN 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