From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2ODxHaLfsGAc+QAAgWs5BA (envelope-from ) for ; Fri, 28 May 2021 14:18:42 +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 6PQnGaLfsGCCXAAAbx9fmQ (envelope-from ) for ; Fri, 28 May 2021 12:18:42 +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 593F72862A for ; Fri, 28 May 2021 14:18:41 +0200 (CEST) Received: from localhost ([::1]:39016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmbRn-0001n9-My for larch@yhetil.org; Fri, 28 May 2021 08:18:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmbQT-0001ld-Rj for emacs-orgmode@gnu.org; Fri, 28 May 2021 08:17:17 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:35753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmbQR-00024Q-O3 for emacs-orgmode@gnu.org; Fri, 28 May 2021 08:17:17 -0400 Received: by mail-wr1-x431.google.com with SMTP id m18so3120841wrv.2 for ; Fri, 28 May 2021 05:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=1ChYag26Csfi9ag8Qd3TP/H7xPcuBnFvSMRKilWfyrQ=; b=K5hbGdEV6NRUVfmugYoJT9/ku6jmlmU/42qY5RixZmbhKFUfhcezNjCz8XaG4JT1cA untMHBMUavEQUD4B16xF5rHv9hHHi/9nKozDPmVKRN07D+0yOZCtl+t2GtZB2me3+vR2 tir3K7JOX/ZQS2X+wvBVqCQFbQKyCuLhUR04lTchjjRYKhuhTaVbCtcw3PcV2TFxFyzO G4mIPMeOfi2LW89Os+szuxd1IA0cvRbO+bA7rwUc/91n3KQ5KI4dhqY1JgI410uoVNfA jQ8mMuJimYjOul+G8dT83F1lu4l4kQHAq+pIbQ68ril3gMV75gC6Izj76wtyNLNCCsQ6 pHsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=1ChYag26Csfi9ag8Qd3TP/H7xPcuBnFvSMRKilWfyrQ=; b=JlhZrICZAa7LpkVxJV6IprvmiTJOvsygog0xBCdXszluhx1mcDJzzgCqAsZUUHmQm3 5+9H5l8TfmnYBBSHc0DDdCo3yrjf9YqLv+P5+DxJMg3AP2LmbcDfkwahUqLOWMueEZut LORkldEiZyuRcBe3kEVL1vh1CPaLcoO0rIu5nKaBm9nSogVRG577EFJgmoyXuqHYlw7N lJo7pgc4vnC7IeFydgu78d+WB4j8iZkqR9mfWffhG3dYnWWPxjGlwemm+M/o5qyscZ42 e9GDO9IekKnkd31omMcoX1wlsxM5xiz+wwA2wLWIil6lE+1Vks/h/ggj2KP6ePMQNxB8 0V7g== X-Gm-Message-State: AOAM530KX1QAHcEwuI7gu1Gn1CkMk9I2MJGVqSXPWIb9UrPYKvqa4Rck 4pJEDTcVplCk3Gmxoe/bvkNeI010giJUjltfkMpFdtL2+/wK1Q== X-Google-Smtp-Source: ABdhPJzanzF2PQJkPd5r6+YF2TmcdmBfrlzko91MS9KsjxesWJZI3GL2Uuiyu1k7UmXZCZYIJsMOxo0i0X/5cBM9eOI= X-Received: by 2002:a05:6000:236:: with SMTP id l22mr1914081wrz.77.1622204232027; Fri, 28 May 2021 05:17:12 -0700 (PDT) MIME-Version: 1.0 From: "Bruce D'Arcus" Date: Fri, 28 May 2021 08:17:00 -0400 Message-ID: Subject: [org-cite, oc-csl] citation fontification and previews? To: org-mode-email Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=bdarcus@gmail.com; helo=mail-wr1-x431.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: , 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=1622204321; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1ChYag26Csfi9ag8Qd3TP/H7xPcuBnFvSMRKilWfyrQ=; b=LWd0kI7NevvoONhzZl42xeerN3KgAHK0w3ryYwSw/LoxaMF8CZR7TCFGZjYKMpGBW5tZNi RNdzVoRnhl1uaXWCbWyR3yPN7atyRix2cRzxkuYdXqsPMzEU52rOvfsaZuh6JGIQHrhq4+ FHDyyV66WGqDDstzHOk/YhXiZKd1MBvTDAaMCcrnpyYyIZO9noZGbFgI3iubnEsRyjVTFJ kY729NZdcOffyEHNFkuzlC+x7wplUxR7cN19BIaTVFBgRKNICiVLd1s/y2XTOTF2ZEsOj4 dAAUKr9vEJmC/n80n94vyJeS0+L6t1L81BHFe7OKCGDrGaFsykHe1FRWR7IXTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622204321; a=rsa-sha256; cv=none; b=WxINyFG1EWpI9qcK8B1oVrpyDQOA47lr8jiM/nExYHAtN5HUoz9DG+sHlXzE+oVZkFUYx7 2rcKEKitQ6/x6NUpdKhRjnOSqYRQMr/ny/pXYt3I3j6WD/jmxnL0SJgg9bOkQGDNxSiCxI /OzhdHoX1BMpsPlXUl23PSElr54TZ3Nl9WaKqQ/djtWdxGn+0FVMupkqgk+InG51fSefDd BL4fCaa1NSk8OMRDmSw9rm6HfYRhFrySV073lCWVBmL2Gq7HFRRZEDR0mcC3iPzLBlOvBp ALYHfPux/q51pP0q6CbFCY93+5Mp534bCRnSM4GOO7n5o65oDjmqvoNy0HBulQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=K5hbGdEV; 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.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=K5hbGdEV; 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: 593F72862A X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: Lhjpb4B3SzB1 In an earlier discussion, people raised the issue of fontification and prev= iews. 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. 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. 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 w= ell. "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? 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? Bruce