emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Denis Maier <maier.de@gmail.com>
To: "András Simonyi" <andras.simonyi@gmail.com>,
	"Christian Moe" <mail@christianmoe.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Org-cite (oc-csl) tip: Filtering bibliography for language
Date: Tue, 20 Dec 2022 09:23:01 +0100	[thread overview]
Message-ID: <aed1754c-9fa8-f2a6-5bd3-15d518ce59f0@mailbox.org> (raw)
In-Reply-To: <CAOWRwxACvu4wS5mbPdb+_7p3qx54mCZJh6e4aEbEB7yQ8pNnmQ@mail.gmail.com>

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 <andras.simonyi@gmail.com> wrote:
>>
>> Dear All,
>>
>> On Mon, 19 Dec 2022 at 15:49, Christian Moe <mail@christianmoe.com> 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



  reply	other threads:[~2022-12-20  8:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19 14:48 Org-cite (oc-csl) tip: Filtering bibliography for language Christian Moe
2022-12-19 22:05 ` András Simonyi
2022-12-19 22:20   ` András Simonyi
2022-12-20  8:23     ` Denis Maier [this message]
2022-12-20  9:47       ` András Simonyi
2022-12-20 10:22         ` Timothy
2022-12-20 10:46       ` Christian Moe
2023-01-18 19:39         ` András Simonyi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aed1754c-9fa8-f2a6-5bd3-15d518ce59f0@mailbox.org \
    --to=maier.de@gmail.com \
    --cc=andras.simonyi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@christianmoe.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).