From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YN3JDFfgoGPfBgEAbAwnHQ (envelope-from ) for ; Mon, 19 Dec 2022 23:06:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iEK/DFfgoGPOhQAA9RJhRA (envelope-from ) for ; Mon, 19 Dec 2022 23:06:15 +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 ECB6E12413 for ; Mon, 19 Dec 2022 23:06:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7OGN-000600-Au; Mon, 19 Dec 2022 17:05:35 -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 1p7OGG-0005u5-5S for emacs-orgmode@gnu.org; Mon, 19 Dec 2022 17:05:28 -0500 Received: from mail-vk1-xa34.google.com ([2607:f8b0:4864:20::a34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7OGD-0003Qy-Fp for emacs-orgmode@gnu.org; Mon, 19 Dec 2022 17:05:26 -0500 Received: by mail-vk1-xa34.google.com with SMTP id b81so4962746vkf.1 for ; Mon, 19 Dec 2022 14:05:24 -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=5RazPWOGi/exfiBzJj8Jei+wm0drzDmkeY2lYPeqgy8=; b=A7JoDo4Q4AzmDH6lI9cNivuDf4+lqa3qKOP3jdacH6P7zCRBVUjna5+SrZaHJ2Fgd5 RBu0KWzef/pQ/re7sDVxWHLuPl4W6Z7YmP17CRikOgKFGleogxqXLCf1Ab5WCh0ZepCO JBhvxeZKVyxBx2zbazdqXbCghKhTUK2CyG7NsGsz6ApObRWR8QL85zjAmc6ychAKWg6+ UCDyyEIvP3w2lv/6SSSXRf663PentF7D/SamVzw/0thBxga90IU9zH2oatfpZQClSy3p maJJO7P80/APMwIsjJcCG9biOivbUHea2vGk8hLJsRAUycwpQSL+9VdUkvYm8q9XGgXb oejw== 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=5RazPWOGi/exfiBzJj8Jei+wm0drzDmkeY2lYPeqgy8=; b=jxI9nLA1ma4ECrOKcKOFaAv0mnA1mSoQYQL18vlakOwVNS/HT2CiiWOzEFIGZRfNLO jIpYlbULvxm9z46CTbY59a4FM9k8m3dta7vSq8u/fcTikh9BUPs8x7G0zudXEOEzgnHR Oq09XeClWsBxAn/Lfkh6d3Qmd5Df1gs956sQnMWf8uDthtea8CgAmOMuy0D8cbZ3gtaQ KxIGFs31FKsx93AiG37A/9lqobkWboACAz31xhhennhAJj7Teftc63LRnKlqcjX7bU1b B/oeOnM5G5Wt3vPfDVWh6pAoj+vixrCc2K4XIUFcPzHmEQrxGZcj05jx71TnykQ+ca5N ru4A== X-Gm-Message-State: AFqh2kp3y0Z34tR+Jb3n+CooxoUNH5ym4G+0YeSQ36cUL06xoPUEF//A nZmqgk6bnH97tmhgS9wz2Lhcvad0nGG+cEmGWpM9TOmppuo= X-Google-Smtp-Source: AMrXdXuj6CHFVSgOnP9ZlLdnU/18FpKhu1nih2FGszx+a6r8FTzw4w/POP610xp3+D24pzoD5cIh/ZYHg8BPjfp0w0M= X-Received: by 2002:a1f:5c95:0:b0:3c7:eefd:c8b5 with SMTP id q143-20020a1f5c95000000b003c7eefdc8b5mr1885726vkb.2.1671487523980; Mon, 19 Dec 2022 14:05:23 -0800 (PST) MIME-Version: 1.0 References: <87k02njvp6.fsf@christianmoe.com> In-Reply-To: <87k02njvp6.fsf@christianmoe.com> From: =?UTF-8?Q?Andr=C3=A1s_Simonyi?= Date: Mon, 19 Dec 2022 23:05:12 +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::a34; envelope-from=andras.simonyi@gmail.com; helo=mail-vk1-xa34.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=A7JoDo4Q; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671487575; a=rsa-sha256; cv=none; b=ScX6RrSJXPu4GHZUSaGOSiVnDZeT0m1dIvnt4mDZxISObNJ/clF3kgnu+EeL4jDUaW+Ypb oF6UMPDxrg6ArqrIqQzezY48XjNNY4CKjghvcMGl1zRFqJUn8AogsVLbE9u0xv/RL/L1xX z2QBj2zPfSp4P1kTwLJ+G+RNx38E/ZRj88hmF2yrT38k9RNGedfvNVxA6O5SjE8wrnhL0Z TI1QZLf8gp2jvdx6TBk28mTXOz8u36zWG5Uh/K+XVD4pnznxV1xYEFLPlJzPVrnI6PqlS6 E6ntTCUDbgQ2UCZ5AB33IcawQQ9qr7kl8rdYBelQzhdcP7ngBF3rtmq+sgz8FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671487575; 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=5RazPWOGi/exfiBzJj8Jei+wm0drzDmkeY2lYPeqgy8=; b=brMLks+fzvtUP0aMvXFErZVft4hRCPYqoMhMi7PL3oraFlQ2ETqveRUXhyYi1quY8d5yJm 5fjQV/wYGgGD/VWg6YDitvt6jXBVHjEkcNyNUC6BnAC4OLsSFT0Se9Qq2eZeNZSj3NWF6s Mvd+mKHDnjrspuR/TNnYYn3Zp+i9d8Uu9PmrDgxnlvvqISA8Q77bzUKQDv3LpHh4fMNaV1 3esTTdklwATQX3/iCtFjhFxH1eZSQFYSYfTe2iG0LZ27Z/69MCQ61LmA6ttnhF/sXUKCNd PrlZHLsjvX41zjmMreF1UWKRbvRVXPSXSFvai3cbYE9/jC0+ynNI9TyGYS67fA== X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=A7JoDo4Q; 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"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Spam-Score: -9.51 X-Spam-Score: -9.51 X-Migadu-Queue-Id: ECB6E12413 X-TUID: HvDtvpxLNHGz 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