From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32064 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: How to process chunkedhtml output with Lua Date: Sat, 21 Jan 2023 14:23:59 -0800 Message-ID: References: <35211aad-9b34-1c74-b25f-c2c3777da632@intielectronics.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) 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="12758"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBAWMWGPAMGQEEB2Z75Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jan 21 23:24:07 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f58.google.com ([209.85.216.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pJMHP-00038W-7u for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 21 Jan 2023 23:24:07 +0100 Original-Received: by mail-pj1-f58.google.com with SMTP id h6-20020a17090aa88600b00223fccff2efsf7117165pjq.6 for ; Sat, 21 Jan 2023 14:24:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674339846; cv=pass; d=google.com; s=arc-20160816; b=wuJHkuhBlyQVkr41By6r+82zEdUq0Io+d68WzUBWxa6msaCrX87FCCoUFVe/XAX+cb xvCyFNf0qsdbVEZWjds6IvqPP2Bq5t09cR1FL0MPcADaEAyCdu5RMVPMjYGiF205FK/Q qyffKpEBi58MgBuGqBioj1h4gs2nE9ERvYspO4WbpY2ecKlMA3MTJ5kne+i5qfCNaeXd KAER/zgMWcKZ+6LUBipHi6QcDiYNs7ISz7bG/8La9TMCk+uEk0agkhfwtLoty0c0W91g RViiNTiqgC0rFAOK8K+rK60tbTzKnliT2TtpeLPr90ZkFVfdyw5PWX4SgZ/9sZ+nswDr L4Jg== 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=s4T1uD+2kIlrF5rtLRx2bCi0rP1K67dWW1hkOBxQk/g=; b=MfzkNAurQmMy9wPd5+uVbWMnBrtKyoY+VjVtnzW7lKYvrkMITNTEaKwqnrp6TFuR3I euT7+xL33Yl0qUT0dD3I2nuP+LLo5G95k3qg/4jIKMQTnvJqlq/qPcas3DiYKJee/fPZ Ao/OXm6qbfa6WxeNOGLB0wzex+Y3bJ4aKqkpieErVAyNqMlzOJe2n6gxe8PqTuiTyjsq cr0WuBuhxiNggM8bz/VVtT1/ty6b60TepiKkCsKl22fblErm+wm431IgFAZpaSQVJHKT 2Qprn5yI6sAu3/fp6+oEYcNCtNH7zSZBn8UYSEZKobQX0UtO0RgSSL55Awko2STlXR9S F+yA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="gb/l6iOh"; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102b 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=s4T1uD+2kIlrF5rtLRx2bCi0rP1K67dWW1hkOBxQk/g=; b=iNP9RMfYwmFnn9yY5QLldFZwKY+7j4jCniwe3zCXsUvBgDd9h9i8cquqV/W0JktIX2 NujiEUJs2dovsqGvn1vXEGlyewiteFoFk+jn8T7tH//D96fcdFrL/vQVh405GCCLEIyF X5wc40n9WJ/GOgiArBgOvFo8Rt6VQ47Hhj/aKCuiCiLKtCSHVLklbvJyTbex87GnvmBw mGT6kAX0hr5fdpvx4Mo5aEKiq0JWCN1GTj94EExoDyPoM+/7BbnH1d3bGhYOZwg7ihpI oiB6D+LImSKRqAMx5E13uBJfg76Y7/pG5TN94/bl3dNZtRSbaTfP23kyt1qQdrsok 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=s4T1uD+2kIlrF5rtLRx2bCi0rP1K67dWW1hkOBxQk/g=; b=aBe4wS9KaZUuCdeDd9DVb+R4uSSQE6bvujVQNUGFme0uDVVGVnQTxUjVBe5otU1u+e PeMXuu4qX+SORop3gRJccsQIzYd0FQt0IDOrGjg7TGnYqhkOIl4r56IfGZTsgyRD9Tmn UCML0Yudc1uKL7TpwhIxrqTcYTw4J3A85BL8cMk0P7msq8MBIKjI6Kt5mTD1KyK6s8m1 ru1bwlWk00RfyMtocvjI4R1TWhzHBkiBerT/Oy4MIUcSLizVYePJA6W0fZECoX5mlzL0 L2T/h25IvoeGh6Uprlnmcvgena01kljZHVTuJ8EIsvrTsA1fuCmxNmJzurd276rU5geu K 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=s4T1uD+2kIlrF5rtLRx2bCi0rP1K67dWW1hkOBxQk/g=; b=tVRtsekXawn3nauCR8G/0S3i+2kJEvi+YBj/VJfkRgzIp74Ebn64sfiFmGha1fH01C 6LH9nT/TAFusjNDFM/ROgBIU4MY9qdW2CYvXVCsxqMVOP2o70WqIHWP+l94DUcyGe5wi GLzRr7x3sTBty1Dp9n68nOQL8ZL0OPaaBGi/xOw46KGhKLZBtM2iW35v/juN4bNrv3um cmeGj9Kzg3BuLDVJykeSh3fqAblYTs++EMXm/ehTQkrNOygcU/H3oeVVJom+aCN1H2YJ vfNs9WSfrrI51fMJtXbs Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kr+tlfssa6Au6kvQbu/echY2PF34BOlUnWBb7kMD5s2Y8Qn7di9 e2GlIWuzgKlVgyKm2kJ0GaI= X-Google-Smtp-Source: AMrXdXslVvNcZ/v3cHohSvNrVN5PSfzrwj8/oHSlbh1Pktloyyd08J5ED9BTfCdyKJJ/Qa7R4CM7PA== X-Received: by 2002:a65:6b85:0:b0:478:95ed:5d6d with SMTP id d5-20020a656b85000000b0047895ed5d6dmr2071962pgw.162.1674339845837; Sat, 21 Jan 2023 14:24:05 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:d507:b0:22b:b830:313 with SMTP id t7-20020a17090ad50700b0022bb8300313ls4182470pju.3.-pod-control-gmail; Sat, 21 Jan 2023 14:24:02 -0800 (PST) X-Received: by 2002:a17:902:ce08:b0:193:3594:82e4 with SMTP id k8-20020a170902ce0800b00193359482e4mr23211936plg.18.1674339842255; Sat, 21 Jan 2023 14:24:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674339842; cv=none; d=google.com; s=arc-20160816; b=UEyOkSESlAk5Pll/nxuMFEak72OdGtLX5e//ekx7TBs6yatlobSgnNExMNqHLss9UX Y5/Zc5vgDfHwhu/YJ2nVRNty3gSLMx+sJq2868ktzyqBz8lRqTAXF6VrrQ4HzltPvBk1 vM7qgGz+dnCGEuA5lWjFDISugGySoJsGOISPPpShgt3VfiQ5QlRP7Kf3NoUiAC9n6tRU Mo1kzCDdS1bKuUQGL0uBlY05JNx4MsKEZqbDw9cosjQBQKfTvudNuRVPgakhji1DKR17 smBf88Jbru4c5+u2/GO714PemygEN4DRcGn5fJbTW8YW061kAPG/qVWbta2TafF6RzI0 b1Ew== 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=RA4dHf9iwLUjtR0VzBvSBwGxDbx0LHxgyQz0bs61KAc=; b=soK0/Bj7hAPBP8bxzVdwdB7K6vGDA2xgypk5ZGm0edWVzsSSwuWapF1kUswjxFgQ55 EsqKhyNP9Zlck1PkDON9Bqkgfmc3DPkgft0bWJ2ILtXnydffiMzM+BQ3rjm9EKq/NSCn j3hmUhAs98jceKcRR6IJux7oKcT8F0N8cNFNRtCDajVuQfBEVkeGOcYXGbajrCggSbrH lHTHu1P4PvTWX0/AriEOLFrOuEb224a2assU6iXjGSmeNbR3cL8rMHpNgWfjCEhQmi7D scg02L34BMExpRCxLvb7ztuNNcX2r2EFHj9/UyPG2s9ZCyNRHnpHF9Inv+AXUhJeogdW Ndvg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="gb/l6iOh"; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102b 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-pj1-x102b.google.com (mail-pj1-x102b.google.com. [2607:f8b0:4864:20::102b]) by gmr-mx.google.com with ESMTPS id n11-20020a170902d2cb00b0019493313d70si1457365plc.9.2023.01.21.14.24.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 Jan 2023 14:24:02 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102b as permitted sender) client-ip=2607:f8b0:4864:20::102b; Original-Received: by mail-pj1-x102b.google.com with SMTP id lp10so5265896pjb.4 for ; Sat, 21 Jan 2023 14:24:02 -0800 (PST) X-Received: by 2002:a17:902:a418:b0:194:a6e0:3ba with SMTP id p24-20020a170902a41800b00194a6e003bamr18779410plq.54.1674339841639; Sat, 21 Jan 2023 14:24:01 -0800 (PST) Original-Received: from smtpclient.apple (protagoras.phil.berkeley.edu. [128.32.252.45]) by smtp.gmail.com with ESMTPSA id bh11-20020a170902a98b00b001929568afe9sm451652plb.306.2023.01.21.14.24.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jan 2023 14:24:00 -0800 (PST) In-Reply-To: <35211aad-9b34-1c74-b25f-c2c3777da632-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) 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="gb/l6iOh"; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102b 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:32064 Archived-At: > On Jan 21, 2023, at 5:42 AM, ChrisD wrote: >=20 > The thread "Lua filter to process chunkedhtml output" has gotten kind of = side tracked with a discussion of the logging module and how data is repres= ented. Which is fine, this is good info and I appreciate the improvements t= o logging. >=20 > But I'd like to get back to the question of how to process chunked html o= utput into other formats with Lua. I don't understand what data is availabl= e, when it's available, and what data structures are used. >=20 > 1. Lua filter: I'm looking for the list of all files that will exist in t= he output folder, and the table of contents (essentially the data in sitema= p.json). Is that data even available at the time a filer runs? If so, how d= o I access it? No, because the document gets broken up in the ChunkedHTML writer, and the = filter runs before the writer. However, in lua (via the pandoc.structure model) you have access to the fun= ction pandoc will use to split up the document, so you can split it up your= self and then you should have the data, as long as the parameters you use f= or splitting are the same as what the writer will use. --=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/F03F5F72-A9B2-4AFB-92D7-DFA722BE5361%40gmail.com.