From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +HHSHTOb1WaWcQEA62LTzQ:P1 (envelope-from ) for ; Mon, 02 Sep 2024 11:02:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +HHSHTOb1WaWcQEA62LTzQ (envelope-from ) for ; Mon, 02 Sep 2024 13:02:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=s31663417 header.b=hNlet1wR; dmarc=pass (policy=quarantine) header.from=gmx.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725274931; 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=tffMukMDwfi1pX67lVDIQWknPXa4dV7UCZNwTs0CQ2Y=; b=Hm+Epkg1c5trTHf/AtRY81Pi+MfkXYhTt4MzFg5qwRByrSymxMLVjVwyTB9/MBiJI936+3 h/RKGw+Dmad+vmQFvECrjuiRBB6u9OFyu1BG5G+4UbhQp8fORXh66ISrZl1RSHotri1PRi hX0SVYsC5Su2+sQjoEog2OozO8cSALymHgU26HDxFwraP5ojtTWACFWVXTpCPj72CyzdVH dAsnaxlIwwmyfPzCSywK0VAq5AIOdUdbdXZd7DRD+sucJw0bi4P3PI4wnDpZ+0CTfSRv7w dH2gSp/FrEEHI0gN0VphB+QwXLq1F+wEnoehNL8jbIb6KYdj9Dp3v19pC6sIgw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725274931; a=rsa-sha256; cv=none; b=FdMkHQyv9+OGdLmgK3egIMLd2UfU1oFLOx2QcbFOyJA4FjHrA2vk7E+8Pf8hP4Y3pQQj3N Y5xUisUHefSF0KqdY/348iY8e+mGqqvYshrZwQvKMzoyiNT9DluT9cED/XJwb51+pn9jIW QEJYEn2xzw2FOxWAgOyavzG0firmv2zMPRDDyEnNNgoT1QjjuDnMgeISFTWoqbaFG8m6Wf hO9a+/KqrsogbDjOvnHe6DfTPI4ZMK4vm8Vd2tcLd4zJlIGCtWO0QFbEjjhMAIX8uNt0ME 7uSwaWyEi4mXzYJc6sTI6c6lzFW615ApGNjg3MNkTG1L5RrhsGt8fkDkv7Wq7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=s31663417 header.b=hNlet1wR; dmarc=pass (policy=quarantine) header.from=gmx.net; 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" 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 4BD5D1AF94 for ; Mon, 2 Sep 2024 13:02:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl4o3-0002LV-Be; Mon, 02 Sep 2024 07:01:11 -0400 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 1sl4o1-0002Kp-IC for emacs-orgmode@gnu.org; Mon, 02 Sep 2024 07:01:09 -0400 Received: from mout.gmx.net ([212.227.15.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sl4nx-0004G3-5n for emacs-orgmode@gnu.org; Mon, 02 Sep 2024 07:01:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1725274855; x=1725879655; i=telegraph@gmx.net; bh=tffMukMDwfi1pX67lVDIQWknPXa4dV7UCZNwTs0CQ2Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=hNlet1wRUiO45DtvDcvrn4QaibbaQBYvBH8i2djI/NUFIF5M3CPR7LBz3pjVRlXW qEQMbuj1OyxBFekppJUREImYWMa+mVRh2zOQfsPSug3B98a1MTyRTak9aY1tE9CS9 dYmsqV3UEhZVsd0PAHnNYASdSmNJwbz3ikA+JvTTwjVYOHhReWgnfyJ5by6PoP9f/ WQDOd8NvUvZOJkbHm9KnHpjUjSWu8RkCkYWBMGKBfOuxyDW79nGOrQMBn4Ua4VO7z LQ6tlVPxsyOD0m8kH3fKOGsRgV4zHxmN4zX2VTfV8KdiympCOOjRx4nSSSVkg+GSs Mtp82sT5laHOJ46cJA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost ([95.90.234.156]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MVeMA-1sbHfv2Bsq-00LDtm; Mon, 02 Sep 2024 13:00:55 +0200 From: Gregor Zattler To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [FR] stable literal hrefs in HTML export of direct links and usage of link description instead of numbered links in case of shortend link syntax In-Reply-To: <87seuxlsza.fsf@localhost> References: <87plq3nslb.fsf@no.lan> <87seuxlsza.fsf@localhost> Mail-Followup-To: Ihor Radchenko , emacs-orgmode@gnu.org Date: Mon, 02 Sep 2024 13:00:20 +0200 Message-ID: <8734mi48xn.fsf@no.lan> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:s9dFevriaD6NVKkc4IDYpBnVUwUyknZJo01cisTPGXhu29EAIc+ obrvHH0Km1I+V3jh7MZJl4+UZDMikABFkJiED7UN8J0D9c33PCMeXjsmjKAmAfNfom30sW8 e4QTcBEsNEY2hW2N9gZlGfCJSETxFMHWErlPHdPBVgCRzC1LRozl7zGLJxvxpNFzwRRDhX4 2ArhFK6Y92at27Wc1Kuvg== UI-OutboundReport: notjunk:1;M01:P0:d2tlDwgSu+k=;J1l8gCWGmDtn/PoVcDW/z5uQ/zx Aak6VqOhqMQAG7rj76feMpdgM8ztKRClIQ107S74qij91JwYtvDgaNTyOqilZ0cEkQMD0ZYJp INOABuu2vrvghqVleqa6gjV3rNVm4p4fckM670xL5aFYRKgAJWlJbeEIr+YSFjpGo1mXEx0f/ 0wBCJD3jcddPOgZIpd2Vj3OWRpQ1ehpdYzUx7Wi/1GbpDRu+jVTCUeEFLqJ5MQ6uCLz2IRO3X KMaxhE8eSr8Is4dEK5ZHpFTxyadI+wH0IWO0uNec39MEsV0DVqs2lEMattmE/HOzJjrdcW9K4 BYKAeAepGiPcvpdvosVyxseecFnJiCRY+J3AIdR9vFzzQJKshDBXuRbbseU/iZeljkdlUKENa nCuqqXf9VLbcIBOT2N7ldI0wSblvtpWOeZj+m1uyxt6H8U4/4qoWl6rZSA9IQvGM7ex9cmLNn +gJxpTFz3Rv2bnAZwqTXijJIayTeBP6DjMHQ6pjJX9DAjHzYhIBfTnFylW0rur67ICersnRMJ qfjw6N5nRZ/7i9jkcc0Pk28TcLqAJZ3klfwz8t+YTgk2zOdeb/D24XXsCw7dRF5zfoSGnMS3H LlWWy6i4TGbxxDOifHjcGhcdNgZDxyfvTIB6RwWCojdx8yK6JvJg0711ufPShEnQ0K+ZqSokr jmiIKcwwo3Y1UY0PcU6Ae6k1t+yAgcl8xOb4ukmVJEk92oUO+9ZyOPRKStom91rWCEUzuYdSF cXi7jtZzzp5QipJFdD6RWQ6qJj4WLW/rJKTjmIaWw/4EJagUypbLnnkH6ujF5DtVs8mKA9vbQ KVrUb4mUeWKx54PLsxBcn2XQ== Received-SPF: pass client-ip=212.227.15.19; envelope-from=telegraph@gmx.net; helo=mout.gmx.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-Queue-Id: 4BD5D1AF94 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.80 X-Spam-Score: -10.80 X-TUID: SdLhSwRJigRE Hi Ihor, * Ihor Radchenko [2024-08-21; 16:51 GMT]: > Gregor Zattler writes: >> I write a piece documentation with a >> glossary in form of a description list >> and want to able to link to the >> descriptions. The thing is then >> exported to HTML. >> >> The only way to do that I found was with >> direct links, but this >> >> 1. does not allow for stable hrefs [...] > You can customize `org-html-prefer-user-labels' to suppress > automatically generated IDs in your scenario. thanks, that helps. >> 1. that instead of a random id the link >> description is used as a href and >> therefore be stable between different >> exports, and [...] > Of course, we might also go into previously discussed idea to generate > valid IDs based on the text (we usually talk about it in the context of > headline IDs), but that will simply be a repetition of the previous > threads like > https://list.orgmode.org/orgmode/87wnrhl7z7.fsf@catern.com/ > https://list.orgmode.org/orgmode/CAJcAo8tXVW39h18FUXLtwoDYNKQsFHqCp+YDiyWfLee29B1PRw@mail.gmail.com/ thanks, interesting read, mostly above my level of knowledge, but FWIW I agree with your proposal https://yhetil.org/87fsfutwin.fsf@localhost to generate links from (washed/sanitized) text plus additional randomization added. Regards, Gregor