From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30938 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: using panflute to create filters and (hopefully) writers in pandoc Date: Thu, 7 Jul 2022 09:55:35 +0000 Message-ID: References: <785dec1b-ea96-4297-9a0e-2d36f9107bddn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15556"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBGW3TKLAMGQE7NAWYOY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jul 07 11:55:43 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f64.google.com ([209.85.167.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o9OEY-0003ob-An for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 07 Jul 2022 11:55:42 +0200 Original-Received: by mail-lf1-f64.google.com with SMTP id j12-20020a056512028c00b00482dd0d9748sf3146850lfp.8 for ; Thu, 07 Jul 2022 02:55:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657187741; cv=pass; d=google.com; s=arc-20160816; b=X8V8mFORgPlr8fT0tmIZQYPyILc5/msmN7J9X263BWgh3/BG6kHoB3fOEFJTFwdJHV YebtmDeQNKbv0FSAKfsF8KjmZjlCB+AO3+I0hCm66iDG+FzNQG1NBPX3xJTWKgcXdJiC 7O4wm5tjI5WSY8WqI+tRIY8erN5cyODnyMrcGLOcOOd/rMwR+NITlnMfUa3XrFXLe3YW 1oEWGM+pfEC8sHq/HMSOJMfvBYzDNBXtCjCYC4uFYJ9jPICzO3oP2iPrBKJBAt8bwLa4 UyyN6ltayNMsf5wn9dssvniIRkDq8a5Y8HuxPbghSas7iW4CLsVKLAD10GVNeInGv0Pg iqKg== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=Ng4MaW5Kr+813mgVLUHAvmWNYcqPNVxiuxklJy+0RCM=; b=WyWeBr3O5eHplCo8haw/sVCN++F35Kl+V6zpK02f6jhvhDJ+p0hhwfthl4v1EdEMMr htv0rTZ04MhUrD4Nv4dzcCScPqZfDltiqFQe91Id+PghpoBpM0hqVdiNVT5JVhrpYSXj ZIAL81EMPQIyGKHpQe0ai1R2eOKcIvOrw9NqIaG751js8eUTrhpVVTWDbzOjWYC8rRNX jg8wrmSr3ExWLy2uVUWoncew50sVF7BKQbeux+synilzqlOrP9Di5rdjCv7OdmcZ2GHJ QYydi9bucCzr6VFGc4iJoXTSjFivgtLAQVu8Mld3wYjbFMcbpTGf67W1WrFyIqGtX9H4 eFEw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=BjPKqpis; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-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=Ng4MaW5Kr+813mgVLUHAvmWNYcqPNVxiuxklJy+0RCM=; b=mgzjPnQ+WBMtTESkSembZgpJcaoGkR4aEJEsX7cCMkx6a6CvKs25LtyKE8VLl3ziE2 zcOF8nI5LzwauLBdHkp/4bKrCMYoAM1GnbvbgVP4JQOBD5wNoRg5Cm30x7WgWLvRSzby a6sTFW7pQMkwhBw8c7d3H7Gdb9+pwL3H4NQgdcGEm+kf0aNH54k3B7NVa/gqXln+JoE9 7nWoZpFHvvw71D3unhyIJP5t6JdaoHztGwMeV2EDPFo7gvkGZaH+J6J2cMZegjDC7jCG mNs8Ah6Z7tCaVJ/iznCiMn3cKbZw17nxw/1szyqT6gczc6mw93sYk27XicznoRfIlNKh nfSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-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=Ng4MaW5Kr+813mgVLUHAvmWNYcqPNVxiuxklJy+0RCM=; b=Nz7NrCIXmxfYJxGvdgS3wDMvEhuTOU/xxb+l0eJjny25ynqsL5Yakb2fNxwdmMAp/L b65MLPRizFBxAz++5+4iGR8cI9qw9clNmM5UX3cLiieBDGWIVzL9daimZv1PCVLmrEe+ pCQryssY5Vt+nDV9tUYN1n5N6YTypll0NOytso0CCIXy9kxxR+09fl8ymumzbWJQTJvy p55bdWyhqK6W9n7iMmMxEnLFyVGirIuiAyBsi0LRYp2U1/VOY2fd9GWTwGhjGCc1gBLE +LiTQatfff3hk56vvV+Bx1fFxrFo4+TUKwJu8vA3oVLm Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8cXEBgDT+grlU4jijVYJdpUi1YxryHwdJ9LOw0KGMLb5YnK8Zp WGjpbQQYDHBIAkKGG3lANaw= X-Google-Smtp-Source: AGRyM1u2ys2d0QixKHJ4z82P1c9pj9YsNPlZhH1f/PiKrVMajo//9C6IBvLnoJpB7NTOCrvKQtTWiA== X-Received: by 2002:ac2:4108:0:b0:482:b80a:7f99 with SMTP id b8-20020ac24108000000b00482b80a7f99mr13445638lfi.516.1657187741807; Thu, 07 Jul 2022 02:55:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:b8a:b0:448:3742:2320 with SMTP id b10-20020a0565120b8a00b0044837422320ls91334lfv.1.gmail; Thu, 07 Jul 2022 02:55:37 -0700 (PDT) X-Received: by 2002:a05:6512:1154:b0:47f:8eb7:c0fe with SMTP id m20-20020a056512115400b0047f8eb7c0femr30734674lfg.211.1657187737164; Thu, 07 Jul 2022 02:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657187737; cv=none; d=google.com; s=arc-20160816; b=E8DtdDwURs3lHXpTlCVWVFPF5idPUilmI6oMt3vMmWVHMEhVZcbxrhuXBtOUxXiTCa 8gkke5+a+lClGzMaLi6AV12isES3sv4T9QTDF+g8uoFb+2fxC1ZqcuNInlSFpJ2hbbFs plaT1dMyeC0NR/HnSRfPXdisHXnnqOd51kkIWQT7I716JmN3ckYR+GMRzwAQBD/iU94V QceGn8KXemcI/KC2GLlS0BGGCqgbFgBK2cKQ8da2g/TIZKmt0CbgR3brU0CObpsIswJN 5gCZDHQqumbL7r5cgS8Vusu+zlmtNx9s++WrmWU8ofb3UMkdfDOJHLV4N8QZHr3ZEQNZ Zzwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=IucFBVlk8hY0tZNpXTHNoCI8K0D6vioYYJGU7KselbU=; b=hlfi8LBatGsSZ5GWRNQG7ohDfEyCknGXb45ldNrTpYh7/H/yYCF6zOPDgJpiIu9Vj0 ucCaR+hK7pbF0pJhiqz8+lsqKXsb7H0i8RvuWk2NqvgiD6Do3wAsgOZZ80nLYlNvaodE y7R++IDnAckfJrqGEJNNO7CbkpHHBPpeZi+F2CNeh1b7+qU1NV5K1SJ8s4/LBtdWmEOb SpoxD1UPlYK49PntX9X1JBZWUUbZADqWBuQVWyb9MvnlflKH6q7X+cWsLI//CTfrCGTp fTVXYHqkO0YeQxumUcO1s7sPj53D2iE6h5xH3szJMjF0sMz0QxvQXT8LOLMb3cB4OM/N 7KKA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=BjPKqpis; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id bp20-20020a056512159400b0047f8c989147si1505042lfb.3.2022.07.07.02.55.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 02:55:37 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6EC0A24010C for ; Thu, 7 Jul 2022 11:55:36 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LdsGw0b0tz6tmc for ; Thu, 7 Jul 2022 11:55:36 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=BjPKqpis; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:30938 Archived-At: You don't need to install Lua, it is built into the Pandoc executable. And = you will likely not need external modules to write Pandoc filters either! Le Thursday 07 July 2022 =C3=A0 11:51:19AM, A A a =C3=A9crit : > Yes, but Lua=C2=A0+ Luarocks=C2=A0support is nonexistent for Windows. Her= e's proof: >=20 > [1]https://github.com/luarocks/luarocks/issues/1423 >=20 > Furthermore what useful functions are you referring to which the Lua API > exposes and which panflute doesn't? >=20 > On Thu, 7 Jul 2022 at 00:49, John MacFarlane <[2]jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote: >=20 >=20 > 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. >=20 > G=C3=BCnter Dannoritzer <[3]dannoritzer-S0/GAf8tV78@public.gmane.org> writes: >=20 > > I agree with your statement about Python, however, having programme= d 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 he= lp in > > panflute, and it was easier for me to learn lua and use the numerou= s > > lua-filter-examples. Also, I find it easier to use lua, as there ar= e no > > extra installations necessary. > > > > [4]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 superi= or to > Lua. > >> > >> If anyone's familiar using panflute, I'd appreciate any commentary= or > help > >> I can get on a recent issue > >> <[5]https://github.com/sergiocorreia/panflute/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 = Groups > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, s= end an > email to [6]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [7]https://groups.google.c= om/d/ > msgid/pandoc-discuss/ > 785dec1b-ea96-4297-9a0e-2d36f9107bddn%40googlegroups.com. >=20 > -- > You received this message because you are subscribed to the Google Gr= oups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, sen= d an > email to [8]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [9]https://groups.google.com= /d/ > msgid/pandoc-discuss/m2let5q2ki.fsf%40johnmacfarlane.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= email > to [10]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [11]https://groups.google.com/d/= msgid/ > pandoc-discuss/ > CAMwawgN9VkZoWgvdw6xLvoLaB3QRUktswSP8VCuPvjmWvM5xsw%40mail.gmail.com. >=20 > References: >=20 > [1] https://github.com/luarocks/luarocks/issues/1423 > [2] mailto:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org > [3] mailto:dannoritzer-S0/GAf8tV78@public.gmane.org > [4] mailto:amine.ab...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > [5] https://github.com/sergiocorreia/panflute/issues/217 > [6] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [7] https://groups.google.com/d/msgid/pandoc-discuss/785dec1b-ea96-4297-9= a0e-2d36f9107bddn%40googlegroups.com > [8] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [9] https://groups.google.com/d/msgid/pandoc-discuss/m2let5q2ki.fsf%40joh= nmacfarlane.net > [10] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [11] https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgN9VkZoWgvdw6= xLvoLaB3QRUktswSP8VCuPvjmWvM5xsw%40mail.gmail.com?utm_medium=3Demail&utm_so= urce=3Dfooter --=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/Ysatlyx1D0FT8xbY%40localhost.