From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6CbFNZOiV2M5AQEAbAwnHQ (envelope-from ) for ; Tue, 25 Oct 2022 10:47:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MAjjNJOiV2OKJwAAG6o9tA (envelope-from ) for ; Tue, 25 Oct 2022 10:47:15 +0200 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 8F24993FD for ; Tue, 25 Oct 2022 10:47:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onFUE-00057g-JA; Tue, 25 Oct 2022 04:40:38 -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 1onEtJ-0000Hj-Ow for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 04:02:29 -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 1onEtB-0007HT-2n for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 04:02:27 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D3164240108 for ; Tue, 25 Oct 2022 10:02:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666684937; bh=GoPGGoyuql3QEgP4A0YEK1e3meFxQtcFFLzZQMEnl1A=; h=From:To:Cc:Subject:Date:From; b=SRMX0N6bLHEzhTXQl8EmJriwZCpMWWpC0KEn/wAGGtVokPg4RA65as3aloN4RHAtY x3Le5OZqNBcFANie5xrdrl+3z1zMaiBiYmZWBkdsnSEOCsM0G694BdYvivOnY8gh13 mnRznnbU5zapF9EAEOom6F2ElzsoFWZRIEVfd2NxuxQKvcvx2YJx58Ix/eY13rBXIj bPXBzlNJP3NU3D2oLnX8isbsHJKvYiwfHaswGupwjdMQ5wcaVL7kpeqRiLeMCXLitX suWPsJO2PW5FGbNSHLQdasj8q2w4f7iEiWtkhvjMJRoH0D0h2MowqEEWpLOv9juKQX Nim5yVIXiCJcQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MxPYM57gCz6tn0; Tue, 25 Oct 2022 10:02:15 +0200 (CEST) From: Ihor Radchenko To: Damien Cassou Cc: emacs-orgmode@gnu.org Subject: Re: Request for feedback: ox-linuxmag In-Reply-To: <87k04pgg4z.fsf@cassou.me> References: <87h6zunxvy.fsf@cassou.me> <875yg9uy0j.fsf@localhost> <87k04pgg4z.fsf@cassou.me> Date: Tue, 25 Oct 2022 08:02:49 +0000 Message-ID: <871qqwtjo6.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H2=-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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666687635; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/qBruoIAoC++TCR5xzhrJXrsAkdDIW25hekrVI1eKO8=; b=m3W6gJZJgfAtyppYbr1P5K4P2eiwOcJn5egciqPrYNKMLXJpt0/dDXKH0l8kjwCIuMowOH cBOhA5rcSiB3yJX+PP/efumghFs+AyeQRgW/oEjqw5jRiuTLyD4LZlAvRZgzAXN16YAfut O1IttRlOZudAjgDvbHuWWJ4XXVSSwwMmt0yykiZ5J/Z1NFFpXdOg8YqAXJ08CoP7MOp0NX +JeQZgoDZVmS+DDlyBLD1F+q+p+DhKYpNuU4Z7YGk3nqLyno4cXODj9psBxEu0BfpxHL7z 6ifcj3JAKm9SxO8G5ftgOhnPBcyKvxbnwFVrobL/8nVliI7EZzvSkfNQHlfh7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666687635; a=rsa-sha256; cv=none; b=XlPoOZSl3JKoamstIbbDu4E6o3qBdJcuzknbqZL1mntjb2s8LU2osSC/kuCa/iOfoq2cor 7ogFDCn46AEoKwz4rnwfzPxz0mEqyBgA8dh0AN8A4buHDqPiC86/D6ty6aRuZSHCKup78W c4MiAuToFkL32gmpH3rpl5RQIz5wg+mTra9Xrg7JMwNLyJ/RqyhMZ8SV3leXi5m3kkJw4J wXF1g1jz9SSM9bOxfZGvi8BxdWB9d3syDLZvAPpdeaK0l+YtvykhBbPRXoWeiBIV75wKHQ X6GBJX5u1DJZ1Xh8lzFFUZ2LmKSV1ZZnbMq6zXPt4BnNQ5xtVfy+VEJiKuOjEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SRMX0N6b; 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" X-Migadu-Spam-Score: -3.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SRMX0N6b; 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" X-Migadu-Queue-Id: 8F24993FD X-Spam-Score: -3.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1PDkYX71ZsOU Damien Cassou writes: > Ihor Radchenko writes: >> Why not using org-export-define-derived-backend? > > I didn't know this function exist. I changed the code to use it. See A.4 Adding Export Back-ends section in Org manual ;) >> Also, linuxmag might be confused with=E2=80=A6 > > What do you think about ox-linuxmag-fr as package name and linuxmag-fr > as exporter name? Sounds more accurate. >>> (defconst ox-linuxmag--resources-dir >>> (expand-file-name "resources" (file-name-directory (or load-file-name= (buffer-file-name)))) >>> "Directory containing the style and template XML files.") >> >> This will spoil the installation dir. > > What do you mean by that? Do you have a different way to do it? The odt > exporter contains a similar variable and external files (see > `org-odt-lib-dir`). You are right. I somehow thought that you are writing to that directory. >> Your template function has side effects. Side effects are usually >> implemented inside the export function. like ox-linuxmag--export-to-odt > > I guess you are referring to `ox-linuxmag--write-meta-file` and > `ox-linuxmag--write-styles-file`. I would be happy to move them to the > export function but they depend on `info` and I don't know how to get > that from there. Also, I copy/pasted the structure of ox-odt which does > something similar in `org-odt-template`. > > Any recommendation? I think :filter-final-output in :filters-alist will be more suitable. It is called at the very end and may set some let-bound value to be used in the ox-linuxmag-export-to-odt. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at