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 KIuHM+Djn2bCWwAA62LTzQ:P1 (envelope-from ) for ; Tue, 23 Jul 2024 17:09:52 +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 KIuHM+Djn2bCWwAA62LTzQ (envelope-from ) for ; Tue, 23 Jul 2024 19:09:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="j/nyBclC"; 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=1721754592; 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=QtP2ewYsiTXRXAspCb2cL7YDfgRd/saIZe3kSY/uFbk=; b=sRv2nnlJFoOccSwNdneMZ5bskdMXwpPKjyw6gnAhnXUFKGs8mo5FR22YMkOlrEfFg+3cly JKIa6Hft9tnsYH3olS9xdVwUeAbnLvbuINhxbG4d7qzPmAGU1o6HY/99WdzV3kKbmVu7Co 6b2rD11Q4mbgEJ73DNru+plxno45Bj+LOM1QdOohbXJzV8v3N5poPZalAjDxbnyCVV/gLd z3I6Qb2oSj7dQAVDgmz0INPA40+DxV2Yrnl1fusWoP3Ga0h2NRIbx7MmkZK9lH0wLRjq4l QsEFmbfBpHEyoSrJb2Hoe/WSnGMg7xMnEie1Qmnt7MUVmXk4GfagsqbHOaS/+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721754592; a=rsa-sha256; cv=none; b=B4RvdKngezx2jy4WSbwmfgMw/Phnh3uEQyDajEfVqARnLLXiUmpNzd7BpcntqGfp0iUSra WDlWlX1IZcojRkWfx8w4S8rCFDsArvPteUa2kU0g+5FAdfhP2ty7r/dPOD/kwm+0wBKK6K GKtMovgOVXrOpEgCiXlyUY47HKv7ye91+jybvoQU33eBAm2RqPCySyFwzuyqvmZgPNm+ss HDTYmkhdsR5BfYds0YLJKn5jIOpKquS4BQ4HEMTEf6sLSdYFaPKk+KYhJUdXnXfd2NRsDm hmBT8fxPTc6FR5oCLyWHl4WU5FIhQpfnzqmzSfKJbCRddWBsZo12ixMZ+pkWaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="j/nyBclC"; 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 A3CBD32E5E for ; Tue, 23 Jul 2024 19:09:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWJ0Y-0000L0-MY; Tue, 23 Jul 2024 13:09:02 -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 1sWJ0V-0000KP-1s for emacs-orgmode@gnu.org; Tue, 23 Jul 2024 13:08:59 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWJ0S-00074j-2q for emacs-orgmode@gnu.org; Tue, 23 Jul 2024 13:08:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 1E5B9240103 for ; Tue, 23 Jul 2024 19:08:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1721754530; bh=v31IWnWnF7pDApY4xVE3Z9iz8VBgQid44sMKf7IlEn8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=j/nyBclCCF9rWzI7BmW2CKETkGz2oWsw8d8zH15Kzy9rhGi1rnj0QrlFdlUXAjWQk v68P0VRxxO/EUia0oSShOREywvODl9m+OXnfJkA5WFsoDl4U3/hVyLEx8Jo6dTg/dn LwRCkmKwZto4hyzXwp8s6aHn0hUmNSMEIP9k6+anA9wOVpbuYMd6NWTWA4ZD2EOsZQ SJgAMatBww9uue4+HfykGnysRclMOnvDzE6H3ehQtuIef4JUSftmC3daAtJVSf/8rI 76TmnQoI0uej4VmkLptEmcTsu+54ky1RI7PrzwPrhu/Lz4qlqbw1aMtdYICCJ0SqY4 Cr++oiy8wX+pA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WT3X12mFHz9rxG; Tue, 23 Jul 2024 19:08:49 +0200 (CEST) From: Ihor Radchenko To: Orm Finnendahl Cc: emacs-orgmode@gnu.org Subject: Re: multipage html output In-Reply-To: References: <87r0c2781h.fsf@localhost> <87r0c05com.fsf@localhost> <87wmlp38gr.fsf@localhost> <874j8gz9qh.fsf@localhost> <87bk2o2o2m.fsf@localhost> Date: Tue, 23 Jul 2024 17:10:17 +0000 Message-ID: <87sew011c6.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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: A3CBD32E5E X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.64 X-Spam-Score: -9.64 X-TUID: T/ZY/OifDtTI [ Adding the mailing list back to CC ] Orm Finnendahl writes: > Let me recapitulate to make sure I understand you completely: > > 1. Replace the call to org-export-transcode-page at the end of > ord-export-as by a call to org-export-data Yes. > 2. If a transcoder for org-data is defined, call that and return nil > from org-export-date. > > Otherwise return the transcoded string. > 3. In case a string is returned, process it as it is done in > org-export-transcode-page (only that the output string will be > supplied in place of the headline and we will find a better name for > org-export-transcode-page as it is called *after* the transcoding. No. If a transcoder for org-data is defined, call it and return whatever it returns. Otherwise, call `org-export-transcode-page' (adjusted to follow transcoder arguments). > 1. org-export-data has to be modified to catch the case of > org-export-transcoder being called on org-data in the > multipage-case (after ;; Element/Object with contents.). This seems > a bit complicated as there is memoization going on in > :exported-data of info further down in org-export-data which > probably should get circumvented in the multipage case (e.g. by > checking the value of results). I do not fully understand the problem you are describing here, but hope that my clarification above resolved it. > 2. The code has to define/provide a transcoding function in the > multipage case but should *not* provide such a function in the > single page case, which means (in the multipage case) to modify the > alist of the backend on-the-fly before calling org-export-as. I propose to allow custom org-data transcoder for single page case as well. If there is no need to have custom transcoder for single page, the custom transcoder can check :multipage property and fall back to calling `org-export-transcode-page' if it is nil. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at