From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GNsqGW7srmB7PQAAgWs5BA (envelope-from ) for ; Thu, 27 May 2021 02:48:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kBj3FG7srmBUQQAAB5/wlQ (envelope-from ) for ; Thu, 27 May 2021 00:48:46 +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 C6F3E179D3 for ; Thu, 27 May 2021 02:48:45 +0200 (CEST) Received: from localhost ([::1]:53164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lm4CZ-0004xZ-3d for larch@yhetil.org; Wed, 26 May 2021 20:48:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm4Bt-0004xD-4W for emacs-orgmode@gnu.org; Wed, 26 May 2021 20:48:01 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:44595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lm4Br-0005zu-AD for emacs-orgmode@gnu.org; Wed, 26 May 2021 20:48:00 -0400 Received: by mail-wm1-x331.google.com with SMTP id y184-20020a1ce1c10000b02901769b409001so1492005wmg.3 for ; Wed, 26 May 2021 17:47:54 -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; bh=m2QdCEZq4UlEZ+v2J7pn+0Th1YQVWYyy5+bMHUg7IFI=; b=TcR/837UlWAHxV8UyPh/Cq1BpwsCjZgnCNQzQVoLAwJW7XCNcPkQTXN1ZKkQqMlMRW Nk6eAT8501/iuKy0JVLx8IyluofhSjzZFHnRUNObL7C4MeFBT9eCi4UyBS5Ywge9RW7/ 76dfOQfyRV5/Yswqz/yE7e9p/I8By/2jK39q2+za50PFwTaFltomDldK61y0NJ6p8VgK dGmypzUvNtqyXA/Hf6ypzyv6nteOUEINUqel2ko7qD7uJC5QnW6jZ3Q4C1E8KkUhT0mC cJPAq/1FlcFPgKPBPaNwZEK5tSaRVGngW1ipKhg1BOMFcBtFufDboJCiTaT/LZWU84RF f1rw== 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; bh=m2QdCEZq4UlEZ+v2J7pn+0Th1YQVWYyy5+bMHUg7IFI=; b=dP3vsBVwI2fW86dm7Lc1ROoFocUnK52NDcwun9WpkmmMOc0g4b4ZCCQpuumqA/Xs0P Nx2Yk/L+1hMQUpo9IMckM5fhmfFg58h1DxjLxEdFFIINoFtQ1ifSnwY4FlWme2zexCEb m69sYeoSB6LG6QNNShqQzKe27CuGWXu9qcGibsvUXi+/U7IfXm6VVk4BGZWwMx3xoBcD yy3w+kuNTT+16iVz3GO6LeXX7D3DqHXQj6CtGjTwn4TxzqLKHC2uZysk8oaGR+V66xEz rF20Vpuqh1cSgHsIS9dtPoYmNbgL+h+T5lazy4D2zQPkLizRDS+rJNZXjutrcZMplavV 6Tqw== X-Gm-Message-State: AOAM531ltASRGQAABMEJIglYql1RJpkx2IFWoUkcQEEvYjuUhRGrsRlm m55MOAvrKw16MXNt7ByzksZ2ut8Qoty7+ZJT1bF6XzLapv5uBw== X-Google-Smtp-Source: ABdhPJyJdWDqutXs/QE1riMEcEYxJOA/ohYCGJiQF8Pd6jyElV1MVlOzO/6opGhWpIL5vz1Hx7w7rz2/ohDaLv2Ps4k= X-Received: by 2002:a7b:c252:: with SMTP id b18mr867873wmj.32.1622076473402; Wed, 26 May 2021 17:47:53 -0700 (PDT) MIME-Version: 1.0 References: <87y2c1dym9.fsf@nicolasgoaziou.fr> <878s41du82.fsf@nicolasgoaziou.fr> In-Reply-To: <878s41du82.fsf@nicolasgoaziou.fr> From: "Bruce D'Arcus" Date: Wed, 26 May 2021 20:47:42 -0400 Message-ID: Subject: Re: [wip-cite-new] Initial implementation of `csl' citation processor To: Org Mode List , =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=bdarcus@gmail.com; helo=mail-wm1-x331.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=1622076526; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=m2QdCEZq4UlEZ+v2J7pn+0Th1YQVWYyy5+bMHUg7IFI=; b=iPCbT4CE5vXjnpl91cS/o1/is9YN2oE27r28KfcP8l3942VwNuNxjsS8PnTWOgUCXp+3Vt s72f7tMSJtVqWyFw7+mgvZeUd6ofeZXdBVeSopcE4ILUMkm3depvrSX9UWBSW0cYK61Npz APE51sj5UGOwdC8rbBhOL3quHhbJOPurofNW+iVrrhaGKe3PS2TsI9gqNY+84fy1C2yf+C 9wvvOxOAaVzz3xgx7ZxkyB6nGFbcapB5ELKKUNGGohhLHHX5ELi4zjMxY8+pB6rLtwCRKD XL/0u7tSC//17pSgpXPoWl57/G1jHYJ3XsbTOtjZC8LazbEf3xk5Rh8DdrqAPA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622076526; a=rsa-sha256; cv=none; b=W1kGuzezLbnkTDC8ZpLzC3Yv/jWX64BgCgFJ2AO/2m8QrWlWzK/otBqeCFu9SEw/cHTmyQ 4WEsR6T3jIQtgLEK85mLUgFguPmBX0dkkbQGrtuX5y946lISwd5LI38YeCbSnYMKbW1WeE Vgw/uf6B7RJNVdQbdSxEd0ycV/PF0yWM3tPTlP8RBNUhvHjEs3W6/5D6+jlFlA25nH3Q+J 8OBzqM5vCQyIXg336qo+khb4ogRNPKqVknRQPDb4pBNEnIorYCCKgxYOV43G0+IQ6FUa/y EIKhmUdI3YNFJ8Y9UYrO0NbSSGZhG/bbmz57Ua/gNkcBJPpU1fls0eBkCg/6Uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="TcR/837U"; 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: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="TcR/837U"; 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: C6F3E179D3 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: IYa9evmF+DZE On Wed, May 26, 2021 at 6:07 PM Nicolas Goaziou wrote: > > Hello, > > "Bruce D'Arcus" writes: > > > What if a developer has the idea to hook up one of the new, very fast, > > csl libraries: either the haskell version associated with pandoc, or > > the rust-based version associated with Zotero? > > > > Possible reasons they might want to do that: performance and/or > > compliance/features. > > > > Could you make sure this module is coded in such a way that it should > > be relatively straightforward to do that? > > The citation processor is pretty much centered around the API provided > by the Emacs Citeproc library. I don't know what interface the other > libraries you mention do provide, but if they are not close to each > other, some work will be required. They are close, but .... > Fortunately, barring constants and defcustoms, that's roughly 300 locs. > At this size, doing anything is (or should be) "relatively > straightforward" in Elisp. ... 300 LOC is indeed pretty compact. BTW, I did get it all setup, and do seem to have run into a bug. Input: [cite/noauthor:@latexcompanion p23] Output (not position of the locator label): (p 1993, 23) BTW, I mentioned on the citeproc-el issue tracker that it should be pretty straightforward to add support for both the "author" and "text" styles there, and then in turn here: https://github.com/andras-simonyi/citeproc-el/issues/15 This is because "text" is basically just "author/bare" + "noauthor". Bruce