From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 aCj3HaYwkmZlegAAqHPOHw:P1 (envelope-from ) for ; Sat, 13 Jul 2024 07:45:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aCj3HaYwkmZlegAAqHPOHw (envelope-from ) for ; Sat, 13 Jul 2024 09:45:42 +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=1720856742; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=SPA754r0Z9plKrHOCFql8+PU7g0yJKTrAJvmYgl+pM4=; b=a1ORoRUH2kcE/HODq5lODwwkEzlLDBsAordRYhj2/FtNstNQtmGvmsqwTK4FlvFyjLM7TE 3ar01nUAEnFNtXqQqgIQqelQQYxfcwfMJC1U9sVDaME5a+e+oIuWRjbRAJen/ZA2JLK3tv MYCre5zL5o5Bvno0HnHji+nGG54SFxvVLe/v/RNqq4blzZe9VAjUnx92t5u/VjurGUrlpw dR7cOhj1dDJhShE9M7Y2HfvkeIesM5Xg+a0WELcQZYZgu27pellqF1GY7HF98bDejdaF9o HBMRKtfsKqhqg7bPQVWE76N+Nr3290wwNdmFcBbVx0L5Ytu2elqsSVEyx8rItg== 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=1720856742; a=rsa-sha256; cv=none; b=pTmKJ/OjNIz5xyi0Q/yalUpC/w65M0WQLtLvcBHbm4jWX8eIBQRijfv3Ghr5CEoIb3Cgt0 UCJ00NjhXC42YKxRSXgjnjjrb6C6hs+VQ2FepHkg/DELkJUAL6wsQNb6yg5TTYgmbphOzr fl7IXd+cqrn5M5ESx4xDrv5l11HNbOEk+rB+/TYV0l/JvTkulHgSCZAyPc1fKVniMcQglZ 6vqzbsTGpdcdDMQm40U4vaYSsnoA1CxY9HuDYMmCKuEPTH/VeSmsRXzdpJmdrFO/GjiMOw zsxtA+8zr7DSUpKC20thE5TXDvnbH3G9wblR0rQF6SoEGvUZ8fNivXEVnr1g+w== 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 95A201011D for ; Sat, 13 Jul 2024 09:45:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSXQz-0007dT-O4; Sat, 13 Jul 2024 03:44:45 -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 1sSXQx-0007dE-OH for emacs-orgmode@gnu.org; Sat, 13 Jul 2024 03:44:43 -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 1sSXQv-0000KE-NU for emacs-orgmode@gnu.org; Sat, 13 Jul 2024 03:44:43 -0400 Received: by mail.selma.hfmdk-frankfurt.de (Postfix, from userid 113) id 59B94F61C9A; Sat, 13 Jul 2024 09:44:38 +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 42E00F608C9 for ; Sat, 13 Jul 2024 09:44:36 +0200 (CEST) Received: by selma.hfmdk-frankfurt.de (Postfix, from userid 1000) id D70993960555; Sat, 13 Jul 2024 09:44:35 +0200 (CEST) Date: Sat, 13 Jul 2024 09:44:35 +0200 From: Orm Finnendahl To: emacs-orgmode@gnu.org Subject: Re: multipage html output Message-ID: Mail-Followup-To: emacs-orgmode@gnu.org References: <87sewp9liq.fsf@localhost> <87y16bzzxl.fsf@localhost> <87o777zxkv.fsf@localhost> <87r0c2781h.fsf@localhost> <87r0c05com.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87r0c05com.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 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: 95A201011D X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.80 X-Spam-Score: -5.80 X-TUID: NSDKSUooYEu6 Hi, Am Donnerstag, den 11. Juli 2024 um 12:35:21 Uhr (+0000) schrieb Ihor Radchenko: > > ok, that's what you mean. I can do this, but don't you think it'd be > > more consistent with the general layout of ox, if org-export-as uses a > > callback function to call on each generated string with the filename > > as argument and we agree on names for multipage file output which have > > to get implemented by multipage backends? > > This sounds like some kind of extension to :filter-final-output. > I think it should also be an ok option. :filter-final-output functions could be used, but the name is a bit misleading. Therefore I'd suggest to extend the org-export-filters-alist with :export-final-output which only gets called if non-nil. Otherwise org-export-as will return a single string as before, so we don't break anything. In the multipage case we still need a hook to split the parse tree before transcoding. The place for this should probably be in org-export--annotate-info. I don't see any mechanism/alist function to use so I would suggest to add an option :multipage-process-hook to org-export-filters-alist. In addition the backend will set a :multipage option at the beginning of the export, when exporting to multipage. I will go ahead and implement a proposal. Let me know if something sounds bad/unreasonable. -- Orm