From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KCAbBvfE92NfwQAAbAwnHQ (envelope-from ) for ; Thu, 23 Feb 2023 20:56:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yOw6BvfE92PCRAAA9RJhRA (envelope-from ) for ; Thu, 23 Feb 2023 20:56:39 +0100 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 65733447E9 for ; Thu, 23 Feb 2023 20:56:38 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=D4ImdD60; 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=pass (policy=none) header.from=posteo.eu ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677182199; a=rsa-sha256; cv=none; b=VMnu+rXOvgtUF3h4csH3u7r3GBUFf4wwZSv/eLyYCpx2z42tPeg4JwnY14ya+DYn8TXHwJ mGW7FSuCcHqrja52cbCLOT5alduF1Skx1/wm89SOjmPvHQdEINDMd5DsWInRK/Dg6r7gsx nbChWl5JLZK8cYjue6I+wmct024ck6kZqU+XBsLz3JFxPi4ZQv4tu/xUUFo7w2SaqhN6sh ePDSrZIA9jzmYSfcXObRvC0fO7wG0PZ36kntN5JJcowzeOGJvBenjzeoiKhAbyrFqhI4+s pk1YtXUZeggF7HTlABio+vI8vi4aSWJVUOclR0FT9PNszE9eelSjEcQ7HzHJfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=D4ImdD60; 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=pass (policy=none) header.from=posteo.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677182199; h=from:from:sender:sender:reply-to: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=noohmQUMlvb0UlkrmxWQswxmzP6TRN4tUk4HNjXKs3w=; b=B+sSLn8hJpUv4T9hS1axiyg4Krpqk/M2OWM/HqJSuBRGc2gvr2V1BjV3Fon5RszLJwgD4k XsgTaUK+fwGC4xpcHIFO3gFyZucYMwz0MjMKDWUAtsCLQR4QBppTps0HSwKpsQfZraeq3i 8OG5QG2TJSWZrF0iDl0UbwkIci5u0ISdOIDVzWWnq+zHuoB1gIADBsGcaEVWCRcMo2dCGe 36qH9TByFmBbBtA7RX0PIjbLb22QEoECZIPn9vahOG8Oz3R4qW8qdP19xKEJP8fX8YG3r9 yM2CcNFeiysHZIRlW0ikepYi83zlU8nZp3Lfd8ZDVOhMZkf74MkZ/aroTZJdZA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVHgz-0002tb-76; Thu, 23 Feb 2023 14:55:49 -0500 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 1pVHgv-0002sf-ES for emacs-orgmode@gnu.org; Thu, 23 Feb 2023 14:55:45 -0500 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 1pVHgt-0003aT-EN for emacs-orgmode@gnu.org; Thu, 23 Feb 2023 14:55:45 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 900452402D8 for ; Thu, 23 Feb 2023 20:55:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1677182139; bh=kSycvbRJk9JyL63Fn1KTUmV3O6LMmI0ZyiVkyMIrb+0=; h=Date:Subject:To:From:Cc:From; b=D4ImdD607Hw5uo5Pp61TJBKcWdkHIqc/AXL1xu2o4ilrNqJ3ScwjV6Gbm7Yo702YR 0v9Ng8cjdgsaO3S64WgDcSb9jx++djZtABqVoraupZjE18bfohN4v4Ov5Uxjytphtq 9T4u2AOB06M8eBjIa1SkgmkdbKKFSTx1cX9UPsBZPkkYTcK2ytMqSEHr9LUD1CqKfw CojlYf41vFTaUDWyHZrU7VZ6kr9BJmm8Yo1DJoI1CBWaAAqEk4KlBHOV5MjpSGiG0d 6kWvIRcdf4cM0CuD+xyS0oMmdjQapslmbuL/Jhu3oGHyU/+jcIYgEXUUn55VpMySki I1JGF4AEjQOVw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PN3ff0nxTz9rxH; Thu, 23 Feb 2023 20:55:38 +0100 (CET) Message-ID: <27a9349f-2171-d065-d257-6074f627c1ef@posteo.eu> Date: Thu, 23 Feb 2023 19:55:37 +0000 MIME-Version: 1.0 Subject: Re: [POLL] Naming of "export features" Content-Language: fr To: Ihor Radchenko References: <875yc95rxp.fsf@tec.tecosaur.net> <87h6vfnl3a.fsf@tec.tecosaur.net> <871qmhdh3l.fsf@localhost> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Cc: emacs-orgmode In-Reply-To: <871qmhdh3l.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; 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, 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: X-Migadu-Queue-Id: 65733447E9 X-Spam-Score: -9.97 X-Migadu-Spam-Score: -9.97 X-Migadu-Scanner: scn0.migadu.com List-Subscribe: , Reply-To: sebastien.miquel@posteo.eu 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-TUID: mEmN7+P0SkI6 Hi, Ihor Radchenko writes: > What I have in mind is an ability to parametrize the transcoders like > the following: > > (org-export-define-backend 'html > '((paragraph . ((paragraph-is-a-link? figure-transcoder :name figure) > (:unless 'figure paragraph-transcoder)))) > :transcoder-conditions > '((paragraph . ((paragraph-is-a-link? (lambda (paragraph contents info)...)))))) > > Several ideas in the above: > 1. Name features as "transcoder conditions" > 2. The transcoder conditions are now linked to specific Org AST element. > They may not only be matched against the whole parse tree + whole raw > Org text, but also against the specific branch of AST + chunk of raw > Org text corresponding to the branch + the actual exported contents > of the AST children. > 3. "feature implementations" are no longer needed. Instead, export > transcoders can contain the implementation lists inline. Each > implementation is selected not only depending on the presence of the > "feature"/transcoder condition, but also depending on multiple > features or arbitrary lisp expression results. > 4. :when/:prevents apply to specific (possibly named) implementations. > This makes more sense than matching against feature. > For example, presence of svg images in latex export may or may not > mean that \usepackage{svg} is being used, depending on svg > implementation. We want to match against \usepackage{svg} > specifically rather than only against the presence of svg images. What benefits does that bring over making enabled features available in =info= for the usual transcoders and advising them ? Your initial example of adding a comment to the end and beginning of the document can be done by advising, say, =org-latex-template= and concatenating some strings with its =content= argument. -- Sébastien Miquel