From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30935 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: using panflute to create filters and (hopefully) writers in pandoc Date: Thu, 07 Jul 2022 00:49:33 +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: 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="23289"; mail-complaints-to="usenet@ciao.gmane.io" To: =?utf-8?Q?G=C3=BCnter?= Dannoritzer , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBANDTCLAMGQE5243QCI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jul 07 00:49:41 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f62.google.com ([209.85.160.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o9Dq1-0005td-4y for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 07 Jul 2022 00:49:41 +0200 Original-Received: by mail-oa1-f62.google.com with SMTP id 586e51a60fabf-1048dffc888sf11154391fac.11 for ; Wed, 06 Jul 2022 15:49:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657147780; cv=pass; d=google.com; s=arc-20160816; b=ZYy++Uo7CBot28cKIYQrE8txLM2hU1tfdfxmtRGZ2KTknte5ds0orYFkJYgyaqkiSd ku/PRV+9MWb1oWOySl65UGxmceAScdsS4HdVqS5xLMDCJGpcx9PdFlKEOoyFP9AxPGg1 +pOzTiLGZeVXt8ch87RR0oBlUTYHJ2SMEPetf4M6g1xKUj55KgYeRU3KKCv+JJmIdLbH h4qchKhlzRFjjof8QB1Me5UnXM+aZ6VMbZhQlFmcPU9WJt1l89+jETymYEcKLsRwgg5O fVrqsf1k8NRM1Yq9xHJJrTKSyKD/9/kpCCh1h4WlbJ5Tjp7RJBpZW2YlDS/YCCJUPzXz SOww== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=NbhJUKzbNNZIB8FVVLCI8X/av4AUXBxbyKXkwcQ+cxY=; b=uLYG99GN8O6XNlT0mbLestE2Q5+yzEz+1zGVloPZH+68ltWxLIUTVjozzQ/ftaWgFA vTPOFA8JhXHBYD23FO3ZKl0pfwurIS8kAhm9Tr7DVm8isTvLFTbaIAdc4D46XsOebngV UMEkSArNycrv70V3os4OFW4TjFKY0eIgWhp1giPY/fOYbOIWx7H1sKw1s8QCDokIbxRc XxGiCXE8Uif+pGSmgYKMuyk0Lx89z2YibOwXgOh7pwti+mcCkIt55gr2G0mhbp/EJCiv zzTPsSY5ZMfZtRmBODPQd6zijKl9ewJmhijRvB5SIKo0Rll5bTsIXHI2Ei1gjjCU9W5A ulhA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley.edu header.s=google header.b=hk9uLFCr; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::535 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding: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=NbhJUKzbNNZIB8FVVLCI8X/av4AUXBxbyKXkwcQ+cxY=; b=TvMoaYQlbZwMGnBwycRhxGmmPTp+3lTx1OGxwTNa891H3a5lRUnKsOXCXU3o+7XyNO QXIK9941tqjI8ggBf+NOTkcY0NzGL1V/W4pYaVmJAivX37K2U9+o84g1R8CBcccXd41p 46Kg5ux2ZP20WJId7S/nsgg2jyOurC1H5YAUxks9yeK3wOk8Yi5IXl5FU/MnfEecL2Zm AKQrOBsFEAlWhbXgHU9unhetz+JwrZgNnpSnQlz/ytjx80he3KhbZWa9APB0eoB5Q8gq XwyKnKyzetUQmqmSaZCLlbSP4v+7cvFslET3W3k5RVTdoLnG0HARPQRCKLkzXihkQwYw AZ5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :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=NbhJUKzbNNZIB8FVVLCI8X/av4AUXBxbyKXkwcQ+cxY=; b=wkuU0pb5LIxjSPquT6nj34fFxRkZmrM0L8Kflnvye/FCt8TK8H17rV9j+bvCLf5gTN 9kKHrXOxaMcvp3vU36+CIO71UTP39md0aH3X+DerZxUajDAd0zrOBEmolWNyOdQr58e3 FR2IhW687P7iDd4h8oeQ6PfuePWhUzze16LM+XlCwf5Gccod8C7CpmUMjhKPpxwubjdj qFLM+E3j2+DivdYg1tk4jT6k3smTyd8RraPk0AZAh8oDI78aqoQg1jQhaYpyn0oIDMP9 MI4ChWQ54qtwfV0ivN11cHGNs7CfAEdQB93IuiNTnXXrR5jVO689cQxGIJsQvxyAaOCv Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora+OnEJf0zxa4Fsp4L11r8oNabiLYMsqCq2bseKFrsXx1DzASRyf +6581zr4ZIlyjowcgKIODEA= X-Google-Smtp-Source: AGRyM1v3o7JdLLZBMO2iqzu9KNKQRxL16xhPfDt6UOY6RpGYIUl+Ov0GHKUmp5wcoD4vvzlpWEK2oA== X-Received: by 2002:a9d:725b:0:b0:618:ee94:3159 with SMTP id a27-20020a9d725b000000b00618ee943159mr10466092otk.19.1657147780066; Wed, 06 Jul 2022 15:49:40 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:618c:b0:101:b0dd:89d3 with SMTP id a12-20020a056870618c00b00101b0dd89d3ls18694707oah.7.gmail; Wed, 06 Jul 2022 15:49:37 -0700 (PDT) X-Received: by 2002:a05:6870:d62b:b0:10c:2ab0:a624 with SMTP id a43-20020a056870d62b00b0010c2ab0a624mr673359oaq.193.1657147777599; Wed, 06 Jul 2022 15:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657147777; cv=none; d=google.com; s=arc-20160816; b=Qnux15tat5feaNNObPAuA41l7TxdWJzZW9qRyreLfMvXdGup76okxdCsE2nERFPQO8 Tx1GeWe6FD17Xkyw7fBbF4bMr8eK8OH1RrCU/IHrPuqz3o7d+kBeP44wXpP4CIXkW/qB FUT09FYV7EyPfNMLwZV5WfxgR1fZcfIDwh/EyxlqBmw1CR5i4OZUIDn46IPB5XQrtOl5 XMMiC3DVopfmndAI0GleRd0/wfiyjNZrR4VwjzRRT+jqEy+9AmfBYLq2r+skzluoWSn6 blDs1k6Eriyp7+sHGtAKJcqCCrsjmoD6++tE7ZMAucLe8ph1zKRsvSTX7L4EFNq219l6 t8bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=VQpjaAyQAyQNzWmhU63Ol+fJ0kZushwCqwWvN23wF+c=; b=TdN+zOrPLleNc1bdI8l8yzWv93TjdibDIrScycRNgYNSbFsJslNzBvbs6JPmC7VvfK wFMJB05ORgnPxeId7/Q4omSjp+kBXZ/sFWnmcpNEUoGiBjFKQItO+9/mtymW+DcPMK0W vI7GzbwOnt2lLvdTfOexjPKPteIDS5pqlpkKdFtoFmSvHhJzPb+ADmy8d+BR5n5lVBh8 D2xrT5KpR5mlesATkcmtn8jyjK/1IVF1LgQw+Ao12zndoXTpF4hE5XPrBucFrBqyFam7 171FUBC9Bevf7auQuOLyBWh/o/zJOvJjpBbfDIXvvFgMCf7Q7ievD9zNnyFIRMcglsn1 e+/A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley.edu header.s=google header.b=hk9uLFCr; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::535 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu Original-Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com. [2607:f8b0:4864:20::535]) by gmr-mx.google.com with ESMTPS id w184-20020aca30c1000000b0033344610954si1164623oiw.5.2022.07.06.15.49.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Jul 2022 15:49:37 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::535 as permitted sender) client-ip=2607:f8b0:4864:20::535; Original-Received: by mail-pg1-x535.google.com with SMTP id r22so8356428pgr.2 for ; Wed, 06 Jul 2022 15:49:37 -0700 (PDT) X-Received: by 2002:a63:fe57:0:b0:412:6edf:fa9b with SMTP id x23-20020a63fe57000000b004126edffa9bmr10148881pgj.482.1657147776514; Wed, 06 Jul 2022 15:49:36 -0700 (PDT) Original-Received: from hermes.johnmacfarlane.net ([45.32.92.108]) by smtp.gmail.com with ESMTPSA id x188-20020a6263c5000000b0052513c1c4bbsm25434504pfb.38.2022.07.06.15.49.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 15:49:35 -0700 (PDT) Original-Received: by hermes.johnmacfarlane.net (sSMTP sendmail emulation); Wed, 06 Jul 2022 15:49:33 -0700 In-Reply-To: <785dec1b-ea96-4297-9a0e-2d36f9107bddn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley.edu header.s=google header.b=hk9uLFCr; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::535 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu 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:30935 Archived-At: 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 fe= w=20 > filter for pandoc I struggled with panflute as the core concept to=20 > understand is how the pandoc AST works. I did not find that much help in= =20 > panflute, and it was easier for me to learn lua and use the numerous=20 > lua-filter-examples. Also, I find it easier to use lua, as there are no= =20 > 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/o= r=20 >> 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 he= lp=20 >> I can get on a recent issue=20 >> I logged in which= =20 >> I am trying to process BulletLists. >> >> Thanks for your consideration. >> > > --=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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/785dec1b-ea96-4297-9a0e-2d36f9107bddn%40googlegroups.com. --=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/m2let5q2ki.fsf%40johnmacfarlane.net.