From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wHFsJaFzw2ZUdQAA62LTzQ:P1 (envelope-from ) for ; Mon, 19 Aug 2024 16:32:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wHFsJaFzw2ZUdQAA62LTzQ (envelope-from ) for ; Mon, 19 Aug 2024 18:32:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hfmdk-frankfurt.de (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724085153; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=sRImT2gKpEQbyudm5Px5Kjhi2PmFeQAM3dv2+nMUaeo=; b=DwjZAx63rcIlHt60vLC0zHBWix5mIqAgx16i5UCH9c3i5HTcm4UxAdBOsD+uw1rf3Dl4cC megJxWG+r6hEMOdp0JpTG3Bpx3xAbZ08eAmqbpXr+QlUaWpnOBBC56mx48T4SP9l3g3bjK jNbJH48EI0RHlIK5As9rnVYYBJeANNeQ/ZproTZ7dKl5zD7whYVhKlIB0ig5gyraqlnR/Y tpR8oBmESPkGB1wzhlZt7h2KdTOCYPMaWe6csDj9N70n8H1grWGF1brSvx/2ARaUa8NKo8 BJAFpi9uF/DlgrllS793GfPgHsHjPH8N0ibIj5j1N528pCAqjWJjpt8NnrVf+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hfmdk-frankfurt.de (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724085153; a=rsa-sha256; cv=none; b=sRYnp/ZkMwtSrBLj5Q0Ar5aaya0HAfOCJcv0TOtO0ZSGm8UbZFSLNbgg2anqtG+3XlISp4 viiDuBJEJYq30XBcfwOlKrSRF7pCPx16xhl/czZEWxXE8MfNY1qPjDLWi4pJxpeYCi115n GxYKmu++dgdUbXorjFXM+a5g+UCYn627DDyNJ+Jx4T9EYLhwC97d7I3SOiIPde6ownUhs5 baHV1B/93dQh2TPb7/rQxJAACEVNQRCqAqbkfPU3dcjBIbZHR7WquIN9wHIYyMeK4H7zzO fAkCNr/TvJ3a+0iWpaBN5/fKXNF7l9H7JgNRim5OzK/pleQBVs2Z07wSKGCrvg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 74CC16A916 for ; Mon, 19 Aug 2024 18:32:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sg5IL-0004wD-7V; Mon, 19 Aug 2024 12:31:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sg5II-0004ug-SJ for emacs-orgmode@gnu.org; Mon, 19 Aug 2024 12:31:46 -0400 Received: from www.selma.hfmdk-frankfurt.de ([46.4.92.145] helo=mail.selma.hfmdk-frankfurt.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sg5I9-0001M6-EI for emacs-orgmode@gnu.org; Mon, 19 Aug 2024 12:31:39 -0400 Received: by mail.selma.hfmdk-frankfurt.de (Postfix, from userid 113) id 5A8C6F61AF3; Mon, 19 Aug 2024 18:31:33 +0200 (CEST) Received: from selma.hfmdk-frankfurt.de (ip-037-201-128-004.um10.pools.vodafone-ip.de [37.201.128.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by mail.selma.hfmdk-frankfurt.de (Postfix) with ESMTPSA id 30C57F61AF3; Mon, 19 Aug 2024 18:31:31 +0200 (CEST) Received: by selma.hfmdk-frankfurt.de (Postfix, from userid 1000) id C0CF43960567; Mon, 19 Aug 2024 18:31:30 +0200 (CEST) Date: Mon, 19 Aug 2024 18:31:30 +0200 From: Orm Finnendahl To: Ihor Radchenko Cc: Org mailing list Subject: Re: multipage html output Message-ID: Mail-Followup-To: Ihor Radchenko , Org mailing list References: <87r0b2kext.fsf@localhost> <87zfpk36er.fsf@localhost> <87a5hjxjbh.fsf@localhost> <87le11is5a.fsf@localhost> <87bk1rz1m4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87bk1rz1m4.fsf@localhost> X-Disclaimer: Why are you listening to me? X-Operating-System: GNU/Linux Organization: Hochschule =?utf-8?B?ZsO8?= =?utf-8?Q?r?= Musik und Darstellende Kunst Frankfurt, Frankfurt, Germany Received-SPF: pass client-ip=46.4.92.145; envelope-from=orm.finnendahl@selma.hfmdk-frankfurt.de; helo=mail.selma.hfmdk-frankfurt.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 74CC16A916 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.87 X-Spam-Score: -5.87 X-TUID: BUEUH3nqrn4m Hi, don't know, I understand what you're after. Questions below. Am Samstag, den 17. August 2024 um 14:05:07 Uhr (+0000) schrieb Ihor Radchenko: > > Let's try to do it differently: > > 1. Introduce a new INFO plist field :multipage-pages - a list of extra > pages to be exported in addition to the main document > > 2. Transcoders can populate the list as needed, in addition to their > normal return value, which may be a link to the page, for example > 3. "pages" in the list, can be constructed using > `org-export-with-backend' or other usual means to export data. > 4. org-export-as will process all the pages from :multipage-pages in > addition to the one returned by `org-export-data'. > What does "in addition to the main document" or "to the one returned by `org-export-data'" mean? In the current multipage code, org-export-data returns a list of strings corresponding to the exported pages. In the case of html multipage output: Should :multipage-pages contain what is supposed to get exported by the multipage-html subbackend, or should the pages to be exported be left as subpages of org-data in the :parse-tree like as it is now? If they are contained in :multipage-pages, we don't need any rendering of the org-data node in the :parse-tree. Should the elements of org-data then just get deleted and we return an empty string from org-export-as in addition to the list of strings from :multipage-pages? > I believe that this approach should be the least breaking and the most flexible. > > WDYT? Can't tell until I've fully understood your proposal. > With my idea above, we handle the actual page rendering to a custom > backend, which can reuse the normal TOC machinery, possibly encapsulated > into sub-backend parameters. We can provide any additional info that is > necessary within such sub-backend. It's not clear to me, how the encapsulation of parameters is handled, who is writing the output files, etc. Sorry, I'm just confused... > > Do note that we should not assume that each page corresponds to a > headline in ox.el. It may be anything. Sure. -- Orm