From: A A <amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: using panflute to create filters and (hopefully) writers in pandoc
Date: Thu, 7 Jul 2022 12:00:44 +0200 [thread overview]
Message-ID: <CAMwawgP9PFHV2WDx5Bzp7=dnjxjrH_z4AZV1sv2JG8C3hpcCDw@mail.gmail.com> (raw)
In-Reply-To: <Ysatlyx1D0FT8xbY@localhost>
[-- Attachment #1: Type: text/plain, Size: 5780 bytes --]
You don't *need *external modules. But it's certainly nice to have them.
What I like about panflute is that it opens up a world of possibilities
with the wide variety of python libraries available... You simply don't get
that with Lua I'm afraid.
On Thu, 7 Jul 2022 at 11:55, Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
wrote:
> 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 à 11:51:19AM, A A a écrit :
> > Yes, but Lua + Luarocks support is nonexistent for Windows. Here's proof:
> >
> > [1]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 <[2]jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
> 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ünter Dannoritzer <[3]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
> > > lua-filter-examples. Also, I find it easier to use lua, as there
> are 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
> superior 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,
> send 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.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 [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.
> >
> > --
> > 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.
> >
> > References:
> >
> > [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-9a0e-2d36f9107bddn%40googlegroups.com
> > [8] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [9]
> https://groups.google.com/d/msgid/pandoc-discuss/m2let5q2ki.fsf%40johnmacfarlane.net
> > [10] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [11]
> https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgN9VkZoWgvdw6xLvoLaB3QRUktswSP8VCuPvjmWvM5xsw%40mail.gmail.com?utm_medium=email&utm_source=footer
>
> --
> 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/Ysatlyx1D0FT8xbY%40localhost
> .
>
--
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/CAMwawgP9PFHV2WDx5Bzp7%3DdnjxjrH_z4AZV1sv2JG8C3hpcCDw%40mail.gmail.com.
[-- Attachment #2: Type: text/html, Size: 9626 bytes --]
next prev parent reply other threads:[~2022-07-07 10:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-05 15:12 A A
[not found] ` <CAMwawgPtfvK1UC9Tct-ZG7z-TsytK0Cb==GqbpNV0xShfThNtA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-07-05 15:47 ` AW: " denis.maier-NSENcxR/0n0
[not found] ` <28435ea53d1845208602828320c543a0-NSENcxR/0n0@public.gmane.org>
2022-07-05 15:59 ` A A
[not found] ` <CAMwawgMjYTqrbb4cvZqmSYsEHgNL9C0uiw=c2-7uStuhaeVV6A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-07-05 16:10 ` AW: " denis.maier-NSENcxR/0n0
[not found] ` <be10de6788b943e5835cac27b9ec3b0e-NSENcxR/0n0@public.gmane.org>
2022-07-05 16:46 ` Bastien DUMONT
2022-07-06 19:51 ` Günter Dannoritzer
[not found] ` <785dec1b-ea96-4297-9a0e-2d36f9107bddn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-07-06 22:49 ` John MacFarlane
[not found] ` <m2let5q2ki.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2022-07-07 9:51 ` A A
[not found] ` <CAMwawgN9VkZoWgvdw6xLvoLaB3QRUktswSP8VCuPvjmWvM5xsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-07-07 9:55 ` Bastien DUMONT
2022-07-07 10:00 ` A A [this message]
2022-07-07 21:58 ` John MacFarlane
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMwawgP9PFHV2WDx5Bzp7=dnjxjrH_z4AZV1sv2JG8C3hpcCDw@mail.gmail.com' \
--to=amine.aboufirass-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/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.
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 NNTP newsgroup(s).