From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id utIKN71dt2ZMXQEA62LTzQ:P1 (envelope-from ) for ; Sat, 10 Aug 2024 12:31:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id utIKN71dt2ZMXQEA62LTzQ (envelope-from ) for ; Sat, 10 Aug 2024 14:31:58 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aif8hej1; 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=1723293117; 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=asNfRF+UtXOoZAD0nc6RYDt54ul3R9jeYMo/uToHvs4=; b=IXpxEquwiAPAG7kPXAnPSNTKs3Ided772h0AgRPNvuU4mDf1ws0oIgdqw/9IJU3ixEGC/F XIJ2jCrgumVDJoDjVGav+hFP64YVl81OZJQeEOmkNdzRGPp3PWLDyOjAh90x5BwoyzUXnF PMSvNoU5tf7wuPGPivFU9bqe8t+qJcfnLboURKDWtFSLvaQHvDalXDMhsZdMhiJ1+r/x+J 8u/7EJfKaLE6te9kdCYmJJ3GdM0zCeY3ZvdhwJwKU7yUjBuFFVMTpiFafHDEnvNa4sA7fu oSPMwAMYMzWY40SNsnAoNb35bfX3/XHVDZZOiGOutVYJP0qCNdzvFS+DbQ9RWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723293117; a=rsa-sha256; cv=none; b=iQXEBToF05oLC8q4CkxG5wuQog6mVhfp9FPTiHqb3vHgMMBx5QS+/pTLig5QVylGuLQgOv QSlqMTWg8Gz5FBxk8oNdmvX6Aaxby5xbpfwMg8JyugPPglPWlDkYUaKdvQI8K1eivI+U3C Su2gHCjRzJ0JEqFL66JXTbLkGKRCEljGxSmsYtQVFtscwgHLLlSMvp1+RkuMHhwWPGKRf8 iVT79WC7nmzSKbyz4/TapPQVu5bWsFEBrq6i17DjqNKZQBMEGsguehXc/BlrWWsvs62Co+ zrNIozwWxMYutHWhkSwODxSGuiK2daRf5MM72aQqXphtjAN2vpWnGamozDEjHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aif8hej1; 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 7A5363C273 for ; Sat, 10 Aug 2024 14:31:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sclFY-00060n-6d; Sat, 10 Aug 2024 08:31:12 -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 1sclFV-00060f-7i for emacs-orgmode@gnu.org; Sat, 10 Aug 2024 08:31:09 -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 1sclFR-000653-HE for emacs-orgmode@gnu.org; Sat, 10 Aug 2024 08:31:08 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 89806240101 for ; Sat, 10 Aug 2024 14:31:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1723293061; bh=FuT6XzBIBlG6Yzgx9/qRl2Gu8Z6BeCkkYCmxk9jmNFU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=aif8hej10722QPkg4isowW/7LTi+bZtyF9OprgsjPKOE58djmVIUngEZxM/D45Lov HTmTJwpATX8bHfLxJxeJvs0MX55ehAMh1lZZqqaP+V9fhvztkpZkwp8zoU4PsNqNBf kLyjLLajYMLVFbmsWs89324zrkGurFBR0HwcBJh9rQvoEsTm4A8Wt75rBe9vdZKhs+ mXiUg3CegkIMCKiSf0TjjC+zApCyaJCtoMNu1dfw/yUstVCe9Aj0PyaNCZPlO/AfuU Fjh9CSr69A6kIKa4mPqA9Hr8gz40hUNWM7ascafimgXjKEtbrD+XJiTC+Ec+rVeP2R MZqtrda9Pf6Ag== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Wh0W86hqnz6tsB; Sat, 10 Aug 2024 14:31:00 +0200 (CEST) From: Ihor Radchenko To: Orm Finnendahl Cc: Org mailing list Subject: Re: multipage html output In-Reply-To: References: <87sew011c6.fsf@localhost> <87frrzdrbz.fsf@localhost> <87plr14wka.fsf@localhost> <87bk2i8w07.fsf@localhost> <87r0b2kext.fsf@localhost> Date: Sat, 10 Aug 2024 12:32:12 +0000 Message-ID: <87zfpk36er.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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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-Spam-Score: -6.67 X-Spam-Score: -6.67 X-Migadu-Queue-Id: 7A5363C273 X-Migadu-Scanner: mx11.migadu.com X-TUID: SSmNi4jlXPF8 Orm Finnendahl writes: > it was easier than I thought, although still nasty: > > https://github.com/ormf/org-mode/tree/org-html-multipage > > Maybe you can check whether this is along the lines of what you had in > mind. >> Also, please mention that `org-export-multipage-split-functions' are >> called _only_ when multipage output is requested. This means that >> `org-html-multipage-split' does not need to check :multipage property. > > done. I do not see it in > (defvar org-export-multipage-split-functions nil > "List of functions applied to the parse tree after it has been > split for multipage output. Each function is called with three > arguments: The parse tree, as returned by > `org-element-parse-buffer', the backend, as a symbol, and the > communication channel, as a plist. It must return the modified > parse tree to transcode.") Also, as a side note, this docstring does not follow docstring conventions. Try M-x checkdoc >> > +(defun org-html-transcode-org-data (data content info) >> > + "Transcode the top org-data node of the org file to export. >> > ... >> >> > +(defun org-html-transcode-multipage (info &optional body-only) >> > + "Central routine transcoding to multipage output called by >> > +`org-html-transcode-org-data' called from `org-export-as'. >> > ... >> >> I see nothing specific to HTML in these two functions. Please, factor >> them out into ox.el. I think that they can be all merged into the >> default `org-export-transcode-org-data'. > > I factored out org-html-transcode-multipage to > org-export-transcode-multipage and got rid of > org-html-transcode-multipage. I do not see `org-export-transcode-multipage' in https://github.com/ormf/org-mode/tree/org-html-multipage Did you forget to push some commits? >> This is awkward. Why not modifying DATA directly? Say, you can >> transform it into (org-data (...) (org-page ...) (org-page ...) ...). > > I implemented it now by making org-page elements full citizens, > adopting their contents so that you can org-export-data on them. It > was quite nasty concerning link resolution but I found a reasonable > way to solve this. > > This is just a proposal to check whether this architecture is the way > to go. I got the idea that it might be feasible to integrate all page > related properties directly into the properties of each org-page > element rather than annotating info with this information. I will look > into that in the following days as it might simplify the code > somewhat, but it won't be a drastic change (just again probably a > chasing of many nasty details ;-). Looking forward. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at