From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +BDqNA15SGGRbwAAgWs5BA (envelope-from ) for ; Mon, 20 Sep 2021 14:05:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id bVKXMA15SGGRXwAA1q6Kng (envelope-from ) for ; Mon, 20 Sep 2021 12:05:33 +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 DC22654A2 for ; Mon, 20 Sep 2021 14:05:32 +0200 (CEST) Received: from localhost ([::1]:58404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSI39-0008Re-U8 for larch@yhetil.org; Mon, 20 Sep 2021 08:05:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSHui-0000Z5-6E for emacs-orgmode@gnu.org; Mon, 20 Sep 2021 07:56:48 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:36742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSHug-0005ab-Da for emacs-orgmode@gnu.org; Mon, 20 Sep 2021 07:56:47 -0400 Received: by mail-wr1-x42b.google.com with SMTP id g16so28875905wrb.3 for ; Mon, 20 Sep 2021 04:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=a8LqOwV2p+oESQCWjqlyKByTz1Su/HNns+6WFHMmHBY=; b=emrSo4f5yD9KEncRbGVj/8tuKy/NwHHbj2crcvQfs6LIp+zHUppm2culbxNqnJyMQw RQzR07OJFcz7tkTqMkCkvoy/BVO5hCch6/7eJqw6fyT2v66m1uw8SJZuyZxEh8TfNB8v kbTKOw2sjPkWlpkLb4pMCYb7Z+AROnFshJlk1tFOYU+usDjuH6InJ4Fr3L9Buyjkbg5B cOMtwc6T0Rp7YhvYwrBbS/9TJyC7LEKy30blbyNJO8dcOEPppWxsl6B1cu7eYPu2/QpZ ZCPddk5tzS2bTE0rRIB4vRgjpG91qBzPi1A5MsVnSJ6lITIrqmfsE3jSXV2sTmtd9amo +qEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=a8LqOwV2p+oESQCWjqlyKByTz1Su/HNns+6WFHMmHBY=; b=H9ICbKZGMOWIjrAw4i+SidFjSkn3EJna00s6rH0IyEpW3EQsn62DrZzlUtXd+6bm93 3Bp06opEUb9XEeMPtRoGJGn5gd8WxUO57AyoTNatWCodpcaeckyq6GkhVrfgT3cuM7zC VzhjntJztnHvzAVZtgaj97RAVnm/DX3LHl6BcHrXGrW9z7NmEierwPn5kpHX/FX6yHtt P4JJUHt2SpeTh5WkfTvQX8aOQTl/B5T6fe//Wj2/px+LnVQlcA8gwE8KTgjKpOUSHDpV CSLlx8Eww1Cs94+avQgirLhmiRDIAYVPDA6C5wWwTj6GJdz4+zGfwVU+1gW6QFi90vVA 8oRg== X-Gm-Message-State: AOAM533oOP4HFzjmrDnTcW2VoZEeSpItS1N4G9YPOxDPaFvvhcEX/gKZ U3ooAB7nhCA6ejQ6Gh+Q0lQ95LUyQnAx3xL3DRE6duyL X-Google-Smtp-Source: ABdhPJw0bUUUGe3bHG0P5IwAUZ3xLhHCA6J3MIYp3wGeUhFL0DiSceHduullSS2oAOhXTkcPBaqXST0fW2Upu2fFm7U= X-Received: by 2002:a7b:c441:: with SMTP id l1mr23061718wmi.69.1632139003172; Mon, 20 Sep 2021 04:56:43 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Date: Mon, 20 Sep 2021 13:56:31 +0200 Message-ID: Subject: [PATCH] org-cite: Use citeproc-el to create CSL processor itemgetters To: emacs-orgmode list Content-Type: multipart/mixed; boundary="00000000000082883605cc6bf9c0" Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=andras.simonyi@gmail.com; helo=mail-wr1-x42b.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=1632139533; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=a8LqOwV2p+oESQCWjqlyKByTz1Su/HNns+6WFHMmHBY=; b=QMUD6ZbmF2OSiSLYS8TbMXI/AGHh+OWwkFpe9JOmxqqjVD3h0CPu1ChMGVZE1LnUFnj1oT N4qe8uyyY97Oi3u78CSUYNH9mbzB5WVZTSO2bQUzV+oWvmMCeHRTOdsf9Tobl2oyRF/4xO xCeY5cvIr6Bb9Ts3GiFOE7ABOEV9irUioN+sUgXdIihnKw2DsLzVg+NmXBw9B8ZIaKHdi0 c0UyM7kmTfVdNEeisyX4ly/jMH45MMssbF2ML2uA/JU8586/ERLBFJ+1rKCnSiss46iNi0 jPUC8nMfuHsO7sJ62t94RX9yIPOhGt1oKJO2qui0EX2ha3jvonW4woehtbihqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632139533; a=rsa-sha256; cv=none; b=Sew+NY+Vf1kTkgXSOfV86eg3cG8lBICt/TJQHccJfr0ewDKIvfhfDKhOkgyjN5ZGgIpkOa fQlQy1Uy4xpuH4Kt2Brexx2desyMNu7+6SMghi8xeyxqCR/vzSdJufgWA1EXFBurGYxKTP EqMVxA0o7cXDPomfLYpR/8VOMb424nYQnALoVrci6wESlBZlBK0Faeqg+S38iYu8F2zRtI Vju3hIF7/bReMEBm2X76qHFIf2tkP7eUG/zRlS624c1lqo0I0pXx8aYfC/TVRJsBKN+28F A6R3kw42K1o+/aJkbxoqqYeRMsvk60SLo2xexAo4IwaSBJvPXsXSomiMhxztGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=emrSo4f5; 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: -1.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=emrSo4f5; 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: DC22654A2 X-Spam-Score: -1.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: HwrtdFz4W3an --00000000000082883605cc6bf9c0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear All, this is the first item in a series of oc-csl patches which I've accumulated and am planning to send this week. (My first attempt to send a patch, so please be patient and forgiving :-) ) This particular change removes the itemgetter constructor function defined in oc-csl.el and uses the one now provided by citeproc-el which has the same functionality but also supports org-bibtex bibliographies. In addition to being a bit more featureful this change also avoids unnecessary code duplication. best wishes, Andr=C3=A1s --00000000000082883605cc6bf9c0 Content-Type: text/x-patch; charset="US-ASCII"; name="0035-oc-csl-Use-citeproc-el-to-create-CSL-processor-itemg.patch" Content-Disposition: attachment; filename="0035-oc-csl-Use-citeproc-el-to-create-CSL-processor-itemg.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_ktskuk6o0 RnJvbSA3Y2M3MDQ3NTE2OTcwZDllN2RhMzJlMjNiYjExYjM1YzhkYmZhZTZlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/QW5kcj1DMz1BMXM9MjBTaW1vbnlpPz0gPGFu ZHJhcy5zaW1vbnlpQGdtYWlsLmNvbT4KRGF0ZTogTW9uLCAyMCBTZXAgMjAyMSAxMjo0MToyMCAr MDIwMApTdWJqZWN0OiBbUEFUQ0hdIG9jLWNzbDogVXNlIGNpdGVwcm9jLWVsIHRvIGNyZWF0ZSBD U0wgcHJvY2Vzc29yCiBpdGVtZ2V0dGVycwoKKiBsaXNwL29jLWNzbC5lbCAob3JnLWNpdGUtY3Ns LS1wcm9jZXNzb3IpOiBDaXRlcHJvYy1lbCBub3cgcHJvdmlkZXMgYW4KaXRlbWdldHRlciBjb25z dHJ1Y3RvciB3aXRoIGFsbCB0aGUgcmVxdWlyZWQgZnVuY3Rpb25hbGl0eSBhbmQgc29tZSBtb3Jl LCBzbyB3ZQp1c2UgaXQgdG8gY3JlYXRlIHRoZSBpdGVtZ2V0dGVyIGluc3RlYWQgb2YgYG9yZy1j aXRlLWNzbC0taXRlbWdldH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l0ZW0pKSBpdGVtIGNhY2hlKSkpKQotICAgICAgICAoKGFuZCAob3IgImJpYiIgImJp YnRleCIpIGV4dCkKLSAgICAgICAgICh3aXRoLXRlbXAtYnVmZmVyCi0JICAgKGluc2VydC1maWxl LWNvbnRlbnRzIGZpbGUpCi0JICAgKGdvdG8tY2hhciAocG9pbnQtbWluKSkKLQkgICAoYmlidGV4 LXNldC1kaWFsZWN0IChpZiAoc3RyaW5nPSBleHQgImJpYiIpICdiaWJsYXRleCAnQmliVGVYKSB0 KQotCSAgIChiaWJ0ZXgtbWFwLWVudHJpZXMKLQkgICAgKGxhbWJkYSAoa2V5ICZyZXN0IF8pCi0g ICAgICAgICAgICAgIChwdXRoYXNoIGtleQotICAgICAgICAgICAgICAgICAgICAgICAoY2l0ZXBy b2MtYnQtZW50cnktdG8tY3NsIChiaWJ0ZXgtcGFyc2UtZW50cnkpKQotICAgICAgICAgICAgICAg ICAgICAgICBjYWNoZSkpKSkpCi0gICAgICAgIChleHQKLSAgICAgICAgICh1c2VyLWVycm9yICJV bmtub3duIGJpYmxpb2dyYXBoeSBleHRlbnNpb246ICVTIiBleHQpKSkpCi0gICAgKGxhbWJkYSAo aXRlbWlkcykKLSAgICAgIChtYXBjYXIgKGxhbWJkYSAoaWQpCi0gICAgICAgICAgICAgICAgKGNv bnMgaWQgKGdldGhhc2ggaWQgY2FjaGUpKSkKLSAgICAgICAgICAgICAgaXRlbWlkcykpKSkKLQog KGRlZnVuIG9yZy1jaXRlLWNzbC0tbG9jYWxlLWdldHRlciAoKQogICAiUmV0dXJuIGEgbG9jYWxl IGdldHRlci4KIFRoZSBnZXR0ZXIgbG9va3MgZm9yIGxvY2FsZXMgaW4gYG9yZy1jaXRlLWNzbC1s b2NhbGVzLWRpcicgZGlyZWN0b3J5LiAgSWYgaXQKQEAgLTM5MSw3ICszNjQsNyBAQCBwcm9wZXJ0 eSBpbiBJTkZPLiIKICAgICAgICAgICAgICAocHJvY2Vzc29yCiAgICAgICAgICAgICAgIChjaXRl cHJvYy1jcmVhdGUKICAgICAgICAgICAgICAgIChvcmctY2l0ZS1jc2wtLXN0eWxlLWZpbGUgaW5m bykKLSAgICAgICAgICAgICAgIChvcmctY2l0ZS1jc2wtLWl0ZW1nZXR0ZXIgYmlibGlvZ3JhcGh5 KQorICAgICAgICAgICAgICAgKGNpdGVwcm9jLWhhc2gtaXRlbWdldHRlci1mcm9tLWFueSBiaWJs aW9ncmFwaHkpCiAgICAgICAgICAgICAgICAob3JnLWNpdGUtY3NsLS1sb2NhbGUtZ2V0dGVyKQog ICAgICAgICAgICAgICAgbG9jYWxlKSkpCiAgICAgICAgIChwbGlzdC1wdXQgaW5mbyA6Y2l0ZS1j aXRlcHJvYy1wcm9jZXNzb3IgcHJvY2Vzc29yKQotLSAKMi4yNS4xCgo= --00000000000082883605cc6bf9c0--