From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mKCJEJOEI2LaWgAAgWs5BA (envelope-from ) for ; Sat, 05 Mar 2022 16:41:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QLLSDZOEI2KxjgAA9RJhRA (envelope-from ) for ; Sat, 05 Mar 2022 16:41:07 +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 9FFAC3D4A8 for ; Sat, 5 Mar 2022 16:41:06 +0100 (CET) Received: from localhost ([::1]:45684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQWWn-0007iU-PZ for larch@yhetil.org; Sat, 05 Mar 2022 10:41:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQWWH-0007iM-KX for emacs-orgmode@gnu.org; Sat, 05 Mar 2022 10:40:34 -0500 Received: from mout-p-202.mailbox.org ([80.241.56.172]:52442) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1nQWWF-0006SN-8h for emacs-orgmode@gnu.org; Sat, 05 Mar 2022 10:40:33 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4K9pp01zbDz9sTH for ; Sat, 5 Mar 2022 16:40:24 +0100 (CET) From: M. =?utf-8?B?4oCYcXVpbnR1c+KAmSBHw7xsa2Vy?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guelker.eu; s=MBO0001; t=1646494822; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WKDBxt8kAtKXe8V0TtGGZcrS33Phv5XqCvkRIaniwqg=; b=yC863xitBRK1Elqtm2sy9V6kZrDk6JH+zKyWcGCQD62+caLfto9xFCru4VZbMmH++NLvXU nRcwOKsYOSAmv4Etq6NU9BgJuHzCQOhPycuqkzEpqrVHscEXxGJ7G7j1gW6KXUpj/uq2N6 gJIm3+1oYJW9jg87dq6XpuMczylEd6jBk8jxbS7w+xKlYawOEPvUs2bB98+HBPw+d0PF2H DLjClARrdNamWyqv5dVmQfL2m6Xhy2nn3fmpmzkaJtPkU9RnPS5jvO9vHUHTzzaotCD24d M41iiP0ch36tHHRUErx2ccZtD2VH76G9IJijSJ7UbQD/kx3gbCSqf8dPDmG1SA== To: emacs-orgmode@gnu.org Subject: Filter for HTML footnotes? Mail-Followup-To: emacs-orgmode@gnu.org Date: Sat, 05 Mar 2022 16:40:16 +0100 Message-ID: <87k0d81k7z.fsf@guelker.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=80.241.56.172; envelope-from=post+orgmodeml@guelker.eu; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" 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=1646494867; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=WKDBxt8kAtKXe8V0TtGGZcrS33Phv5XqCvkRIaniwqg=; b=R8noOzAWwmBhzKoWMEozdbfnbSGIH2TcmPiwM6TJm5Td92l9ZYgjzSdTfeSe7NBxABRE+g 8H3H4I7mRnfl5v+6DG57EM6Su0GSbh4E0FY6nrYEvPs4LLN/mqBZGD0mfTeWB4MzYCfRYW 5BBi5chuAQsykIyWu61rfdMaD5QbJwXofOe3J0VHuEs2bljaPcki29TdJMlf1/5GpnkVKr AnWliijLE0kl80LPofc7Kl6MTu2Y/SFMb4Txn9GviqbtQAz3epamh6YIq9P1qJDyh44dTr tdkT68CxXidcVfdfUnSgWOFm3FCKGJ9VOEyUr1RD3DDJYEio8OdNLr/SqGyCqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646494867; a=rsa-sha256; cv=none; b=pT6gYh4jEqxu2WoxxenXKgt16x9/70/YZhuPTajXSqxY+di/tnc3YKTLnk6M4WXQTxioaf lKeq1YeGTbDgwLNsgK8QNKSIdb3s4rf5nxey74PeC3bEaUxJfOqsOcHy5oMaUHfUuYC1b6 tRhKHOHH6iNEvrhlMd4g0KG+/YBy86lpJ49lGqsF6Lxt8wE4PAZ7Hysqk5a9G4pMv9Nncu 9STiPxdIesDU7/3JK4tGBcpuC8N8lcHAMkl8RGbYLsumRk94TgCjRC7xpaHhWyFI1L+kF5 H+Ll7DRTGxdENAAeX8bTlXKOd8wUutXtTf6lcJEuw3Z5H8ZbSRllf4BwTG2kGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=guelker.eu header.s=MBO0001 header.b=yC863xit; dmarc=none; 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: -4.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=guelker.eu header.s=MBO0001 header.b=yC863xit; dmarc=none; 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: 9FFAC3D4A8 X-Spam-Score: -4.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: BevDJOdLuDzw Dear list, I recently discovered export filters and found some useful applications for them. For instance, the scientific domain I work in (law) uses footnote citations, and in these footnotes we abbreviate some words which would otherwise be written out in ordinary text, like name particles. Since I use org-cite these footnotes are automatically generated. So what I did was to write a filter which abbreviates these words on export in footnotes. I added the filter function to both org-export-filter-footnote-definition-functions and org-export-filter-footnote-reference-functions and indeed, when I export to LaTeX or ODT it does its job just fine. However, when I export to HTML instead, it does not. When I looked at the text passed to the filter when exporting as HTML, it turned out what the function receives is not the content of the footnote, but only the markup for the footnote number. That came a bit by surprise. So, what is the correct way to target the content of a footnote in a filter across backends? Org mode version 9.5 (release_9.5-484-g98588e @ /home/quintus/.emacs.d/org-= mode/lisp/) -quintus -- Dipl.-Jur. M. G=C3=BClker | https://mg.guelker.eu | PGP: Siehe Webseite Passau, Deutschland | kontakt@guelker.eu | O<