From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id KPS7HWfRj2Ym8QAA62LTzQ:P1 (envelope-from ) for ; Thu, 11 Jul 2024 12:34:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KPS7HWfRj2Ym8QAA62LTzQ (envelope-from ) for ; Thu, 11 Jul 2024 14:34:47 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jdBAF3p2; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720701286; 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:dkim-signature; bh=1U/29SjQlGavH6T0f2ftihYL56v5KhW9Nqes06QrpdI=; b=nLpMV+GlpFTAQx707YBee33pt6z+PbFJpto8UAyFS+oQ5BRBlhZ7GRNNIAHH0Co3ygO8t8 JuFTSfMKkUSCqQac3cinqYosObgb0j8Je3U6GPIm5QC1f6vBejH9ox2nLQeEhM9BZroM3D kQLdqn0jrYH9EFFC9VzBvwvasj6WbElCzOs2wNxe1pmMlQ/N74sF3sTqcphF2Y74irOZLC eWCNxSjOklrJSciTPb8pFDnyZm/OOAPUvqwxzyjb9V0vlOIugMJ7wied09jVLKyA3y0Ei0 VPULwJ482qSnchpX/kOUKuf7f9b/0HLGyFeAqCgoO7rTrBIU7uKv8wjU0dbNUw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720701286; a=rsa-sha256; cv=none; b=cqxolAQJEiO6ziqZzWcrLevMS407YzgRrnDV9Gvi/ZUaiZ5yJwd/SAz6dtFq/txV40I6Ym 86jnex4w6rzCW5rtK1S/UEKnPpKlM5kxSHFVkOJ6hoHaZNT2yiCSkXyJlTOzJ/vduVCt7z 80Z7Dmv4do8glOJxdte8N7EGHeViDgDtN52L/K4nrLhfIRk852AjPm14F0Yo3UcRrKj4Qz bjAjxeNuxTG8QV0UI2iQ5fTeitX3PCb/koM2JcFpcqFPIb2Ecc6SV9ogG5xObDO71/3CLY KVdcnH4Br+GSfQsaJ6fQilIuCu0VaFSAm1kbE8UB/cquLMFS4bIKO3qhhvTtrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jdBAF3p2; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 62E986E36D for ; Thu, 11 Jul 2024 14:34:46 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRszk-0004cg-SE; Thu, 11 Jul 2024 08:33:56 -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 1sRszi-0004cT-1V for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 08:33:54 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRszf-0004GD-Jz for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 08:33:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6D4F7240027 for ; Thu, 11 Jul 2024 14:33:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1720701227; bh=SB3adpbXjWz7jE2pDALrFfxlSWMJuxpaEp0DHvOOZ9Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=jdBAF3p2XViOt3l0lD/l4Slv0JC6RMeTCIAUSjMvO9owvi0DRGpZYK1HhBOugdKrS BOS+RScUK/ULhxPa3WbjVxlMGA0ILqg/+bNolLPIU+r/HHIDg/yKetFWh3B/RfHIGK 2nr57q3JXAT8x1r739IQXSFrfEawd07uQ+C2mc358VlUyBbed8vGIt8Mjswa0z794f pqIDuiQnn7o9TAulzxoVczpt8zj+2iniXOIfleiaM2hou18T5/ZUPKu8gggHBymGsS wy82cY45jr/8AdJaZOcYP4ZwAoKSb+ejNaX+LuIGw5ARIdwuLguwHyujwQ4YlPwCBa nQl/th4jFNvxQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WKZ0B4zSqz9rxG; Thu, 11 Jul 2024 14:33:46 +0200 (CEST) From: Ihor Radchenko To: Orm Finnendahl Cc: emacs-orgmode@gnu.org Subject: Re: multipage html output In-Reply-To: References: <87zfqxpeog.fsf@localhost> <87sewp9liq.fsf@localhost> <87y16bzzxl.fsf@localhost> <87o777zxkv.fsf@localhost> <87r0c2781h.fsf@localhost> Date: Thu, 11 Jul 2024 12:35:21 +0000 Message-ID: <87r0c05com.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 62E986E36D X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.63 X-Spam-Score: -9.63 X-TUID: k8i1+Vb9VWBM Orm Finnendahl writes: > If org-export-as returns just one string, then it will reparse the > parse tree each time it needs to generate an output string. But as you > say below, you rather think org-export-as returns a list of strings > for the multipage case. Got it now. >> What I have in mind is that `org-export-as' will return a list of >> strings + INFO. INFO will contain data about which files to use for >> saving the strings. Then, the caller does the saving and whatever is >> necessary. If we write to files from `org-export-as' it will be a >> massive breaking change in the expected behavior. > > 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 nad 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. > Whatever, both ways will do what's needed, just let me know what you > prefer and I will provide a suggestion, ok? I try to find time on the > weekend, otherwise I'll have time after the end of next week. I am ok with what you propose. So, please go ahead. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at