From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GH7pG7JLyGPQ9QAAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 20:42:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YOAwG7JLyGOSnwAAG6o9tA (envelope-from ) for ; Wed, 18 Jan 2023 20:42:42 +0100 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 1A65ED930 for ; Wed, 18 Jan 2023 20:42:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIEIr-0008Uj-Gj; Wed, 18 Jan 2023 14:40:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIEIC-0007TM-Vf for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 14:40:17 -0500 Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIEHg-0007lf-AW for emacs-orgmode@gnu.org; Wed, 18 Jan 2023 14:39:45 -0500 Received: by mail-vs1-xe2a.google.com with SMTP id i185so36925330vsc.6 for ; Wed, 18 Jan 2023 11:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9b1cOO1PnG6XnF5+TWmnTyvNu8t+3XS7Ry2jgaU63kw=; b=iv3/dIP08nZJkno4oYgZCQkEexLklJ1tO+NNzC+xk17FdZ0pC8O/JLXA7xB26TDrMT YpDN5OiUn+vbTaR8TfSMixN+YT0AQ8zy3FI7iA9djipmDwYVsNJ22Yb0yzIduRvvWJ+r ny1K2+UpafkYR4Ngzo2hVVlOoiD4w+QqiBXu7CxAkqUE4XGk5S/HZRs8CC+7qmMhODc4 JyXJJakbfyno8IoqHBhvQd9cj249o2oGxMK394/ELKsWRhtDLGiHZRvWG0rv2RSraR3Y 5nHs4DjIhJhOZpENG1Sl1/d6+AKpxzYPICP5HTi3CIFqBzcn8TpnIRu99Q1PJ1TXIhaJ y8lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9b1cOO1PnG6XnF5+TWmnTyvNu8t+3XS7Ry2jgaU63kw=; b=Ww9XZaiWUNyy/qwj9kLCIQUPcbo9uZ/RjaH/jkrOPZAeXZxR8EJTjJbLaH6D8JzReC e28qsrPlifek4Jaoo/WIkihtz1GuWpimL90+N+hDi77yCoOiW/XYGp7aCwAtMBKbAOc7 T9uQx9bFybuR3fcRd0pvX1bi32NFs2llqyCNTX1pgciTJ7W5uWH+Zjnir2GaMa4MRq/6 pp59e1pWwGR3vxaB9fLc40Hb051YB3huxzLXLFaJMo1DfXSLCYYlyHVLXht07kKHtHCl 95LCfxFyZYBzi5VVDZkBccGBeTh8Bla2rGkMiA1r+NsCy2Tznw6ozQIzcgX00vT5UM4I HrWg== X-Gm-Message-State: AFqh2kquJbEsNgebryOl4zoGlKIdccqcTFXbKx3LHpWWJEc9//dVe90Q Ra6Evb+w6QR9y5kn5QYpvgN/fxyQVoclcS7bL3QVp0GukqI= X-Google-Smtp-Source: AMrXdXsDBWkubW9Mac8IS168j1kcDjwN+v3SFtqAMFt7B/3FB9T6pzcPIWAcg7FMj92/Oi3fKh90DUyz5imU10KMpts= X-Received: by 2002:a67:ea03:0:b0:3d0:d172:3a02 with SMTP id g3-20020a67ea03000000b003d0d1723a02mr1120146vso.41.1674070782261; Wed, 18 Jan 2023 11:39:42 -0800 (PST) MIME-Version: 1.0 References: <87k02njvp6.fsf@christianmoe.com> <87fsdajqtg.fsf@christianmoe.com> In-Reply-To: <87fsdajqtg.fsf@christianmoe.com> From: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Date: Wed, 18 Jan 2023 20:39:29 +0100 Message-ID: Subject: Re: Org-cite (oc-csl) tip: Filtering bibliography for language To: Christian Moe Cc: Denis Maier , "emacs-orgmode@gnu.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=andras.simonyi@gmail.com; helo=mail-vs1-xe2a.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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674070962; a=rsa-sha256; cv=none; b=OPBZZwg06M/h5LjQfAcy76+VBIesieyAhyIFMsuLnbJLOGR5RLNrICfo5ZtGgwXmGzzZ8I KpwZ1rrjkS5ZsQZq9YAp0QAOp2STDpyhd0A+kO9Sq4w+Dvxc5nlREdCastULumLtTX2H15 V08edZY8uiMrszWJhc3bZ/C57AX9X1hjWebwCpfcHRxpjN/ciHcMABwI37xHF54oONZGDT 75MTBxDpJzfEmlSVtQHF1o8eSYc/iN2n4wp8Wjhxy4zp/dRYUCfKjE0wf8k++eXSSyV1Zj Tp32e6AbaluGg21dzSAZqo6ry2UMwSIMNkgZ7EGN1/d4tIfe+qm/Qw1L0MchsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="iv3/dIP0"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674070962; 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:dkim-signature; bh=9b1cOO1PnG6XnF5+TWmnTyvNu8t+3XS7Ry2jgaU63kw=; b=sveTETC3uojfdLXNWvqGHYAMDIW3bIsG19hFfYoof9p96eyHwk/ok8t2VMw1j3dsPwKIb+ 5IjWk23ajJMdxwaedAFOTisSerw21eJEqLRWghRptW7bFrR+Oay6aw+u5OYfMUQEPqWcpc xVSVlZlsvUNVPS0TI4GpirBeQhYxrO8InyDHQz4WEBTf4C36264sFJUAcSCLng7jPUiprB ISeVrsyoiTq+S5ZD5nmWPGWEQPe5I02FHVDHwZ01/WkYjp2rj9e0YfWKVXzeh4KUNEvH7N wZnzHlYvoWyNlXSa9kDCJK/fzIJcD0Zin9iWsUa8PDUBMB9Iy9UBhq6yr6jHQA== X-Spam-Score: -6.29 X-Migadu-Queue-Id: 1A65ED930 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="iv3/dIP0"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.29 X-TUID: lfGJ87yGb0GB Dear All, first of all, sorry for replying that late. On Tue, 20 Dec 2022 at 11:46, Christian Moe wrote: > Arbitrary sexps would give us more flexibility. Alternately, one could > achieve more or less the same by letting :filter collect any additional > arguments and pass them as &rest to the user's predicate function, > something like: > > #+PRINT_BIBLIOGRAPHY: :filter bibitem-lang-p nb nn no :type article I like this proposal a lot -- it seems to strike a good balance with regard to safety and flexibility. I'll try to make the required changes on the citeproc-el side and then propose a patch here. > Alternatively, I think there is a case for adding a user-friendly > :language property to the print_bibliography keyword. On my bookshelf it > vies with primary/secondary sources as the most common criterion for > separate bibliographies. > I was going to say that this is the only extension I can think of that > is needed beside :(not)(csl)type and :(not)keyword, but of course people > are sooner or later going to want easy-to-use properties to filter by > author, publication date ranges, and probably other criteria I cannot > think of right now, so it's a strategic decision for the maintainer(s) > if you want to go that way. :-) this is also a useful suggestion, although with the added difficulty of having to support both bib(la)tex and csl-json, which use, I think, different sets of language cod= es. best wishes, Andr=C3=A1s > Yours, > Christian