From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32725 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: H Newsgroups: gmane.text.pandoc Subject: Re: Wrapping sections of text with
in custom filter Date: Tue, 30 May 2023 15:23:20 -0400 Message-ID: <05ba5663-1578-d555-8539-d6a2bdff6743@meddatainc.com> References: <2fc450a6-5a16-316c-02c8-8ef055bccd11@meddatainc.com> <93e5b610-66a2-6ac7-1d53-8a04a8314249@meddatainc.com> <853c402b-d9ee-4c9d-8bae-15b20faf7194n@googlegroups.com> <1F66BB1E-B5C8-4062-8202-D82C5CE9A3D0@meddatainc.com> <6d414734-e661-ae2d-68a1-4dfc9cb4f035@meddatainc.com> <4c58dad0-bd86-608e-2d68-74bd6f2f808b@meddatainc.com> <574fbf9f-c1b8-711a-f14a-3acd75cbf634@meddatainc.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------3107ECF5BBA1C41EDAC1DDF0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15989"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCEIZSNSZ4IRBKU23GRQMGQEIOZ5FMQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 30 21:23:28 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f183.google.com ([209.85.215.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q44wJ-0003yX-O7 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 30 May 2023 21:23:27 +0200 Original-Received: by mail-pg1-f183.google.com with SMTP id 41be03b00d2f7-528ab71c95csf2631103a12.0 for ; Tue, 30 May 2023 12:23:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685474606; cv=pass; d=google.com; s=arc-20160816; b=huGT+xSU1VjV90ZwlsqSuTZmu8Qxniwh6UmeFadCgZPWwxSlVQxKSB35WpJ4qmT2Xc IGMG2JKAfgTzyhNZ2+eLfkoKitMiclgWqr6NpXmW6y06CPbiMc1cxraN/18Px6Niqnq+ mtA+NixyKHoxjJbQaO1IEbqzQtlHHaaFhH6uJ/lOoALLeZtfVMxm6ft/MBOrrZAZ04F/ EBCfX7A+nFyiJUxOd5p4kQEtrOtuuycxdDSxioJHiJjDXy2evW/gsyE6hhf6det6E6zr nk+N3P4G3EJq0uiBQ5qTjSvdfkgTPJcUpRwx3HNo37BAsMrriM6xKuZe77oUbVcD+cpB +4kw== 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:ui-outboundreport :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:to:from:subject:sender:dkim-signature; bh=1v3OtTxGHbt3vgvOEYnXLyt2AXFij+9KdezaxL4AU9s=; b=G+bNwVeg94dLLihs1cLGc26ka81FUBhUnm/RsQ0Yy0CbSYxMqHrjbR3iukq+9HyoW1 87OMivsJfbeH/xpOntes+kS3AL2wy1Dk1hHKxpN2N9g0zaUmJ/1kBZEM+YQYkgLxkaRB rBZHvltnW8r8sWmBlSS5JKC4yzsS87qpMcwISAwV5+Gez2eBAxdfyIQCtV2hYUPK9AbF ibt3IrzAeAh6ufO2JeckNtLdFtmFPMTfNAqWruqFPfkb7O+432x4J7lGB7hvIs1Cq3u3 XTW5FTIpAhDuiWzX2toD4Gz8BPP4YjvthTv8tn0qi0CbsSjDRUooFytruudRNm5Rmfas Xdcg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.196 as permitted sender) smtp.mailfrom=agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=meddatainc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1685474606; x=1688066606; 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 :ui-outboundreport:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject:sender:from :to:cc:subject:date:message-id:reply-to; bh=1v3OtTxGHbt3vgvOEYnXLyt2AXFij+9KdezaxL4AU9s=; b=HNZOGe3ztpTa8bgeDER6rKF8OW2OEb72xgniaOX0WAFrvgjbkDp260gE9/8qxTLrkb Icc/cV/Yi53xOvv/FQ7Kvv3CwJcEq7V5ITSm8TuXHShKY+CnV/h5M5H30Kqw7l+42mop cu/B7UJ2Re4W6EGdZ/cSQcJsy/VvqoSJ3hu4XJmjh5eNWll5nQM4gsNz8epSt/9toFR9 5fqhG3NaQuoROLnCY0sQuKoS94KlJV09ZjgTRgrymh/T6x3HaUIUVaUMtlap0JOznImN HZzjWPU/jK5j2k7WL X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685474606; x=1688066606; 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 :ui-outboundreport:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=1v3OtTxGHbt3vgvOEYnXLyt2AXFij+9KdezaxL4AU9s=; b=ME6PRFnd16g2dfTyxXJtFmgKSpmF55dFkytH9UvqcXseeVE6zwIHNMqEt+xZZSO4ur rHscPP0ZEezr7xLJp5vmIbZvUM4lHboVNxRvCmsE6aYNHBWQlYCLD7HWduB0FiRUF25E 4w+e5cPsrKCxSzWLFTFiUdGQ5TfSSw9o7XwMJwJ8vz9xXndD3DEj9HWr8M4HTPbtWhRD XKaIMe0QrK5JhWhQRhP9RpgZQcfQ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDzFRiQzIJRZnNbwXst8lBlzZbs+pHYXUc358YGs/H8XyteDHP49 IeRm4AP4JZtTUYTJNgfQkCo= X-Google-Smtp-Source: ACHHUZ670KIHR02kavkP/Dmt2K5jXRA8dYO9WzSen9ejEMeV4281BXZlfU4j61CXemEyk5QPIBEwaQ== X-Received: by 2002:a17:903:32c9:b0:1a9:8ddd:8226 with SMTP id i9-20020a17090332c900b001a98ddd8226mr952353plr.2.1685474606310; Tue, 30 May 2023 12:23:26 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:868f:0:b0:64f:30d1:a0c2 with SMTP id x137-20020a62868f000000b0064f30d1a0c2ls6398144pfd.0.-pod-prod-02-us; Tue, 30 May 2023 12:23:22 -0700 (PDT) X-Received: by 2002:a05:6a00:24ca:b0:64d:722d:a8d9 with SMTP id d10-20020a056a0024ca00b0064d722da8d9mr4658885pfv.28.1685474602090; Tue, 30 May 2023 12:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685474602; cv=none; d=google.com; s=arc-20160816; b=r280mgi0sERBKUF3cUudUu4pyfMNoNsZDq6BXrzFzkdOqaGEksgS+a679umBspUH/2 EZOx0iMSOD4TAlhIXt5SRMs85iNHfyjATiqgPYqdry3cIs01KcEZtwoQtnY6XwqzPeqA QLJu6nS279U6HmLYURTx2wBi2Ot3sHajI1Wz2IPLSkxDbAPfy2Py5/8yCGkvaS/uzGh/ dFBrG5wJY67p+Q58pr2aPE9wIl8+TbO6jqPhppTsVZIAi4NzRFJEwc6OSjMUca3TkSGQ SNgq9hLHBGjNaygqFTMfKxmaHCpdaSAIqH+ine3os1I8xfDyAkLzVIL1XyOxnruvqcPi vG5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject; bh=Kc4vvDHp+emy4T15KQ3m3NdMOJEYSsXrPUIbQzWj/KY=; b=claDoUFTtnO5A11T++kGpV0d/C1dv9a7xpxbgmqJkDbNlEN8ynHibTnMkpbsVyX1Tf 4VqzdcWdeiZBpPHPrxBX8QxLv/qxihCBeefCfQioT5v+rQwXHkdRkP/O492q3h8+Tju0 sc6krVEgDAf8Dcx+MhsYV381G8BFyc0ZRmXcqReTvsRDppwfAP7O9vN4Cn5UzrhjtpNv 3L6fO836jHGIaUcjtXuyYZYitgXLN1RtxsaHKZAw5XOTG9P8JNpOvm8mKoEYBnX+d2PZ /tLm+vPXlNp+0kj8O8EjJbe58nIUAk4XZlNzPfRDJpUo3Cf2UilIw4wN5GOeEFIvV+l2 190w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.196 as permitted sender) smtp.mailfrom=agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=meddatainc.com Original-Received: from mout.perfora.net (mout.perfora.net. [74.208.4.196]) by gmr-mx.google.com with ESMTPS id bt23-20020a056a00439700b0062d7d718081si405169pfb.2.2023.05.30.12.23.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 12:23:21 -0700 (PDT) Received-SPF: pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.196 as permitted sender) client-ip=74.208.4.196; Original-Received: from [192.168.1.17] ([72.94.51.172]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MHFTY-1pqvma3DGq-00DFDt for ; Tue, 30 May 2023 21:23:21 +0200 In-Reply-To: <574fbf9f-c1b8-711a-f14a-3acd75cbf634-FcZObrvlYduBUy7/sJONFg@public.gmane.org> Content-Language: en-US X-Provags-ID: V03:K1:YnCCoE25idkH3sU0pb3d0IN8TSszOKY5MfHTcJgwxQIa5c9+fQ0 G4fg0uBFNIUanEYRy7eufz1sUPOxxO9jJAkv8juOChgvmsi9A+Nt1dsPLPqJPBwBpifWZpX WMAoD6OOGLxXtfX1S4FAIMV5BngFvS1CMUpLmQovUr8lbJEpgdl4xTpDoGvRwHCB65xah0J w7tSq/FSOvfZxAxLFK9Vg== UI-OutboundReport: notjunk:1;M01:P0:iNP6S/kyUWI=;79qJ4iN0XMRAyn2DZf9AfjnVVsR GoBBNn00rnu+82umQWO44smJ9ygM63mI07KferZesYqFh3sxUgRYWVyEA0c1kjxBU2EwinlsD h4G5nfw8XdSfmiqlG7ClG0DKTRXQ1PLDqQ5P6uR4oVHeWQRzErBH0X4ivu7YGG5mqCq9j5Aoc E9w7IgF7fch8hXjlvbtpQo/6jv/XK+G27JxW++wRpPjLx3DZcv47pXZZrwt0wbPzylpzZkFvU 34w5hDpco+fFu3NSecJXExU5tMG0hK1IHigB+rVK291A7m4RAaxysCSS5Uqz9DF9OV/yJ9rn/ CQdEtoJhLBuE5x6TGUSjHczyLz8mZKn9hJfA/3QbYTNHWX76w8r3YOi2/jQTV9f7Zx26qpd+a 9dwRJqAF8wmy/lEJPys0hGy6w4OknbMrIcqIEo3NobjdNQfa77QVO2DWkl3Unyt+qc4k6Y4j4 USWHpnRZOR0OUTfXjlYigZb3ZqfeCdhxJn+cQbGp9ErBvovjIprGxIDaozLrWOc+O+CBLif63 UA4+ilRiaDkqyK63Zs0+JxBtRxKNXuC3pALvCKKB7r5gl/Abuh8H+UNBlChEI8PxvEd27DEoa YNy3m9bduQiy0vLKL0LqjAnLm3hEFcvjwVPFDMRF1oQKbC/JVs/shGjLM3PDuRaUsJzL+pO6+ Gy2Yz4As5d4h3CaFPO9SbMqVcBXl2gu1iYhnndwDmg== X-Original-Sender: agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.196 as permitted sender) smtp.mailfrom=agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=meddatainc.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:32725 Archived-At: This is a multi-part message in MIME format. --------------3107ECF5BBA1C41EDAC1DDF0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 05/30/2023 02:30 PM, H wrote: > On 05/29/2023 12:31 AM, H wrote: >> On May 28, 2023 8:50:56 PM EDT, H wrote: >> >> On 05/26/2023 03:43 PM, H wrote: >>> No CSS (I had mentioned that in a previous message), also no modifi= cations to the markdown file so the entire interpretation of layout, adding= style information etc. needs to be in my custom PDF writer. This custom wr= iter will - obviously - be specific for this single dedicated use by myself= . >>> >>> Any pointers (links, code fragments to look at etc.) as to how I sh= ould traverse the tree to be able to output my custom PDF would be greatly = appreciated since this will be my first pandoc writer. >>> >> I am making some progress working on my custom writer for my desired= html output layout. I am using the 3.0 syntax where the output function lo= oks like >> >> Writer.Pandoc =3D function(doc) >> =C2=A0=C2=A0=C2=A0 return Writer.Blocks(doc.blocks) >> end >> >> At the start of my document I also have >> >> Writer =3D pandoc.scaffolding.Writer >> >> with customization added for inlines and blocks added. >> >> In the Writer.Pandoc function above, is there a way I can see exactl= y in which order the document is evaluated? I am interested in exploring tr= averse =3D 'topdown' vs. traverse =3D 'typewise' as I think the topdown tra= versal will be required to add the necessary
and
in the correc= t locations to my final document. >> >> Again, please bear in mind that I will do /all/ processing in this m= y custom lua writer. >> >> Thanks. >> >> >> Upon further reading, it looks like the traverse directive might only be= applicable to filters when the AST is being processed >> >> Is this correct? If so, is there anyway I can view the traversal process= ing sequence in my filter when I am writing and debugging it?=20 > > Hoping someone can shed some light on the 'traverse' directive and how I = can debug my filter using different 'traverse' directives. > > Thanks. > Upon further experimentation, it looks like outputting to 'native' format, = ie the AST tree after running a filter will show me what the modified tree = looks like. It would have been nice to have some version of 'verbose' to apply to a fil= ter to see in which order elements are processed. --=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/05ba5663-1578-d555-8539-d6a2bdff6743%40meddatainc.com. --------------3107ECF5BBA1C41EDAC1DDF0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 05/30/2023 02:30 PM, H wrote:
On 05/29/2023 12:31 AM, H wrote:
On May 28, 2023 8:50:56 PM EDT, H = <agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org> wrote:
On 05/26/2023 03:43 PM, H wrote:
No CSS (I had mentioned that in a previous message), also no modifications to the markdown file so the entire interpretation of layout, adding style information etc. needs to be in my custom PDF writer. This custom writer will - obviously - be specific for this single dedicated use by myself.

Any pointers (links, code fragments to look at etc.) as to how I should traverse the tree to be able to output my custom PDF would be greatly appreciated since this will be my first pandoc writer.

I am making some progress working on my custom writer for my desired html output layout. I am using the 3.0 syntax where the output function looks like

Writer.Pandoc =3D function(doc)
=C2=A0=C2=A0=C2=A0 return Writer.Blocks(doc.blocks)
end

At the start of my document I also have

Writer =3D pandoc.scaffolding.Writer

with customization added for inlines and blocks added.

In the Writer.Pandoc function above, is there a way I can see exactly in which order the document is evaluated? I am interested in exploring traverse =3D 'topdown' vs. traverse =3D 'typewise' as I think the topdown traversal will be required to add the necessary <div> and </div> in the correct locations to my final document.

Again, please bear in mind that I will do /all/ processing in this my custom lua writer.

Thanks.


Upon further reading, it looks like the traverse directive might only be applicable to filters when the AST is being processed

Is this correct? If so, is there anyway I can view the traversal processing sequence in my filter when I am writing and debugging it?

Hoping someone can shed some light on the 'traverse' directive and how I can debug my filter using different 'traverse' directives.

Thanks.

Upon further experimentation, it looks like outputting to 'native' format, ie the AST tree after running a filter will show me what the modified tree looks like.

It would have been nice to have some version of 'verbose' to apply to a filter to see in which order elements are processed.


--
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/ms= gid/pandoc-discuss/05ba5663-1578-d555-8539-d6a2bdff6743%40meddatainc.com.
--------------3107ECF5BBA1C41EDAC1DDF0--