From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0AWsFLPYu2X88gAAe85BDQ:P1 (envelope-from ) for ; Thu, 01 Feb 2024 18:45:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 0AWsFLPYu2X88gAAe85BDQ (envelope-from ) for ; Thu, 01 Feb 2024 18:45:23 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QFQGDZaI; 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.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706809523; 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=y2MVlCSg7Ae0ckhiEt0v1c4adHKcLw8KU7qwestFc24=; b=PRrWGisRSFeIkEKpQsHdezcWM6A5hliJpG3LPjiXEFkqdkgv0EuYVQdfDGuWpu5M3y3/DB 2rl4kKBNytm0U24ERgNjO31GUknHly5hZRagoxuX9Iky//3MUSfsMvGM61D+gTR4LkLe9Q xdrEzzqT2YlNSWlIXKWSklif2xMGpWQpBDjKo7NZSH/sY/xtN5U8ggcftGn2foLarFqVt/ pIWyryRt+GGT+ctcxJjOffEqeTI7Tw7WB6ZnHuibffd0KpYCiDzo+HrgUqudy78f46cQlt HI3lAmwevsXLFYDfpOx6AEHKa6cMZlM55+uVc2SHEZESc/BASZHk9UN1Qu9xCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QFQGDZaI; 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.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706809523; a=rsa-sha256; cv=none; b=ms+h/rn7Msf4UF2CfQIROoSpQ2lWwy0y6IX7/kBCrGGoBVoyEVrBar3JgSbbDy0j6WGsqq cgIxaOg+jSZj8N36i62Pt3t+19y4V69xs1AOLHWMTiLU2Rrwxn7fUWr98oSwwC2dSK0XhV +loXlhEqBXHDeAMFICEAA7AvALDG5spZvScu0xaqibi4Q/BYcp4vaAtiVDG1NiiX5osOp2 yEk4nwPWPW7+/SUJa97XUNMD40wqFR++eWn+WFfL7QxjMtbObA7fWlY6OOQ6MHt0bYp+PW CQZEJ7FmK4aYv50tksFZRv49A7OiC0nJVSrR4EGv56Afy15k9rW7jIawtvuZ6w== 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 D12BA15C5F for ; Thu, 1 Feb 2024 18:45:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVb6t-0005ux-Ny; Thu, 01 Feb 2024 12:44:24 -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 1rVb6q-0005uY-Ky for emacs-orgmode@gnu.org; Thu, 01 Feb 2024 12:44:20 -0500 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 1rVb6o-0004kQ-Dy for emacs-orgmode@gnu.org; Thu, 01 Feb 2024 12:44:20 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A9AF5240105 for ; Thu, 1 Feb 2024 18:44:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706809454; bh=+oPP6C9Z9kdUXelKMXFPxFpjC25tw9+PX4vpmI9rURA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=QFQGDZaIfAeE7eQ/c/3HNogWkuCyBAzxj6YeH1uMLTSo9a0IlHcB3u//q7MzMftVn P8mU4ehJJvch2O+ZI6QrFEaDCMG++/sUVY+RlIMxIxEdAtWrw329w9G/5WmY1hje9V fbPfJfwvSzW1zHhYWPTGQkghVGde68KiTydylLCt/LXPQMG8YtHqLzkOxL2ppNbB08 rvJIOb3qXN9Szjoa4DIqHnRPuuYi/KFf3Dy5I0TFs3xogFHFWfFqRVlnSGlodlMNAC 3Qern5o7XEzXyhdWki5yurcMG5VdfOtlXHNnB8u+cTgTYZLralAb+P+8qk0j3WdLNK AZRc3g0LRwI/Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TQmVk0TnGz9rxB; Thu, 1 Feb 2024 18:44:13 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: [DISCUSSION] Allowing footnote-references inside parsed keywords (#+AUTHOR, #+TITLE, etc) In-Reply-To: <87le84i6qz.fsf@localhost> (Ihor Radchenko's message of "Thu, 01 Feb 2024 14:44:36 +0000") References: <87sf2ngcd2.fsf@localhost> <691643eb-49d0-45c3-ab7f-a1edbd093bef@gmail.com> <878r4e4uy0.fsf@posteo.net> <87h6j2vjd0.fsf@yandex.com> <874jf24u3r.fsf@posteo.net> <875xzgfe8b.fsf@localhost> <87le84i6qz.fsf@localhost> Date: Thu, 01 Feb 2024 17:44:11 +0000 Message-ID: <878r44m650.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@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_H4=0.001, RCVD_IN_MSPIKE_WL=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.39 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -7.39 X-Migadu-Queue-Id: D12BA15C5F X-TUID: NqOc6i7VvayQ Ihor Radchenko writes: > Max Nikulin writes: > >> On 26/01/2024 19:53, Ihor Radchenko wrote: >>> So, I am leaning towards reverting that commit - that will allow things >>> like >>> >>> #+TITLE: This is a test title[fn::This is test] >> >> I hope, document metadata will be generated with stripped footnotes. > > This is a good point. > > For now, [fn::This is test], when passed to exporters, is simply treated > as plain text. > > If we change the parser nesting rules, Org will pass footnote-reference > objects instead. > > Then, in a number of parsers, if something like > (org-export-data (plist-get info :title) info) or > (org-export-data author info) > is used, footnotes may break export because metadata fields often have > special rules about markup that is allowed inside. > > In particular, ox-odt will be broken; ox-latex will be broken. > > Of course, we can adjust built-in backends to take into account the new > parsing rules, but we have no control over the third-party backends. > > On the other hand, when user exports something like > > #+AUTHOR: John Doe[fn::935 Pennsylvania Avenue, NW Washington, D.C. 20535-0001] > it is probably not exported as expected anyway. How about using dedicated keywords? Something like: #+FN_AUTHOR: footnote text #+FN_TITLE: footnote text I give these two examples because they are the two places where a footnote of this type is expected. I know: it's ugly and corseted (what to do if a title has more than one footnote or an "inner" footnote?). But I suppose it would be safe for a basic case, since it would only be necessary to modify org-latex-template, org-odt-template, etc., without risk of unexpected results. Best regards, Juan Manuel