From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32031 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Lua filter to process chunkedhtml output Date: Thu, 19 Jan 2023 09:14:53 -0800 Message-ID: <57EF4CAC-77F6-4C71-B7C0-21B8F118DCBF@gmail.com> References: <1D22B433-211B-4033-8A63-F637F52B2008@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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="19961"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBD7VUWPAMGQEB47EHXA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 19 18:15:01 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f187.google.com ([209.85.214.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pIYV9-0004x4-RR for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 19 Jan 2023 18:14:59 +0100 Original-Received: by mail-pl1-f187.google.com with SMTP id u6-20020a170903124600b00188cd4769bcsf1729955plh.0 for ; Thu, 19 Jan 2023 09:14:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674148498; cv=pass; d=google.com; s=arc-20160816; b=U8fG4sfvDNUR/x/rV+U5+bzgYkawyjmNUySvjf24BMf9W85Lmu0Y+OD002Dpt44F7+ 0Ls24ag6tHsTECSPiZAI9sBa2vTBN37pzo5qpGgT+kB9X/8xpPtX8EUBGdj3b34wSKJ5 4me7BMQU7n/o3HaC8LT4rwVY7eqsjpCNr027S3CDjp3Xq/o9tuOAtSx+fHuyVVwF0TG8 Whr4Sw6hnkR5YIkoSAmRklHqF9jMDb0HmvssUt0kArH88cFiJYZG9y+zfYjhPCy8aPiP qwR13ZVdCQarcnM+ccm1KAnUpqkKkoCSjSSS93dqUhNu/+wRutNAail8ESdOYJcLqaJX cwxg== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=8OpcB/dCLUCw7b8fGSW0AvpSpq4vLaX/LZnicD4RkxI=; b=yS5g2uHXHbCes8j7NXVAPKzYX8Pw+67aKQMMo+r2ygCaq9dGFXkCN6pCJd4DZhxijI h6i4OnZEk7dBQ9lPe1xgyMNFxlDvdyISn4Tkl8rNOYGKaUS186q8IC3DB6XRtRrWbv4r bUwDMh2nCH4KNL+K0rdPWbZg7qT4Ahl9Zb1YW2VJCQCJ3csTXZgZ4/i/PvzJH76Ym20K 1ff0Tr7rSgbHB3Y1LWcBXOk/tjeovtOO+J/5YaQmtXaoS04fgukCN9tOPX7QU2JA6xfp ZdtPSK1HOEIY58YlpjlzPtNjOQdFydmuAwUCli8wIj2p7aqMkXUl/JR5Lrga0rCnO5VD kFvQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gEmXLfgA; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=fiddlosopher-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=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=8OpcB/dCLUCw7b8fGSW0AvpSpq4vLaX/LZnicD4RkxI=; b=ddkEKccjErDOeFyMKRNCxqjfteP5rOjf7Nb1xAqzKnh7x1kA7LRcI6OVWLL8k5YMnX qeEQUNrZVq/PmY0kTR86l9yPj0Ny+dQYZ644K2wdXpscxtbYL8F2P8BQuKPqmy9l9IxX nEWzQWMPJOCK4eBk72edv3rTac3jzVSkDPBjLqBL2vqVcUKkmXv/grUrb+VRh89e6FUM z9syGDMgPNvGgEhfbN3Wn++w/SrxkYPrfwlBxBT6xJxS9Y4YV8rNZvRrkXMZJRDLHDGJ tP+s1MRqsXjqSmEcUpEj0BYBmAlJDoCSqnX1HEyuQPrN+AgKVnslLhtQldLuRLUR0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=8OpcB/dCLUCw7b8fGSW0AvpSpq4vLaX/LZnicD4RkxI=; b=EpblFjCehHEDWTx9EyytsVyu6uYytsHwLhwokvtcwYznJhRhiEZMaNJSA0eFQLIe+R tYh7xW6EP3QsnKbe8ou2OmCLmHNq0KN3H+W29dTsMj065j+FqCColf/FAIwApqqnEYfs GTiE9nIrP6nFzvGVH3WaMgVTt0S55aJrXiL/fMimx+u/areNauCeonYyW/7ZAgLuYyBY B44Gnx+qXE2Xq2gpQA1KmXuJSNWrNvkMWV2L/efW+DF9FKldNTIsrsFx267i8MFD9ymX iDODfWP19ghTm+I8dUT7/J8LmQ2gbExawFcL3Etp7W4Zab4bt+wls5gB+lnThHy6XBJS M X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=8OpcB/dCLUCw7b8fGSW0AvpSpq4vLaX/LZnicD4RkxI=; b=iQh4cQoiiTq27b9qTAjT4gJ6Czm3VC3+/5vmi6aL8HfsD80/sq87id+pGZYPXihkRA c4Nuec5pcIhtkNWrkPebPzd27fHrgttvP913lKUB9bHpi9kx/w8KLSCYOkvqGOl0c6Qg s6oQaU5gGPYIsV8y6qP8SJDNPyaU8d3KQZ7PyKq9pBy2YDP5Kb7ErxjcAwX+64u3TLO1 USWofRYFr8j5p+xKDxlC2ax6qeWRDvfvwVQlv+th1VhB0CZSSz+mtgvUuns1Oj/1u+yJ zMeW7mCk98MP+LX0Kd3d Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kpd19ddLrmzZBO3oXJ5fX847KIlboGiffE8NSW13yQczz6c2OBW DBM98lDqvq8jYeSst9Yf9Z4= X-Google-Smtp-Source: AMrXdXuh+ggVc2dCpFCZQckHIVrV+JC4OIVCjEt8a+bqzqiDZBwvlDSGu32OeD9EzextHwoIO2UdBQ== X-Received: by 2002:a05:6a00:1d8b:b0:581:f127:94e3 with SMTP id z11-20020a056a001d8b00b00581f12794e3mr1104415pfw.17.1674148498493; Thu, 19 Jan 2023 09:14:58 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:d34a:b0:178:5938:29de with SMTP id l10-20020a170902d34a00b00178593829dels2609062plk.2.-pod-prod-gmail; Thu, 19 Jan 2023 09:14:55 -0800 (PST) X-Received: by 2002:a05:6a20:3d02:b0:b8:70a9:140 with SMTP id y2-20020a056a203d0200b000b870a90140mr16595718pzi.9.1674148495126; Thu, 19 Jan 2023 09:14:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674148495; cv=none; d=google.com; s=arc-20160816; b=jGpXEWPGuR7m7lgCRq3i5EZRwzuBoNJx2D5vuoTNqwy6zPKSt9tOzjDpUkd7oig9Dc ylk8TDi51DEc3OY4lmMTcPAc5Asg/GirZfTt/G1EcGHAMKYaUBMZwkPEa6PgPCEo2utg Lp6Mvz0c88yVMh6G1Dtd/3JysAD3YEkZvc8+Xkbd4NuIQHjoGYWE7rsigL/tpMv2PESC A67CMRKaQIFA4KsgiTYUdO/Lwjlyx9DulsO6nb+GD0ufPaSRARlHSjYgKUpqGkOhsDg3 8HQdq0ABAm09HSsfODEGaLA/9A+iK8MKujdJlmQxQ8isvH1zh11+iKk96j24qsuMFktY +zNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=ricCwt27194AAqP9PiBIDW7BFUzZYWuJ/F0wiyJBS2s=; b=gUGWd0Am8RuP3TNujn6ry6HTkOtAP167Vj4ad4v27ZGp16BdPGVdxdRYCQJECcxmyx DPW7z+R1FYvbH2TJ1HirZ25eVv1Rb/TaQQjKN38rovUn9ASBTuQ+uVW+y+oYST+1f91U YIwQF5IHIaTDwJKrlA927LhzqWhjm9g4rSXBzPC61C3D6XDyyjWqjTF+9Jzw+PzyAoeF kbrfdIZM7cdZ5kTQI2yip8J5NFqW3M0BQmNVccAqVkYL0z2n6Po56Em41TwVyZxfE6NX Hww6AY4cualK73w+Gt+tRgMjRIOQJihCxzDZyXZht26gPF4uNaYT+ovQC+zKImO91NCO TUZQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gEmXLfgA; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com. [2607:f8b0:4864:20::434]) by gmr-mx.google.com with ESMTPS id e11-20020a63744b000000b004784cf3b50csi2863751pgn.5.2023.01.19.09.14.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 09:14:55 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) client-ip=2607:f8b0:4864:20::434; Original-Received: by mail-pf1-x434.google.com with SMTP id i65so2042409pfc.0 for ; Thu, 19 Jan 2023 09:14:55 -0800 (PST) X-Received: by 2002:aa7:880b:0:b0:58d:abd5:504a with SMTP id c11-20020aa7880b000000b0058dabd5504amr11163723pfo.31.1674148494565; Thu, 19 Jan 2023 09:14:54 -0800 (PST) Original-Received: from smtpclient.apple ([2601:644:4780:3350:c971:66a3:2ef:7e79]) by smtp.gmail.com with ESMTPSA id y12-20020a62640c000000b005819313269csm24226731pfb.124.2023.01.19.09.14.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2023 09:14:54 -0800 (PST) In-Reply-To: <1D22B433-211B-4033-8A63-F637F52B2008-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gEmXLfgA; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=fiddlosopher-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:32031 Archived-At: I should also note that sitemap.json is produced by the writer, so it isn't= created when the Lua filter is running (after parsing, before rendering). > On Jan 19, 2023, at 9:12 AM, John MacFarlane wro= te: >=20 > sitemap.json is really for processing with external tools. If you're usin= g a Lua filter, then you can use the new module > https://pandoc.org/lua-filters.html#module-pandoc.structure >=20 >=20 >> On Jan 19, 2023, at 5:44 AM, ChrisD wrote: >>=20 >> I would like to write a Lua filter to create HTMLHelp output from the ne= w chunkedhtml output format. I'd like the filter to create the project (.hh= p) and content or TOC (.hhc) files. After pandoc finishes, the make or batc= h file could run HtmlHelpWorkshop to create the output file. >>=20 >> Is the information in sitemap.json available to a Lua filter? How would = I go about accessing it? This would be used to create the content file. >>=20 >> To create the project file, I would need a list of filenames to be inclu= ded in the output file, including the images and any other resource files (= which are not included in sitemap.json). At the time the filter is run, I d= on't believe the output folder or zip file exists yet. Is that information = available some other way? >>=20 >> Thanks, >>=20 >> --=20 >> You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/d5298c4a-9427-8f5b-c646-6370a3f998df%40intielectronics.co= m. >=20 --=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/57EF4CAC-77F6-4C71-B7C0-21B8F118DCBF%40gmail.com.