From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32094 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: Wed, 25 Jan 2023 16:50:16 -0800 Message-ID: <3F114306-007A-47CB-A067-3F7EE07900B0@gmail.com> References: <35211aad-9b34-1c74-b25f-c2c3777da632@intielectronics.com> <84b97b97-8fe6-fb71-7d97-6ee0733b5763@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="30966"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBTM4Y6PAMGQEGYYJNAA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 26 01:50:26 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f188.google.com ([209.85.219.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pKqTB-0007sD-FR for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 26 Jan 2023 01:50:25 +0100 Original-Received: by mail-yb1-f188.google.com with SMTP id k15-20020a5b0a0f000000b007eba3f8e3basf289173ybq.4 for ; Wed, 25 Jan 2023 16:50:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674694224; cv=pass; d=google.com; s=arc-20160816; b=romvGTerLMkMuyifX1ex5EZ075ugMWfhueF9PELyCmoJ7/+ayMETTxvOKG1a2V6IVX xGIR17DeVS0feoLuDtq9Pi+2FRuQLm5p4j0rKeUQvtuasPdcAkWAtqXV1zxDFx+/WLJ7 6jV+9PM0QUI5gtjOV13qiyb7GihBqy/K7mn6n5DzAUUXXMY23zAhyfbMfAR43FfRhzo0 q/D/GclmpLlT2mF9v3bQvoQuuBh6nQ+PeZqKZ0efvacSwswLdGMW+01gWbQRwehfGbYq UmURcmwsK1e6doUy1qZMdCZH6vqjLpmuFSNaP5a3+w1T+W0O1VEWXJfhtpqG+o4r/FlX NBEQ== 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=bHNBooODEiYghdNklvJ5cNA3YcpNUjrINq2GzcHMM+E=; b=JchmnjNQ6p7OeXvh/M0INT0sBiMjdUaC5MOwKjkmvMuvHAd1xXt206TCKSfSZ8pv2N 0XoZ2tBzbrBZ+sksCop32PaBf5bl6C4nNB9tIS+9f2ZMhD1yQHTj4Pxw5omSIHuaN8Yh T+8l4zHU56Vy0SrwGhu3YtK3P3zgROXSrGw33qQS+fFm6BpbNTgqRTsWMoyXg7+flkG0 +KmJihHVV/GOemt+/ycNLCtm75eByX502FQW1FcDVN03wGXOrMj2zNbeLnJHJsohfiae G4Pns0OHr9THzUq18BrKipz7almI4SOOyYuIyQVO429YilCl5qpTPabSR0smtKuhNSFg EReA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CKdkxiNY; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102d 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=bHNBooODEiYghdNklvJ5cNA3YcpNUjrINq2GzcHMM+E=; b=KQoL2oD4cxWSjRsq6+ltoTyu/xSae2RGuc4ub0TqlaUTZePJ8TIm/Fv745IqpP0pLx VePUFa5D+JKKB7aKa0pgqJw+AXBdIGJmozU89DcnH9/7R30BaEdjVfjQ5TVnJnwKcF5j DXEc2JG3vZg8X4QLDeJlsi15r3Wgc6/CuXX5/+Mmq6b3pXWLxACQyY/SInqT65vlVatR nOUa0U2m9faXUS4Oiu9TzqArlyzlfkZXgsvIK7Bt83wZqkvk8MiDBIB23LxJrMsJIUq5 Xsu4VM27T/55FyQd1ZPkmO7oEx1+xThEbeHEby94x8uf1OQT5Qqla5LH7um2n7RKM 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=bHNBooODEiYghdNklvJ5cNA3YcpNUjrINq2GzcHMM+E=; b=eEA2W5lNk1uxoUkqQgzB+7wIcc1wZJ3F00AUadoE35ttqVl/ODAqlSnn1ubQvhO4+H aldBZ9NSHQD9k3QjkdCQZzoNVHRjiu9U7tguAQPv0l/Y0g5vOtymMcsSoP1ltLDzNIDZ 5I+8hzjYrxUQ1qxmHepTBPFC6LjApV57A7/NU9X/yT76tbnBVtUOYyihvgv4svqi/X2B 5x5hgkPflH7FDQQt4wmqwUp7GQ+mkvG6t/81gTywKBEb1xTOp+IuQd34Pdhj9a3TVoKp q/wOmku5L911V1FvMHg0tZwfhbBTrtf5rDiJkhhXwSM7+X7i2ol3luFvcW6cAXlMW+KR w 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=bHNBooODEiYghdNklvJ5cNA3YcpNUjrINq2GzcHMM+E=; b=ZzvQk4brHnvYtcjGbTds3fyqSOobvEFXbd3l+iAqz3Bq2RUw/esRVrY3fguFtz20+9 ZUIFhNvFYHj5mB/rct7Gv3apwuM1P6GfEu29dJDHsUb+aMGWwXhYuBPNR2p8Q1aIXLlU Tmcbn7IIlIRqc7jQx0EqhClgJ3EjwxEewJ7PzKZ6tKM8M6JNBAkyCuN2uUSJsJ4GhEQu AXaWFymfci+zE+lgNSfBm+sazcnEvPscwGy467hO3DRQO+jsD9+L1EXym6PESaj5wBfo RHivkkrb6ctvpVCGSVBl Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kr8wsDwZyULNUXe6ylALWhBpRB2k3EpUpTzc6+UM5Tvhg/p8uyc A6cVIOr26NyPgCunnyUHB0w= X-Google-Smtp-Source: AMrXdXtKFrOHbLFxsQ1HerWLW2WSww/IsO638QpPBR/Cz/ye4AVSV7qDQQacfJ9gn/jkwvakrG9StA== X-Received: by 2002:a81:68c6:0:b0:3b5:4eb3:c527 with SMTP id d189-20020a8168c6000000b003b54eb3c527mr3817046ywc.338.1674694224384; Wed, 25 Jan 2023 16:50:24 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:5302:0:b0:80b:66db:2f94 with SMTP id h2-20020a255302000000b0080b66db2f94ls378690ybb.10.-pod-prod-gmail; Wed, 25 Jan 2023 16:50:20 -0800 (PST) X-Received: by 2002:a25:109:0:b0:803:ef03:c163 with SMTP id 9-20020a250109000000b00803ef03c163mr11892973ybb.20.1674694220844; Wed, 25 Jan 2023 16:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674694220; cv=none; d=google.com; s=arc-20160816; b=Km55XkoKXA5g2xNV/gN2WWjMJBewL2frEbturnq14xhjF5xWzz64TXsNz/kollnet+ avNn3R1th9MSsk4n5oKpl4svPzwdXogVvdWt94okL5D1jSnZQFrO9NT4gvI+nCTcIA2Y zwcce0d1rh01MkZesBCNBLmzSqRBeZmcKxFqdFCDd1vYkk+sXgMAxseLhrBvBxZ7RH7d /unVyFp6D4GLKy0T4CWy7Obi15ep1RXhkoLMXkiA+EbmUOJjwUgODxtghOkOCZIGFXw6 HmC1gFjTUBnd7Bzduk5OMumNYHqUsXF60SMaBwKr6xmYbEBgQteaVsomlCMiaAqvHzHe /bkQ== 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=bv01MoAE7jSosC9ewytbEthulKN5X/u/eFH9hKjEFLQ=; b=oerZOfX0+ZYcVocQB2yPz3k3D7wczm1Y7dlqgHJSar3J4voPJzjtNdeP04cwCE9yCp tNpmfQ9CNej+7xip1xU6cp9IVvfzAV+Tpe6WQN3oM3+E8Dp19d6EMhlaOHu+0EbWBJUp jqxn/0QongZTN1h3m2ho8xusuI1th+ENBattdqvAPuOVD4AlIFHa3q9+h++faaUAEzkC J6SDSr1MLjuk/gecm0YmPW38qtNzDfapMgEWo+b8F0SHZ+FtQ+fGTp+42tmk3xCxgBQp bh6DaXiB2P2YlC0KAfhYsoFFLoLWAIprkqmRikSo8l+HnQqnyoSfkUNKMV7f56HjXb8L iy5w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CKdkxiNY; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102d 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-x102d.google.com (mail-pj1-x102d.google.com. [2607:f8b0:4864:20::102d]) by gmr-mx.google.com with ESMTPS id h9-20020a25d009000000b008032606ec55si749981ybg.0.2023.01.25.16.50.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Jan 2023 16:50:20 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) client-ip=2607:f8b0:4864:20::102d; Original-Received: by mail-pj1-x102d.google.com with SMTP id m11so182737pji.0 for ; Wed, 25 Jan 2023 16:50:20 -0800 (PST) X-Received: by 2002:a17:902:e882:b0:195:e9d4:5380 with SMTP id w2-20020a170902e88200b00195e9d45380mr24930582plg.56.1674694220107; Wed, 25 Jan 2023 16:50:20 -0800 (PST) Original-Received: from smtpclient.apple (protagoras.phil.berkeley.edu. [128.32.252.45]) by smtp.gmail.com with ESMTPSA id d17-20020a170902c19100b00194bea457e7sm4227502pld.292.2023.01.25.16.50.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2023 16:50:19 -0800 (PST) In-Reply-To: <84b97b97-8fe6-fb71-7d97-6ee0733b5763-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=CKdkxiNY; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102d 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:32094 Archived-At: > Thanks. I'm making some progress with this. A couple more questions: >=20 > 1) pandoc.structure.split_into_chunks takes an opts parameter that has a = path_template value. Is there a way to get the path_template that will be u= sed by the chunked html writer? It is "%s-%i.html" > 2) The pandoc.structure.table_of_contents function returns a BulletList w= ith the toc entries, but they are unnumbered even when --number-sections is= true. I am calling > pandoc.structure.table_of_contents(chunkeddoc, PANDOC_WRITER_OPTIONS) > where chunkeddoc is the output of split_into_chunks. I have verified tha= t PANDOC_WRITER_OPTIONS.number_sections =3D true. Am I missing something? I= s this a bug? Yes, we produce an unnumbered list. The numbers will be part of the content= of the list items. (This is because the numbering scheme might not match u= p what is generated for an ordered list.) In HTML you=E2=80=99d want to us= e some CSS to suppress the bullet. > 3) Is there a simple way to get a list of files (including the image file= s) that will be included in the chunked html output folder? Maybe I can gen= erate this from the ChunkedDoc, but it's going to take some parsing. It should be easy to get the non-image files from the ChunkedDoc. Then the= re=E2=80=99s index.json. Image files, not so easy.=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/3F114306-007A-47CB-A067-3F7EE07900B0%40gmail.com.