From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YCPgNxjkoGPoDwAAbAwnHQ (envelope-from ) for ; Mon, 19 Dec 2022 23:22:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iIYFNxjkoGP5jgAAG6o9tA (envelope-from ) for ; Mon, 19 Dec 2022 23:22:16 +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 9D742303FB for ; Mon, 19 Dec 2022 23:22:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7OVI-00056J-Q2; Mon, 19 Dec 2022 17:21:00 -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 1p7OVH-00055Q-If for emacs-orgmode@gnu.org; Mon, 19 Dec 2022 17:20:59 -0500 Received: from mail-vs1-xe2f.google.com ([2607:f8b0:4864:20::e2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7OVG-0005vz-4t for emacs-orgmode@gnu.org; Mon, 19 Dec 2022 17:20:59 -0500 Received: by mail-vs1-xe2f.google.com with SMTP id k11so10174498vsr.4 for ; Mon, 19 Dec 2022 14:20:57 -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=tnIPClIGCSEtEpg4tl3PoA/w2w5e+kX68lbumZ7duCc=; b=pWKkkQFVI+V7Awr8v+D/5hp6T/Ar16UWbj10fGNHPd/d376TOuWRusybDBauXM1j15 4Pnh822dmSw5pllavpP/w0mzdaye8kfFWiFgjEvXWcYCp0ndciAKlfomfeeInW0Jfzjx eXQ3UZiTpagD0YUHueOTxn2eGAr+4Gh7vkFmT1lVBcpI9yzHNuqfKidFqz/RSl8ePSi2 H2zuvEsQWC6YZtmpAuZzT7JsDIZVmqCGAmJQ63r5sY3i0n0BB6PCT+qit7Lc+8Tmz55U yTdxoiqikuoxbEUH8brj7D1yvHKNmjpKiHWA8oSvig6c48jKrOYqpUsM3BxEL5p6wyYN m5hg== 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=tnIPClIGCSEtEpg4tl3PoA/w2w5e+kX68lbumZ7duCc=; b=3RRZ5CyOujc6vlCoofQf5LkE9SRo0eMp5QzsoNkCgZWVQaE/C3o1AjZI3pIV8uayn0 bI9VMhTBa/9OPYz6CZqEOg4gQXti49WWyB2H8eujZKWLa2n9rJC16Pz0cOGXuCvA5Gqb X5Ei5w2DYiFEABZyLPvKLrTPJ/9HR8fOmziVqT183VIMIb2PVqcoHA1PD/Iaq2nkER1f gB0tyaNgdMo0+bigbMs4r2d9b8GZdiImWa3iLrZATWg4aemyR9Em8ml8lO/cox+AWZId p4xm+5sizFiypmWwIiiprCHWLLLDsb6oyaiAlSDg3rSObfz6DUrvZLb9k7F56cTOnU5t mpKw== X-Gm-Message-State: ANoB5pnJ/qOg3O+QQbkf/m0Qh0lEWd1PeRVy9em/hHiDbnF5YL8npMiK WdUiST/DQ7V9eBnqtA2HXhtnGWQ+0pO5BcqUWHwo2p/XGV4= X-Google-Smtp-Source: AA0mqf7AFVJUT56TUPHoRQjWeZds1F63zTsufqEwbS92sE51FurYDSTqHbrF/LywoPj0m7eRn0Ib3b846nA3NkVkMWo= X-Received: by 2002:a67:ebd9:0:b0:3b2:f155:4504 with SMTP id y25-20020a67ebd9000000b003b2f1554504mr11305732vso.64.1671488456064; Mon, 19 Dec 2022 14:20:56 -0800 (PST) MIME-Version: 1.0 References: <87k02njvp6.fsf@christianmoe.com> In-Reply-To: From: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Date: Mon, 19 Dec 2022 23:20:44 +0100 Message-ID: Subject: Re: Org-cite (oc-csl) tip: Filtering bibliography for language To: Christian Moe Cc: "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::e2f; envelope-from=andras.simonyi@gmail.com; helo=mail-vs1-xe2f.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-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pWKkkQFV; 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-Seal: i=1; s=key1; d=yhetil.org; t=1671488535; a=rsa-sha256; cv=none; b=jqoztxdLGjOzEKjeLQMZm1ABNm5decZyIhO8sk5GPprnN8nPTkonYujdK/ZJelfoNvsub4 9qW2X8FYcbc+bmjoM3gu4MdKE3tvoTejPHoyAXJrxf0D+02UYNW8/bCrCMAr8D5ps/zi/h iPi6lacT95dOxUcHYrOyjWu/fwtzze2oQ3rZROYa4/uiW90mrTgPJqX0JtckTX7/hr7She aYcTQVSzF3slaivrGUvXGQuA8Gv7cWEL19QfZFs6SmRoGwK6R+KOapyLHYrF97wD3bOLHp gRfOU8VUcyEATEefjo5tz4ZjhGKGC18Hg7Z1mCQaCYNUpm7fRRjckD0VMSpIWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671488535; 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=tnIPClIGCSEtEpg4tl3PoA/w2w5e+kX68lbumZ7duCc=; b=rjQtQ6G6v+iph+U7HfoUX6GSV6RxXM/GHTHnih4/vJFzssveyYEuToRMQqB6MH21HK26+M vy89Yk23sjFvIfvs0EJQ8Oedk36doMbeTT/oyloaEUPhaMKL1QFKzoJcxVUeepcmJdevBe ENA/5ZCcdMN7mljiRIKFcWxqDwGPOBF0+5mIY3GJWNNodvji0dsr1pwS/fwm7S1fgh6+Aq w545ku93IWdb0G0lHD2dtqEO6LH8hf9GeEqwKVsypKfshO7jsD/yDQgBmlkzfXxBMGkgkn lYq2BULK/mkYYffmX1OAG/LIiv1AaYnNio6hloOUoMs6dYG/qlzIYHn247FY1A== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pWKkkQFV; 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: scn1.migadu.com X-Migadu-Spam-Score: -6.01 X-Spam-Score: -6.01 X-Migadu-Queue-Id: 9D742303FB X-TUID: ooTXCKk9Addz ... I've forgotten to add that another (probably more user friendly) option would be to design and implement some kind of filtering DSL. Andr=C3=A1s On Mon, 19 Dec 2022 at 23:05, Andr=C3=A1s Simonyi wrote: > > Dear All, > > On Mon, 19 Dec 2022 at 15:49, Christian Moe wrote= : > > > Refinements welcome. I'm especially wondering what would be an elegant > > way to generalize this for more languages without defining a predicate > > for each language (given that we cannot pass the language as an > > additional argument in the print_bibliography line). > > Thanks for describing this usage! As for the problem of generalizing > to more languages, one relatively simple solution would be to allow > arbitrary sexps as filters. Then one could write something like > > #+print_bibliography: :filter (lambda (item) (bibitem-has-language item "= en"))) > > Would this type of extension be helpful? One (not necessarily > important) consequence would be that filters of this type would be > obviously unusable with the biblatex exporter. > > best wishes, > Andr=C3=A1s