From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30937 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: A A Newsgroups: gmane.text.pandoc Subject: Re: using panflute to create filters and (hopefully) writers in pandoc Date: Thu, 7 Jul 2022 11:51:19 +0200 Message-ID: References: <785dec1b-ea96-4297-9a0e-2d36f9107bddn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bf979b05e3340757" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34764"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ77HUDRUCBBJGZTKLAMGQELLY3SAA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jul 07 11:51:34 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f189.google.com ([209.85.222.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o9OAY-0008oG-Qx for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 07 Jul 2022 11:51:34 +0200 Original-Received: by mail-qk1-f189.google.com with SMTP id s9-20020a05620a254900b006b54dd4d6desf1744018qko.3 for ; Thu, 07 Jul 2022 02:51:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657187494; cv=pass; d=google.com; s=arc-20160816; b=f8IVUXclqfEqarik9506sBU6/jUxyIOB/0O6O31l9pB9Y6UCYh/8EDhowWYeCOfZFV s5MWg0fnGg5HQT6dCYMwnXbxBBGdvNRzV1utFID4kiPWbCrLdhTpPfSCNUY431O83SUN 5AQnIsvOf1vnYK+5FMGjBx+e6fVqDRfyAdALm/38fTfAVeiWsSyGOC/CWmM10luo/E15 8xTnl8JHxvGxa4yOUKzurfGFHfGR+r8n6A+7T2Id62btqb4/QsUekU92W/ZyabajAFpx E/zUOFQULdAxJjFJS5so0F5OfTeExRCTs3dpGofnSPCVGX0sGUcywv1/a6VQvGso74b3 Ac1A== 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=YZ5st1RWbeIjW9V9djd0vl3psst8C81kAZuWZ6CN2ts=; b=CebXRp39qrhKUwRJagp53TL7dQfGq3p8SGu60N9qX5jFordoXY7Hhpww6qlrynNKmo Nk0nnVBGwctGvpzav+XmRhjabf5pnrBq8fcnSBlUqgYOsiI/0JOeShL1WUYvX8af8Rql l9AJIkKr+4cDPs7jSQ52edOIHTYsfl8oSxij6PoAZMAgg+8OfXXjri5wuvRqVYrSONdq U1jDYxImQ7Lg+sQqWIGPgOr+u0RsQATAJUjox7YemZ3D8nYXXVTxqmC2m5kGKamb3jhz g+zcAchdVBFGmVNARHRhHqrzge8mtHOfQ9rzZ0DlnsueXZEYhTyJeYvOHPMlxNRY2L9l tSXw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cA0Uv7oc; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52e as permitted sender) smtp.mailfrom=amine.aboufirass-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=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=YZ5st1RWbeIjW9V9djd0vl3psst8C81kAZuWZ6CN2ts=; b=pcWBD4O06dG9vXeaQeng47WpD9DJByAqNUS8cFQtSl1qrTKIFzpX/2W0pjAwRcNxTj bDgOt7F5ofQlLnnQ9xsF1CSYUITZOTsvERk3Gm2YV18KR4lPBOYV1FaRTLvc6s59HiA7 J51UH/flcSk50WM4KLKAd7gnnDCh5DtkaDMS3NgtyvgFEJc85spAF09z6+lmo/KLnxSK dAI53q8e9NzB9q1++wDV5f8suPQoB6fAXnqc+oRdPlc9sWBy9SjkSQzmTKiAE3JkaMj0 Ko0q1hs383fOXRigIqNuoWo3nACHDzsfs52cgtHcy0vkQN04/aVd7eYdJbUXFE2D+kA3 wlzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=YZ5st1RWbeIjW9V9djd0vl3psst8C81kAZuWZ6CN2ts=; b=GBKKxSajOE2OymU2wUI/40LrM2uVX9IlgpdoK+qkAP+4k7EKO7yEjHMpb69Ig6Bsa7 92/WKidWo/HFN2j1f4Y3Gp+w1vJi1azGc8lJRLADaiaCYDhY2vQAc2RtjWUf/T8z7UWF L0o78oRYwCs5O28Plfvzd5ZpVLqd3dvS2oz9t7d/2wKi6gIBjLLco+rHnWsJfzLmuTqy 1hXj47O4QraGyqZba5LOFdpkqLrrBPThZQgl8P6HaqOlYynIOxK5ByuzlvM9R7Z3MXQl 8hMBba4b7UtTHvvmcVvVbIsP4lr/KrcO62l1Wy5TiJKDJECY9r927WWfha8FNguNo9ky Auqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=YZ5st1RWbeIjW9V9djd0vl3psst8C81kAZuWZ6CN2ts=; b=5guNN93XNKRv+3Q3C1ftV6KaAhVyopHNfTHLkoxqsNZK5UCW/nCdMMKY55AcHvMY5j f4Vh3t0UoXXpmd7DKzrPKQAlZj5O8n77PvareiLCGRZIQ6SZu5GUASM70kL7oaUebw0w gUyDWTrigFV+ZbWa7GvzVZ1aHVv6EdHx+ILlrMTW5Ep1q1k86DIowr/AqGOz9rYRdOVe YIdw/z8g/NNZlOpGE3vR/uBts83+Z/Yb7Ag0EeESes+WHw9OddNWw06O/bSJ1UyOgp2e c5rTF/80ewPyF30HzQLXzTakLNOOuc5mFD6fmnvizC4Q7JpfhYORNWE6TBbkNIdOZKmM 2n4w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora82oGBDa/LA0tLyvgnWDw+DIAXA+XC5PDYVqQ8FEOVZ5itUxys1 k6KklIZIvskt7Q9GkJ2Kk50= X-Google-Smtp-Source: AGRyM1s9Xb/2tYT8FVIGKStb5Vo4iWGXup2TNcMNAdb8v0DldQg2LApY6yQ/pKfnoO1toKL0N2Ll6g== X-Received: by 2002:ac8:7e90:0:b0:31d:42dd:ca24 with SMTP id w16-20020ac87e90000000b0031d42ddca24mr20443275qtj.670.1657187493862; Thu, 07 Jul 2022 02:51:33 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:620a:2403:b0:6af:a35:c173 with SMTP id d3-20020a05620a240300b006af0a35c173ls20106067qkn.9.gmail; Thu, 07 Jul 2022 02:51:31 -0700 (PDT) X-Received: by 2002:a05:620a:294f:b0:6b4:6915:f52d with SMTP id n15-20020a05620a294f00b006b46915f52dmr12916593qkp.159.1657187491742; Thu, 07 Jul 2022 02:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657187491; cv=none; d=google.com; s=arc-20160816; b=e+5z6kWgHIwdYvP8Fx7BrTJsOZxnPvVSScOnW2PUfgICkSmChNDIcmxeCnbiFudpZa 3xZyXhEvkA5uj+HnisLMxlca5DYMCryQfc8m0YQSD+Gc3oVM2iZ9vhcU5JSlvKgackZa lFV+iK1174dwoCa6W2pDHis/t2Y1n6iTao2pWysaE9m3GD/10FU3kGY611WjrCvfhdkJ PC8KiapkNxxx+mTgjf72CplJDIJq1I73yBTDGpPhBt8KH7toG4wukVyUWbRs+zTq2auA mCF7mUuxM/ZE8y2IefZvuJau6YxT8JNSp3fQ5zHgkLYUYaSfVHfXidYnRveo6KPLb0bQ GcsQ== 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=R0bMpCvEsl10Mm9+fHT/8ErTdJDwmSJa4A9mLA1+V5g=; b=lxSgPrMDCSL8tXQGje7raTqaynCq71scZC3pG816XEqqsEtm3FN6UUZVRcUT6X4+rW 0V0Z2Swlwf9oizqoiWJp/vVGmMrsIR6AUfvo+f1WabqR4H1q5+jWsm8Ie2KAA/uApC6G iyYDZrOOqHGRVlw1caxcB60bPX5qJjwTUKAOnn2YMch/jmlY2xkOUUIMYo9CZT38gKDS nM9CQNpGa5anl8k19mtFCpNJXr/DCIZHNGHXr6QQUpmPtP1sQq5Xu51uXJ6Xy1B2RyY3 6u71Y2JTmMJhrgk5DvuhjLp+OEbaFn1bupFCQahQDp/qR9LF1/W9Bt3TIgkJaFX5YiCZ HD/Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cA0Uv7oc; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52e as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com. [2607:f8b0:4864:20::52e]) by gmr-mx.google.com with ESMTPS id f15-20020a05620a15af00b006aeeb06a501si1257903qkk.5.2022.07.07.02.51.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Jul 2022 02:51:31 -0700 (PDT) Received-SPF: pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52e as permitted sender) client-ip=2607:f8b0:4864:20::52e; Original-Received: by mail-pg1-x52e.google.com with SMTP id q82so10348359pgq.6 for ; Thu, 07 Jul 2022 02:51:31 -0700 (PDT) X-Received: by 2002:a05:6a00:4211:b0:525:a57c:25c8 with SMTP id cd17-20020a056a00421100b00525a57c25c8mr52923505pfb.85.1657187491350; Thu, 07 Jul 2022 02:51:31 -0700 (PDT) In-Reply-To: X-Original-Sender: amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cA0Uv7oc; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::52e as permitted sender) smtp.mailfrom=amine.aboufirass-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:30937 Archived-At: --000000000000bf979b05e3340757 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, but Lua + Luarocks support is nonexistent for Windows. Here's proof: https://github.com/luarocks/luarocks/issues/1423 Furthermore what useful functions are you referring to which the Lua API exposes and which panflute doesn't? On Thu, 7 Jul 2022 at 00:49, John MacFarlane wrote: > > Lua filters are also much faster, because we avoid the JSON > serialization and deserialization step. And the Lua API now > exposes many useful functions that you're probably not going > to find in panflute. > > G=C3=BCnter Dannoritzer writes: > > > I agree with your statement about Python, however, having programmed a > few > > filter for pandoc I struggled with panflute as the core concept to > > understand is how the pandoc AST works. I did not find that much help i= n > > panflute, and it was easier for me to learn lua and use the numerous > > lua-filter-examples. Also, I find it easier to use lua, as there are no > > extra installations necessary. > > > > amine.ab...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org schrieb am Dienstag, 5. Juli 2022 um 17:12:42 > UTC+2: > > > >> I'd like to avoid using Lua to make my own custom filters, readers > and/or > >> writers and stick to panflute because, well, python is just superior t= o > Lua. > >> > >> If anyone's familiar using panflute, I'd appreciate any commentary or > help > >> I can get on a recent issue > >> I logged in > which > >> I am trying to process BulletLists. > >> > >> Thanks for your consideration. > >> > > > > -- > > 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/785dec1b-ea96-4297-9a0e-= 2d36f9107bddn%40googlegroups.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/m2let5q2ki.fsf%40johnmac= farlane.net > . > --=20 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 e= mail 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/CAMwawgN9VkZoWgvdw6xLvoLaB3QRUktswSP8VCuPvjmWvM5xsw%40mail.g= mail.com. --000000000000bf979b05e3340757 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, but Lua=C2=A0+ Luarocks=C2=A0support is nonexistent f= or Windows. Here's proof:


Furthermore what useful functions= are you referring to which the Lua API exposes and which panflute doesn= 9;t?

On Thu, 7 Jul 2022 at 00:49, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:

Lua filters are also much faster, because we avoid the JSON
serialization and deserialization step.=C2=A0 And the Lua API now
exposes many useful functions that you're probably not going
to find in panflute.

G=C3=BCnter Dannoritzer <dannoritzer-S0/GAf8tV78@public.gmane.org> writes:

> I agree with your statement about Python, however, having programmed a= few
> filter for pandoc I struggled with panflute as the core concept to > understand is how the pandoc AST works. I did not find that much help = in
> panflute, and it was easier for me to learn lua and use the numerous <= br> > lua-filter-examples. Also, I find it easier to use lua, as there are n= o
> extra installations necessary.
>
> amine.ab...= @gmail.com schrieb am Dienstag, 5. Juli 2022 um 17:12:42 UTC+2:
>
>> I'd like to avoid using Lua to make my own custom filters, rea= ders and/or
>> writers and stick to panflute because, well, python is just superi= or to Lua.
>>
>> If anyone's familiar using panflute, I'd appreciate any co= mmentary or help
>> I can get on a recent issue
>> <https://github.com/sergiocorreia/pa= nflute/issues/217> I logged in which
>> I am trying to process BulletLists.
>>
>> Thanks for your consideration.
>>
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.co= m/d/msgid/pandoc-discuss/785dec1b-ea96-4297-9a0e-2d36f9107bddn%40googlegrou= ps.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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m= 2let5q2ki.fsf%40johnmacfarlane.net.

--
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/CAMwawgN9VkZoWgvdw6xLvoLaB3QRUktswSP8VCuP= vjmWvM5xsw%40mail.gmail.com.
--000000000000bf979b05e3340757--