From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 MJM0NS9xoWNyMQAAbAwnHQ (envelope-from ) for ; Tue, 20 Dec 2022 09:24: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 mp12.migadu.com with LMTPS id sMwgNS9xoWOXaAAAauVa8A (envelope-from ) for ; Tue, 20 Dec 2022 09:24: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 522B038EE6 for ; Tue, 20 Dec 2022 09:24:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7XuB-00031F-S5; Tue, 20 Dec 2022 03:23:19 -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 1p7Xu3-0002zj-2Z for emacs-orgmode@gnu.org; Tue, 20 Dec 2022 03:23:12 -0500 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7Xtq-0003KQ-3s for emacs-orgmode@gnu.org; Tue, 20 Dec 2022 03:23:00 -0500 Received: by mail-ej1-x62d.google.com with SMTP id m18so27408824eji.5 for ; Tue, 20 Dec 2022 00:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:subject :user-agent:mime-version:date:message-id:from:from:to:cc:subject :date:message-id:reply-to; bh=wJ7FZPVufAESmVApdaZ6TO9I/xdRkoOJgNdfZf97LWY=; b=ZuUi0FXwp/M9MTxCnJsoNbrLWwPgRwF9Hzs88+J7EDb5rOtim5MYmjXvjR6UwWwRnB 3kpBQTQPhUOc4ob8WUfRn6E7nU/BZHd/13ABQRkg6ciTe+o3YlFRCPt8fQVY+o7FgBxd NgqFZnxcl6oOj6pU+5zaIlV1tl7nBGFc5+Rd+p4AxRAfYmkiOKrFwG2vtDSwMqsnnQg2 zhc4pja1SNx3+m0cXdActEaxuGP1gLhh35ZhW/rm/kvr8bmh5ZcCSLPO//pqcCH/u1P2 7ymsnHlar3xFD3ZCRrn8c+4KmorbrcYc4K43+QPAgQwvdI4gwjKFYQY7dD4XIQ1nwUK1 ZLNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:subject :user-agent:mime-version:date:message-id:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wJ7FZPVufAESmVApdaZ6TO9I/xdRkoOJgNdfZf97LWY=; b=yinTbz4sPV5BiVx1RMjz4sE1ikNMLHwBI3eLICsKGwpvUH8qksCcBvwaeCQNHpoLhF f2OG8Vf4vtyqcHf1cRdNZxPtaBvQ4VVHi34LUuWN99MACf0A27RErFDvV/iwwnehQI62 OkVpuPLUvr4l1x9auWfTFYYczRgPktf7H852BUU+Dw6gN/yJnRzNo3zNP9Us7zLrFJnN WPgAauyGfujiSILeOTMqLNUavHD5XubgAX+8aaYWaVCBQh940aq0f28As9LI3Cs+QOhh 9ctzEvFC4yuSDcs76CtVVOcHnYlNGYjFrOx+50a2AnRz5v2TJXRJDSe0wAT+emD2/d/3 OtVQ== X-Gm-Message-State: ANoB5pmy8EnheNzQNsy4DT831NUOK/E0wd8OjzUAGsqCO4Co9lt+Z4D8 kSAd/vomerAGMsWgJgmhb6028pIRG4o= X-Google-Smtp-Source: AA0mqf5waUivlIgfijPGOMAA5WkIDvY9rOhyJxN7JhfncnD3q6eCao9aC/bmXQq9fYfRCp78JpeQDA== X-Received: by 2002:a17:907:c241:b0:7c1:79f5:9545 with SMTP id tj1-20020a170907c24100b007c179f59545mr31249782ejc.42.1671524576139; Tue, 20 Dec 2022 00:22:56 -0800 (PST) Received: from [130.92.50.83] (the-w517b.theol.unibe.ch. [130.92.50.83]) by smtp.gmail.com with ESMTPSA id op1-20020a170906bce100b007bfacaea851sm5288000ejb.88.2022.12.20.00.22.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Dec 2022 00:22:55 -0800 (PST) From: Denis Maier X-Google-Original-From: Denis Maier Message-ID: Date: Tue, 20 Dec 2022 09:23:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: Org-cite (oc-csl) tip: Filtering bibliography for language To: =?UTF-8?Q?Andr=c3=a1s_Simonyi?= , Christian Moe Cc: "emacs-orgmode@gnu.org" References: <87k02njvp6.fsf@christianmoe.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=maier.de@gmail.com; helo=mail-ej1-x62d.google.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 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, NICE_REPLY_A=-1.149, 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=ZuUi0FXw; 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=1671524655; a=rsa-sha256; cv=none; b=n1zsIeLJp6Sb/p5MYpRFa9guHBT2RAVD7BvylDBOg7hy0+jOlJzjo+AK9W4qah9rke7sbr +x5Y9oLj4w0REgX02LLgAm2iyXQ75Y1NLsj5lXY/VJ8WqAuoSh01SvQ8UTYjWu6ouJidrC P/qEHNfrcSj8l+gJQIws4/5zq2uucJ+RC5QF6CFb0y4I4PE6zdwQnHwQEyp2dD0E2FAPDc dwoDliVD75ToXt7T4NdYannALBmrq41Ye37pkk7jjp6wNethQJlbMcw4WRbhBaBdNWRdAm Uuwq1FJwAowqltqRyOMZxSNdrB9F1C+Hc22kOggV0IVC4xKMFyZ1vUkC6wJePg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671524655; 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=wJ7FZPVufAESmVApdaZ6TO9I/xdRkoOJgNdfZf97LWY=; b=DR3tAuSVUDiMwXMGE9StWrPJhccDV8YP3VSnRPlSflQLaCFbntVb0SxBMIB7kXGP/1uXkJ 5Xvbhadk9pa2A58jpw9clZeUCqLz8Wmun0U9rDBkah6Li6b/gPKGEs4smnQ33PrfJGJzco D0BnXhz+r8wUxym0r27itLhuc6qz0pzyGRaHFxuXV4GUNULPN1KTjBftMjqzMTSHiC+ZKn SENCHl+p36qHJlW0NYb8NR+yENHY8SGbcBJkZ0zceT1Ma5Yts1v+3O9Wn46sm7JR3joj2n zdqRUP35QLm9iIj4raH1faIbHfZry5KlJeXx+PATpEMjzh+4283AnFgqLGe72A== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZuUi0FXw; 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.02 X-Spam-Score: -6.02 X-Migadu-Queue-Id: 522B038EE6 X-TUID: VlaBvv0SZEim Am 19.12.2022 um 23:20 schrieb András Simonyi: > ... I've forgotten to add that another (probably more user friendly) > option would be to design and implement some kind of filtering DSL. > > András > > On Mon, 19 Dec 2022 at 23:05, András 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ás I'd say both options are certainly useful. A filtering DSL is surely the more user friendly option, but allowing lambda expressions would probably be quicker to implement, and it would also allow for predicates not anticipated by DSL designers. Best, Denis