From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id lT07FVJUjWBfXAAAgWs5BA (envelope-from ) for ; Sat, 01 May 2021 15:14:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WF56EFJUjWD3bgAAB5/wlQ (envelope-from ) for ; Sat, 01 May 2021 13:14:58 +0000 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 C0CA0121C6 for ; Sat, 1 May 2021 15:14:57 +0200 (CEST) Received: from localhost ([::1]:33566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcpSS-00066r-Qi for larch@yhetil.org; Sat, 01 May 2021 09:14:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcpRW-0005fW-DG for emacs-orgmode@gnu.org; Sat, 01 May 2021 09:13:58 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:53191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcpRU-0004Tq-9W for emacs-orgmode@gnu.org; Sat, 01 May 2021 09:13:57 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id D99231C0002; Sat, 1 May 2021 13:13:52 +0000 (UTC) From: Nicolas Goaziou To: Timothy Subject: Re: stability of toc links References: <877dkzg9y2.fsf@nicolasgoaziou.fr> <87wnsx9rcj.fsf@nicolasgoaziou.fr> <87y2dc82ct.fsf@nicolasgoaziou.fr> <87sg3j4vbl.fsf@gmail.com> <33fd87ff1332b56114909973804df669@isnotmyreal.name> <87h7joibxc.fsf@gmail.com> <87pmycay41.fsf@gmail.com> <87h7jouiuk.fsf@nicolasgoaziou.fr> <875z03igpf.fsf@gmail.com> <87tunmskap.fsf@nicolasgoaziou.fr> <87fsz6boxa.fsf@gmail.com> Mail-Followup-To: Timothy , Tim Cross , emacs-orgmode@gnu.org, Samuel Loury Date: Sat, 01 May 2021 15:13:51 +0200 In-Reply-To: <87fsz6boxa.fsf@gmail.com> (Timothy's message of "Sat, 01 May 2021 20:48:17 +0800") Message-ID: <87fsz6sik0.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.197; envelope-from=mail@nicolasgoaziou.fr; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Cross , emacs-orgmode@gnu.org, Samuel Loury Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619874897; 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; bh=k9ZVX0Nt64m5WbBb8buNGeSb7pGgGodUx9MyzqFma74=; b=S57qLJnmV6eKO7nLlUjOu5fC5igpZ5NDcT6zoPxGokykcOWWbQSpxxLVmkv5aJ4nriQcZK yA2FxT43+ZiaN5uE8XR0kcHriVp/wMy+Zdp1jQIUGSHH9n/4LCy8xsqHxUARWCOIXGRR4d rUJxtSRnMKFtFUD4UcPFIIRSFuXWg+6eHhy09kSzCPIj4BKKE5EzFXLLRt3qLiVx66FCIr /NwjpaztNjWCgnroXHVoSLwTnfN7oAFe8ZwOmGRH8neJHUOF66THTIhpixDclPxuvJkfZ1 21Hunbpiv4dKiTFw4LVKPBdtyat1LkVZm99dLDjbNJJ9drj07xMQlVymLVESKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619874897; a=rsa-sha256; cv=none; b=e7LW4EdBwzFWB8t+17fy7aOYVgnKo6v0eboFQcxW740es9LFjQ2/MznR3TJsFghZDxVMMd XWHsByoxDL1BYCOALmyGABdgjzzNNi2L8n6bYkkRwp/mSq/jk1JG/Av+UwfaFxK0DMKT6x ODv8V33uSiiySjMJFjtv0+CxUZn7iSvWuuA4yYj/QMmeXBVq/QYAx3Ce9baETuvcJ1tvve XlnwZwFIRZYgJ5Y5WS59MRGzdRjpboivhcJuBJBqSs+z3JAzD40gf2nqoMsBGkyJ3tCH94 IpkiWhig/MDlScMwTkwFvTVVKfbqGk+zrcptHO/q/IaeNp1WPZsX/MjgC2dsWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C0CA0121C6 X-Spam-Score: -2.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ffs1SoIzLyQ7 Hello, Timothy writes: > Nicolas Goaziou writes: > >> With the above in mind, I think there are two ways to "improve TOC links >> stability": >> >> 1. Improve the system behind `org-export-get-reference', e.g., so it >> behaves better during plain export. But please keep in mind that >> current major properties must be preserved. >> >> 2. Use an hybrid system in HTML exporter, much like Texinfo's. >> >> Those two ways are orthogonal; both may solve the current issue >> independently on the other. My gut feeling is the second way is easier >> to achieve, at least on the short term. > > I'm not quite sure what you mean by a hybrid system, As I explained, it is a system where the back-end generates its own references, and relies on `org-export-get-reference' as a robust fall-back system. Have a look at `org-texinfo--get-node' function to see what I mean. > but I think generating informative references based on header content > is a nice improvement that also make links much more stable. I don't think such a system would preserve properties offered by `org-export-get-reference', for example in non-latin languages. Also, header content is not stable enough: when you're linking to the custom ID, you may be able to change the title and yet preserve the link. However, your proposal may be an improvement over `org-export-get-reference' in the context of "ox-html.el", that I don't know. That's the second way I wrote about. Regards, -- Nicolas Goaziou