From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31516 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Lua filters: Extensions with pandoc.read? Date: Fri, 7 Oct 2022 08:16:29 +0200 Message-ID: References: <87czbrfrzr.fsf@zeitkraut.de> <87v8oz3ohm.fsf@zeitkraut.de> <87r0zn3dff.fsf@zeitkraut.de> <5AC38771-6A87-47C2-80C7-5C7B389EDD1B@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bdeb3d05ea6bc0e1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21580"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBSEI76MQMGQEOPIHVBI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 07 08:16:44 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f61.google.com ([209.85.161.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oggf6-0005SS-8B for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 07 Oct 2022 08:16:44 +0200 Original-Received: by mail-oo1-f61.google.com with SMTP id f26-20020a4a9d5a000000b0044e0692f7d0sf2082610ook.19 for ; Thu, 06 Oct 2022 23:16:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665123403; cv=pass; d=google.com; s=arc-20160816; b=P0dPIWNukslUhd35bSB/bvvuKby7nFFJ0XwgFXVVsJOTdbr0Fysys4hjTJHblqGPcz GuuBzmWwITGkFpwBUB5mkpaKQXuh6L1tXnEZQ9e8obKWTVT/H1UIcvtw8NQ9qF0XyVgr BC0u9vPeFLkDaE2hc0qlrF6AgUTKTSALHJW1UjmCTBxrcoIqqHHJTvpSsVzxr5OrK/7x UIRjqEEE54vWmEr3kwHY1fUrAlkbIvyQeEuYu9Py//+ysLnXUKtzjPRdGXAr3+rbn2og 0buDZ16fiR3pNZsyeK7UQSEtMVyCFH/Uj2Y6Pbwpn77wObbxAMG+wlKdsgvIhyEYSy7G bQZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=5pqpXppomRniLS4dAfwGFiF41KM/Kuxvu/GOeNFvNW8=; b=W/jy7uPn9FKK96cJIl9Hz+pvCF6vjsnG/Lez5UimpReWiPK0cSMX3ypgCflisfjlwp WL423Af9qKd/DPpoB3rS+OEmCLmffReIF3XYGc+PI3oA3brNJzPMC4tMwRxVginr3J3j L43NNqBWab2eY1V1yknPg288JNUFwkB4F/0J3ofH6QGdErhZk3wY1AqihoaNpkjlBc7n 4MEd4CedPsClDpARqUieFTYGMTc3OBdd1XBSw3qYiwdEm4B1X5ycdioMhjcAeiGR20jj zQcn+ES7uqJSgw2Kbb84UUtz4/Lr9oUnays+EP+ckKbtW/eBki4hcGIxdj0J5/P6C/9O hHMA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EuPw7ZWP; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=5pqpXppomRniLS4dAfwGFiF41KM/Kuxvu/GOeNFvNW8=; b=AKyb4QKrgl+axu4GjyJ7xxT9CNXbuW6Fl8NiPwO13lW62b8fbiy43+xsqAFe5jP9th RZmDYuG94c5mLpguUdtlSKIYcaGE2eKdlMtbXf9ADKss7OxmyRU+y+POPoYsPV8hyvYi 87vkC4PGC4QhdWorrRYlZYAh++4wJywVnhawwKwvYfNDnl2P7dJnShNrm/NsJxcqtijr 6Qy4dS/mob742Bhb9lDPFkWG8PcXKtMKLpGO2M/kXtZLpXPcOmmpHshfI/GeC9w5dwXC xIY7rRC3Jwsw/c3vs9Q4+L6Z7CfeM7LfEK7efeD+IgqDkpl+f+/JIM5OoAKHYhjr8ZhD sBhg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=5pqpXppomRniLS4dAfwGFiF41KM/Kuxvu/GOeNFvNW8=; b=FUuzQlKNv6ICaV7rzh8pb8TSBNGDxIuyahoIxm+ybMMvpczxMaouwuhC3b/NeKHfC4 jY3LHqIJ278X/bEugvlt6z+NJGy945qvm3EE/oQDgK5Gjto0BUqkuAKJv6ZbEWiuZxp3 KPTz/pWcc7TAtpMxbrSnsGl3bGJts11dKLEUUFptqmA9mtj79yjlCA6765KXozuo6R9H qbVltnv9ltzm2oOatrwVUA6clwVb/SuOL5GTFDYStpPENd42uhB9r/CTSbgSXM1KIlVL Gag58dI/lf2ZrWmUoaxNQ5Q4pxaaX7X2ZWlSdA30R9bnL+c+X+h6H+QYvttcIyeKBu3M NsdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=5pqpXppomRniLS4dAfwGFiF41KM/Kuxvu/GOeNFvNW8=; b=Wkglm/oi9331Al5Pbbm4bjfJ2cdb9DeDht5am2UBUue7v0jYnX0mKbpNwbVdWVHxMi Baxby0Mq2EgQKcPxhjpA+tCCamGsVnxtj54ONaHRRXL4yD7E694UdwYEXXkGlzFJ41tB jpnN1lqkmOfEDdq90SY0fNhZgY0bS+NHnMONxYcF15WqFV6U3RUT36bjrOb2IieDKiFT X7+xl7utnE8mFzHw8C+fz+rnhRrEb+Fc0REKB3JWoozpKxcqbRQpMCcgrDl75/9cLrFA Bplhb9SAOqgkWGn/OiDeRcBQkyjrpDV3Y6VtVsGI7NmHWA Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf1CJkC3LW7WlSndcJMV3I7x/iBfn94Yc5tbSdELTCmZ2Eww+ID1 VrjFUozqXjN+BwFYpzYjSCY= X-Google-Smtp-Source: AMsMyM7L3KLthtI8qRrEnPlVBZjJ7ByWAE/deZszsY/Fl1HYw6ff6ww03wbvDbi9Pbyw+I8vOW4pew== X-Received: by 2002:a05:6870:e74b:b0:133:1f1d:d7be with SMTP id t11-20020a056870e74b00b001331f1dd7bemr1744255oak.121.1665123403004; Thu, 06 Oct 2022 23:16:43 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:bb83:0:b0:350:a26c:b39c with SMTP id l125-20020acabb83000000b00350a26cb39cls1175840oif.4.-pod-prod-gmail; Thu, 06 Oct 2022 23:16:40 -0700 (PDT) X-Received: by 2002:a54:4182:0:b0:34f:f1b4:5421 with SMTP id 2-20020a544182000000b0034ff1b45421mr6494311oiy.146.1665123400247; Thu, 06 Oct 2022 23:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665123400; cv=none; d=google.com; s=arc-20160816; b=fM1QcH8JkTsE37JZrad0/eHgNrZ09YD50p8q1MI45yFxdfuefc/eNqZKKvEYaxOQlr BVn8FRS5Ten+Z5xkjWFxtzTl7ZKhzdESdYSkFyZQHjnIZYK3vD5qeN2Ryzn47PMbMSfT O05UGGlZJvG94F98wonfJfFudc/Lvc3pvCWdPEGnFGnPnnE5EcXQFAIBGGFJ+YLa3BJq unzFtTvb2lVNMpqCo1cAPHI7u8KJ2BZ+lEfol2MLMSG8ndU7fzsfl2AbHdKIXcElaGOa r4unGt3TMcuC7J/0P0KS7sdwJQn4bOzIFoQEV7oyF84hJ/enFEJIetI8Qfn3qau93NkQ P9Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DfVdyQ71f/peAScdo4Nm/pnfG++sZ4k2v6vHOs2vReg=; b=X3UuxpwBF5PMT6tXCWJ9aNmJvVOg+/I+Ctzarj9sxKRQ7dOMUXEzTvN7uIVRLhqYXa q132fxxJwfdO5yg1zC4KDJFveNEefmjEdtHlM5tPVF2m0XFb18fF2qmVYwRt7dnVT+dZ K3Ad2Bi62ceWbR3kk+QLxzCki71vVv7gwldxfTySSj33S6GC8nmggexWagK4l2hKZbp0 mjZ83VXQyfZHK0Z5GidUw7xz4WZGq/4EshlRHhounG8X//a0Q+T7JDxdTPtHFSi9MgO4 sWLqsLp8RS44FsFZbx/7o8rc4L/NxatzBPmGHykQQCmeGUX0HwnRtvMhkDF4c9x914kB G+hw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EuPw7ZWP; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com. [2607:f8b0:4864:20::b2d]) by gmr-mx.google.com with ESMTPS id u18-20020a056870f29200b00101c9597c72si94049oap.1.2022.10.06.23.16.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Oct 2022 23:16:40 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2d as permitted sender) client-ip=2607:f8b0:4864:20::b2d; Original-Received: by mail-yb1-xb2d.google.com with SMTP id j7so4673836ybb.8 for ; Thu, 06 Oct 2022 23:16:40 -0700 (PDT) X-Received: by 2002:a25:9c01:0:b0:6af:4a89:26b3 with SMTP id c1-20020a259c01000000b006af4a8926b3mr3349064ybo.190.1665123399624; Thu, 06 Oct 2022 23:16:39 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EuPw7ZWP; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2d as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31516 Archived-At: --000000000000bdeb3d05ea6bc0e1 Content-Type: text/plain; charset="UTF-8" If this change is done would it be possible to allow a similar format in defaults files? It does get a bit unwieldy when you have a long list of extensions. Den tors 6 okt. 2022 13:11BPJ skrev: > > > Den tis 4 okt. 2022 19:26John MacFarlane skrev: > >> >> >> > On Oct 4, 2022, at 6:31 AM, Albert Krewinkel < >> albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> wrote: >> > >> > Mmmh, good point. My initial idea was to use the format's default >> > extension when no `extensions` field is given. But that's confusing, >> > because now omitting the `extensions` field can have multiple meanings >> > ("fall back to reader options" or "use default extensions"), depending >> > on which other fields are set. Not a good interface. >> >> >> Not sure about this, but what about? >> >> - if no `extensions` field is present, then default extensions for that >> format are used, as possibly modified by `+` or `-` in the format specifier >> > > Wouldn't it be better if `+`/`-` in the `format` field be an error > condition if the format argument is a table? Least confusing IMO. > > > - if `extensions` is present, then those extensions will be used, instead >> of the defaults; if you want no extensions, just use `ejxtensions = {}` >> - if `extensions` is present *and* modifiers to format, then start with >> `extensions` and apply the modifiers >> >> -- >> You received this message because you are subscribed to the Google Groups >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/5AC38771-6A87-47C2-80C7-5C7B389EDD1B%40gmail.com >> . >> > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhAj02V6aSzbD1N4kRzWbuyHncyRcLktkHNu7k2FW3qB6A%40mail.gmail.com. --000000000000bdeb3d05ea6bc0e1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If this change is done would it be possible to allow a si= milar format in defaults files? It does get a bit unwieldy when you have a = long list of extensions.





> On Oct 4, 2022, at 6:31 AM, Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> wrote:
>
> Mmmh, good point. My initial idea was to use the format's default<= br> > extension when no `extensions` field is given. But that's confusin= g,
> because now omitting the `extensions` field can have multiple meanings=
> ("fall back to reader options" or "use default extensio= ns"), depending
> on which other fields are set. Not a good interface.


Not sure about this, but what about?

- if no `extensions` field is present, then default extensions for that for= mat are used, as possibly modified by `+` or `-` in the format specifier

Wou= ldn't it be better if `+`/`-` in the `format` field be an error conditi= on if the format argument is a table? Least confusing IMO.


- if `extensions` is present, then those extensions will be used, instead o= f the defaults; if you want no extensions, just use `ejxtensions =3D {}` - if `extensions` is present *and* modifiers to format, then start with `ex= tensions` and apply the modifiers

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+uns= ubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit http= s://groups.google.com/d/msgid/pandoc-discuss/5AC38771-6A87-47C2-80C7-5C7B38= 9EDD1B%40gmail.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CADAJKhAj02V6aSzbD1N4kRzWbuyHncyRcLktkHNu= 7k2FW3qB6A%40mail.gmail.com.
--000000000000bdeb3d05ea6bc0e1--