From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qDS7KxMssWAdMQAAgWs5BA (envelope-from ) for ; Fri, 28 May 2021 19:44:51 +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 SNf/JhMssWAnOwAAbx9fmQ (envelope-from ) for ; Fri, 28 May 2021 17:44:51 +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 0273CF454 for ; Fri, 28 May 2021 19:44:51 +0200 (CEST) Received: from localhost ([::1]:38896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmgXQ-0005vy-5Y for larch@yhetil.org; Fri, 28 May 2021 13:44:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmgW0-0005jO-D7 for emacs-orgmode@gnu.org; Fri, 28 May 2021 13:43:20 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:54741) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmgVw-0004g6-Jb for emacs-orgmode@gnu.org; Fri, 28 May 2021 13:43:20 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 2EDC31BF20B; Fri, 28 May 2021 17:43:11 +0000 (UTC) From: Nicolas Goaziou To: "Bruce D'Arcus" Subject: Re: [org-cite, oc-csl] citation fontification and previews? References: Mail-Followup-To: "Bruce D'Arcus" , org-mode-email Date: Fri, 28 May 2021 19:43:11 +0200 In-Reply-To: (Bruce D'Arcus's message of "Fri, 28 May 2021 08:17:00 -0400") Message-ID: <878s3yah5c.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.201; envelope-from=mail@nicolasgoaziou.fr; helo=relay8-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, 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: 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=1622223891; 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; bh=QYXFyEhN1Rtp1NXgygTO/6MzoOtoymTFnAyTOkJ7fP0=; b=TG4lvzWtXK+0f3Y7WZeac7bgPcsnyAKfy0NRUiXvK/d3bDtgrd0n/IzYHJajKG9tumzgpB nlq9mfu4xXipHZ8oIFzp8slbd5iRt0tOkhF8HzlwcT1uTa3S19BMpaUYvrWFWELMs2g1J7 i7OQuXDj6UF9kWl3qRbntnrTX/duoRe6hE35gdh20RtgISVFMwm0F/5YdYnWAmFIimuvLK EjA2XmkoawoKh6L+0nqBucvLLghi+SL9Ecb9ZvFnprGsQGpIprqt64QUVHPVVKTpIeUmnn iGjdU7k6dutbjxfgttq5/k154nR97fztp4KH/nmxHbR3bYv4FNqCavaBzUTtmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622223891; a=rsa-sha256; cv=none; b=m0aEoUamxxzjbH6+U4+5yXURSdQ342XPpzHqNQJR7jTvrXNmrciffReT/ZTdkD5mwPlp8Q CDxV+yIrtx3Obkyqf+hzB0CeVJB+tp5BchiztPksYTTBQXIiltOPJFukHP7b2OHl1B2BIA Bygh5Xerstz4FZvgKEEsKIS8EVCe0tvQqWQc7hdlifavEOzqeCKHhz4dHfyEprkKdLGW/1 HDnzgC+JKfnoFF8u0Qp255SalVdZow5XxW86n66REwB8x4wcFktN8G9ud0C5SubwD4tiIg mffrQknF8VE9hPREfRlArBoASYNK+p/MM+HopW//Fj4ATx2YcUzb6U+dU0SrKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Spam-Score: -1.43 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 0273CF454 X-Spam-Score: -1.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: P8EhXUsPK+GK "Bruce D'Arcus" writes: > In an earlier discussion, people raised the issue of fontification and pr= eviews. > > But I'm wondering what Nicolas has already implemented, and what he or > others might still add. > > Details: > > John Kitchin (based on his experience with org-ref): > > https://lists.gnu.org/archive/html/emacs-orgmode/2021-04/msg00438.html > > He suggested a green face for known references, and red for unknown. > > I think Nicolas implemented this basic idea somewhere, but I am not > noticing it; I don't see any difference with incorrect keys. You need to use "basic" processor for activation. It only supports ".bib" files. > John also suggested a tooltip preview of the roughly formatted reference. > > Again, I thought Nicolas had earlier implemented this, but I don't see > it ATM; hovering over keys doesn't do anything. I sent a POC, but I didn't implement it in "oc-basic", tho. > Andr=C3=A1s Simyoni: > > https://lists.gnu.org/archive/html/emacs-orgmode/2021-04/msg00289.html > > He was thinking about using citeproc-el to attach some kind of preview as= well. > > "I'm thinking about implementing a "fontification" solution which would > use citeproc-el with a standard style to produce nice preview-like > representations of the citations in the buffer. This would require > basically the same pieces of information as citation export I think, > although it might be made strictly local, working only with the > single citation object plus the bibliography information." > > Timothy: > > https://lists.gnu.org/archive/html/emacs-orgmode/2021-04/msg00456.html > > He was thinking about previews as well, with overlays: > > "I think what would be ideal, would be if common citation styles could > define a method which produces a display string, like "Goaziou et al. > (2021)". If nothing is defined, then no overlay should be produced." > > And my reply to him, based on the example of Zettlr: > > https://lists.gnu.org/archive/html/emacs-orgmode/2021-04/msg00462.html > > I think that example would imply overlays as well, though I don't > really understand all the technical details or org-specific pros and > cons (tooltips vs overlays and such), but am just wondering: > > 1. what is already included, and what should ship default? Perhaps > Andras' idea would fit for oc-csl, since it already depends on > citeproc-el? "oc-csl" could also handle the "activate" capacity. So could Org Ref. > 2. if some is not included, say preview, how would one add that? I > assume the API supports it; so one would just install, say, a little > package and add that as a "follow" processor? And one could add > multiple such processors? You can only have one "activate" processor at a time. However, that processor may itself be extensible.