From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32701 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mf Newsgroups: gmane.text.pandoc Subject: Re: announce: a Lua filter to recursively include other documents from a master document Date: Thu, 25 May 2023 17:58:12 +0200 Message-ID: References: <4f707c3a-0048-8fbc-a2fe-f33a70204590@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------Xk8eD0td2frdyZUWtzFnqJ3w" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1756"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDZYJ4HW2QPBBGELX2RQMGQEXSNZNNQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 25 17:58:20 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f59.google.com ([209.85.128.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q2DM4-0000Ey-Ow for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 25 May 2023 17:58:20 +0200 Original-Received: by mail-wm1-f59.google.com with SMTP id 5b1f17b1804b1-3f4dd7f13d0sf3608765e9.3 for ; Thu, 25 May 2023 08:58:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685030300; cv=pass; d=google.com; s=arc-20160816; b=g/02JVIYSmVtW/Wv8dCxqdwW2kJuNVpQdkUqH/G/PES5q4RVytdrB/YeixyH8zcTnA mv1qPiI5hOOo0E2u/z/nsV/t/AFN5/oPxX9pqw6yuUtVVYjBU6hwPadnK46PjMLw19Qs 0WNk+BRzynCzoyv7d5LpUsiCuquxEMOBahtfpJs08YD5xe1TG/AiXS3XEeC+AS2ts+iV jVtEaUKBQYupL5ih1H8/ADjPMWOJpIpzGQJ3Nflcp6GzNjRSdY6NI+53k4sU2/Q/tzq8 WnUU3cnzd+Zjg2Ssx42b4Q7ROBeLDCQXFEAdFPzQTg0vo+QIEluqlhfYET+QaOukdJv7 D+QA== 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:in-reply-to:references:to :from:content-language:subject:user-agent:mime-version:date :message-id:sender:dkim-signature:dkim-signature; bh=wuihP1lQH+62KH1KiIKmQ9AbfRu959M/1qjs3dwHy48=; b=jLMJQbssPnTiuQMPUX1UJrcDG+90j3bZy47+IK/wB5N5fcuyMA9De84lgfFZGQA9Lk 4+qD3L0cn1kbhTb+jX101c2S7YafuK07MgeuOCCvAyrSx7CDU69/Uk0Pewyu4BwCKW9x SF7OySSV3ZCTSOVqQhg1jc68E5CGDVXD4EasM2IB6D6/xRsbDg4H+eVEL8qRj6Zse/Z9 OR4a23/0vnAhXv1WRvkUBHJxHPuQ4pfAHgUa4r6YrL0MLMUVwQO28H1oQ/U63l9c5uxu 4Z947Av26xfeR33uprTkuZIWKjAr+5eT4NHcka29G1OrMx4Eu8PX0tlZ01EjGREOxFsU N4UQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=HkrpsG3k; spf=pass (google.com: domain of massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::130 as permitted sender) smtp.mailfrom=massifrg-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=20221208; t=1685030300; x=1687622300; 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:in-reply-to :references:to:from:content-language:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=wuihP1lQH+62KH1KiIKmQ9AbfRu959M/1qjs3dwHy48=; b=rD8CbBsKr8OcIaQwoJPpKKJpA6Xj5oMt1XE11ENoc6Zk5sHMtZk/c3oU6aCZ1i9SkS 6hnf1H/BEpYnGSl0Ft3TxXCrhHDPe1B/HQVOhzqEW1OxlSoRGnN6GwMOMRWytDZaCLRU rz4bCoQz8p2Eqae0gY64A7YCD0AWIj1R3iFTcFf9MKi43i9/hG+gb1omXf7zGUNQ5GP3 UqhkO5BNlOEV6hFwkEh6WBf9z1SQOdUckE1kcv9iB/6i0gZu6e5acCmIYXSyM8nLERj6 zkvEWhwH52DPAqxB5WQJ7hTb1iL3TQodBPz9rnMWIRcdP DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685030300; x=1687622300; 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:in-reply-to :references:to:from:content-language:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=wuihP1lQH+62KH1KiIKmQ9AbfRu959M/1qjs3dwHy48=; b=gRtVIs1MatUHHuqw/K7x8QXR7V6fM1Mbn+eS9gwCEoXsI7Yjaw9CqX1vMmaAx2TwzJ d/ktxfvsPTrsn2VAIqh7yN0feJK9PHbK4/hDI/gExR91N4oLsRyiI990O4sEqV38qTqw ruDm9phuHZefpsi/W7GIYG8/zFWyh6GhOlu6b9qJCKv4y/yDZQnk1kT+kYVjJV0uGJdi kHehyA9oNFS70fVQo1ZyNZeJVsJlcigQGCvlC+VnR0DqUdPFByo7cMIB/r0Eq2et+MtC dH29M3joKkRivBnMxR3xPmgv83wEjkaD4Bpgs+JZI43K36aCy2Sl1YEAmk7 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685030300; x=1687622300; 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:in-reply-to :references:to:from:content-language:subject:user-agent:mime-version :date:message-id:x-beenthere:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=wuihP1lQH+62KH1KiIKmQ9AbfRu959M/1qjs3dwHy48=; b=DALcC0FggrHPElO5EO7dqElaQ7OlMgVH0P+XaMiGb+3fPCwctOgeNHUNMSedTRwGeE ji3CQTRUj8Jou5zO62FkHxlT5fbSlEuDT/PnSJOfh+0GUURfEZX74zHLMVfwanxXxwbZ CEZPG6Ct2DPz84NtfIceTfCmBARh/TC2caRv3SeAA/hrp5HroyvmnmXlkMd/dl0g7+JY gvCokLBF+wPggXyojOafY/tf5dlNii4g3r6//ILhQhwDuMv+Hk6SEyuv Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDzF+Nm0ISLnutYgr3QVAReGBMzqlisZm6lz/VMYyFnB9GZt4wBw GmUv2OAFaZn+L4R2ZREHBZM= X-Google-Smtp-Source: ACHHUZ4iK/W2yBKVXUsiEkvUQE0hBMifp6+p8y2GVYwSbp4MtRtLDJFw4OU7j5YgVdmso+Wwavef/A== X-Received: by 2002:a05:600c:20e:b0:3f5:31:8b with SMTP id 14-20020a05600c020e00b003f50031008bmr697489wmi.4.1685030299499; Thu, 25 May 2023 08:58:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:602:b0:30a:8dcd:fcc1 with SMTP id bn2-20020a056000060200b0030a8dcdfcc1ls713857wrb.0.-pod-prod-07-eu; Thu, 25 May 2023 08:58:15 -0700 (PDT) X-Received: by 2002:a5d:4ecd:0:b0:306:2b2b:8c56 with SMTP id s13-20020a5d4ecd000000b003062b2b8c56mr2996307wrv.37.1685030294942; Thu, 25 May 2023 08:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685030294; cv=none; d=google.com; s=arc-20160816; b=eIU5aFwPXpDWK1s3V5HqjIExlY2EJHeGVGhBN2LSUFTa/bWWzONIzgSdzgvI2UbpyB vYDVoFu0oBXBaCqx8ctRGuxiHszjX8IqdGq2W0MeROpFhEavWTr457K9M3w/sr23NcZ6 xMBfLzO27fGUrjUDR2QYOLurC19mWSUKYiMJGywhK7vdWXIgCmWpDmpT6tUPMl58pzKK VFCsh0IjbmtglK+CkuW4LHae/rv5rszbSDcvBDDfgMCTmY5+euBH274eIdqiKjzGQkyY YUX9QhXhVB4gViiMt9RexQgX//xaqsNICakhs4/gXa6sB5VRqrLMdee653pXQRmE13CQ Ei0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=Vdzh1l//0NdFN5bkLLFOP3/C1LpoTahuHTOqzsKDs+U=; b=iIcHrPO4ia516NxHl3WxESbewEKxbONGkzSvD90so7GSvMFy0wl4JgIBdYRYkZ1fDk VGGwBIHPU7FBUT07IPhPUjSED5eASatE/XNQZHF3Id40bSoNp8xDg+Am7eFMC7pUaDLG KTHY8zf8rJA/Ep8UljB3ihLK74l02uksjOF/aINdRO5buKNOLiSkJeZvkrsUVj2dPkkn YXCXgyZTy1Nmkyuc/JYp/Mi8V6Zki2coLhyo69DDuVS8xsAv47tDfSnGB09aCoNnMAZ7 KCP+u7KWeXi6m2e4JEji+XKo/cZp7diqY5L+27OyHyPqR78FHeCjnSlWiCNag9hDhL/z 1oZQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=HkrpsG3k; spf=pass (google.com: domain of massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::130 as permitted sender) smtp.mailfrom=massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com. [2a00:1450:4864:20::130]) by gmr-mx.google.com with ESMTPS id m31-20020a05600c3b1f00b003f5ffe894b1si640259wms.2.2023.05.25.08.58.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 May 2023 08:58:14 -0700 (PDT) Received-SPF: pass (google.com: domain of massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::130 as permitted sender) client-ip=2a00:1450:4864:20::130; Original-Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f3a99b9177so2657751e87.1 for ; Thu, 25 May 2023 08:58:14 -0700 (PDT) X-Received: by 2002:ac2:4215:0:b0:4f3:8227:1022 with SMTP id y21-20020ac24215000000b004f382271022mr5862376lfh.50.1685030293950; Thu, 25 May 2023 08:58:13 -0700 (PDT) Original-Received: from [192.168.1.52] (host-95-229-108-50.business.telecomitalia.it. [95.229.108.50]) by smtp.gmail.com with ESMTPSA id u7-20020ac24c27000000b004f13bd73419sm258780lfq.38.2023.05.25.08.58.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 May 2023 08:58:13 -0700 (PDT) Content-Language: it-IT, en-US In-Reply-To: <4f707c3a-0048-8fbc-a2fe-f33a70204590-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=HkrpsG3k; spf=pass (google.com: domain of massifrg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::130 as permitted sender) smtp.mailfrom=massifrg-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:32701 Archived-At: This is a multi-part message in MIME format. --------------Xk8eD0td2frdyZUWtzFnqJ3w Content-Type: text/plain; charset="UTF-8"; format=flowed Hello, I just published a new version, that lets you store also the imported documents' metadata in the resulting document. See https://github.com/massifrg/pandoc-include-doc#including-sub-documents-metadata MF Il 23/05/23 17:35, mf ha scritto: > > Hello, > > I just published a Lua filter for Pandoc that lets you organize a > document in multiple files in a tree-like fashion, and assemble them > later. > > You can find it at https://github.com/massifrg/pandoc-include-doc. > > The filter supports the inclusion of sub-documents through Div > elements, whose contents are replaced by the contents (the blocks) of > an external file imported through pandoc.read(). > > Those Div elements have a "include-doc" class and must specify the > source and the format in the "include-src" and "include-format" > attributes. > > Sub documents inclusion is recursive and the filter detects possible > circular references in the inclusions' chains. > > You could already assemble a list of input files in Pandoc (i.e. see > --file-scope in the docs), this filter lets you organize your > documents in a tree-like structure. > > > Motivation: I wrote this filter because I'm writing a visual editor > for pandoc types (= documents coded in the internal Pandoc format) > based on Tiptap/Prosemirror. > > Since the editor is browser-based, the size of the documents it can > handle is much less than the size of the files converted by Pandoc, so > it makes sense slicing them into smaller units (i.e. chapter, > sections, etc.) > > MF > -- 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/msgid/pandoc-discuss/d8f2592d-9354-3446-5b9f-95116467bca4%40gmail.com. --------------Xk8eD0td2frdyZUWtzFnqJ3w Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello,

I just published a new version, that lets you store also the imported documents' metadata in the resulting document.

See https://github.com/massifr= g/pandoc-include-doc#including-sub-documents-metadata

MF

Il 23/05/23 17:35, mf ha scritto:

Hello,

I just published a Lua filter for Pandoc that lets you organize a document in multiple files in a tree-like fashion, and assemble them later.

You can find it at https://github.com/massifrg/pandoc-i= nclude-doc.

The filter supports the inclusion of sub-documents through Div elements, whose contents are replaced by the contents (the blocks) of an external file imported through pandoc.read().

Those Div elements have = a "include-doc" class and must specify the source and the format in the "include-src" and "include-format" attributes.

Sub documents inclusion is recursive and the filter detects possible circular references in the inclusions' chains.

You could already assemble a list of input files in Pandoc (i.e. see --file-scope in the docs), this filter lets you organize your documents in a tree-like structure.


Motivation: I wrote this filter because I'm writing a visual editor for pandoc types (=3D documents coded in the internal Pandoc format) based on Tiptap/Prosemirror.

Since the editor is browser-based, the size of the documents it can handle is much less than the size of the files converted by Pandoc, so it makes sense slicing them into smaller units (i.e. chapter, sections, etc.)

MF

--
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/msgid/p= andoc-discuss/d8f2592d-9354-3446-5b9f-95116467bca4%40gmail.com.
--------------Xk8eD0td2frdyZUWtzFnqJ3w--