From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KPETBS5hjWBJcgAAgWs5BA (envelope-from ) for ; Sat, 01 May 2021 16:09:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gPPHAC5hjWAOSwAAbx9fmQ (envelope-from ) for ; Sat, 01 May 2021 14:09:50 +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 6842D12CB2 for ; Sat, 1 May 2021 16:09:49 +0200 (CEST) Received: from localhost ([::1]:47218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcqJX-0000uB-Fe for larch@yhetil.org; Sat, 01 May 2021 10:09:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcqJ7-0000sK-ES for emacs-orgmode@gnu.org; Sat, 01 May 2021 10:09:21 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:52921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcqJ5-0004vB-Dv for emacs-orgmode@gnu.org; Sat, 01 May 2021 10:09:21 -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 4A8681C0007; Sat, 1 May 2021 14:09:15 +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> <87fsz6sik0.fsf@nicolasgoaziou.fr> <87czuabm6w.fsf@gmail.com> Mail-Followup-To: Timothy , Tim Cross , emacs-orgmode@gnu.org, Samuel Loury Date: Sat, 01 May 2021 16:09:14 +0200 In-Reply-To: <87czuabm6w.fsf@gmail.com> (Timothy's message of "Sat, 01 May 2021 21:47:19 +0800") Message-ID: <871raqsfzp.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=1619878189; 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=UAyV1SNM+UoJIaMDtJOPDd/4dpXrVQlNIh7jjOVi7qk=; b=RrVWpOJHZ8v2af8YdLDA+nWfTZVrT5k6yAv8SXmCCgG5BTadNRN9IoGauH7YBHc7W9Dg/H VmBq4WBtFLISNwcnmlM/cVmbL8vukF6oORLyK8EkzJdzEwMwxOgMPJbY2yXR42tPZDpiFB A2bP4TBSAFlzG/rsycSDy+P+nbNAA9YsrTd7uKYRgw6UtwPgdc4FLzgqKyIgelnUhiMi8f EHu12mnsRk6TReU6nCMKefuK+KbNTcHtVGSLEpX3rt+1PImHJLXRie21bnSU2e8lB79h86 DwowlO6AtIqdoJXJBkXFVmRt2uNvqozeV2P/oQVnn9gjB96cC+FX4CwfhHejuQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619878189; a=rsa-sha256; cv=none; b=b32lx7hlLZbStvvZQcEvd3KA4XqTaGA37Ms75jEH37ObTVBGt07LP+T2ljSUqtk9Gbhp6r vTn7YeCEs0J0wSC4VQTcb9wnnO/H/0mzhFvlgcka+HMIsbUI0JU70BbNdmQPI3rJF4SZ90 x0qrcPz/C6oJvF4ywOFsTXt4rkXK4W/lZsRO6eusf5O8WiSPU5xY7uVYH+In5Nne0jMdUL 1M4qf6+zTP6mbuHwST/yCafECQLx+GPMeEUjdsgOlB3G0aZE99USnWtf7ibgExAOrqiLYo Z/wTmEx44jzEiL7xa1VwliBKSCuqMgE5srmGRccXETy1S0zUCDTutZBnKZ4yWQ== ARC-Authentication-Results: i=1; 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-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: 6842D12CB2 X-Spam-Score: -2.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: FPs8mKCzC8BD Timothy writes: > Nicolas Goaziou writes: > >> 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. > > My proposal basically replaces the random hex generating function in > `org-export-get-reference' with a call to a function > `org-reference-contraction' which takes a header and outputs a string > like "some-header-string" and then has digits appended should it be > non-unique (i.e. "some-header-string-2", "some-header-string-3"). > For certain recognised blocks (e.g. src and example blocks) it appends > ",{block}--{n}", for example: "some-header-string,code--1". > > I consider this to be quite a nice improvement. This is mostly what Texinfo exporter does, too. So it must be suitable in some contexts, indeed. However, I wouldn't consider it as an improvement over generic `org-export-get-reference'. I pointed out some concerns I have about the robustness of this system already. I don't think you answered to any of them. I fear we may be communicating past each other in this thread. Regards,