From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: CUSTOM_ID vs ID Date: Sun, 18 Aug 2019 17:05:09 +0200 Message-ID: <87d0h23462.fsf@nicolasgoaziou.fr> References: <87k1c2mvfq.fsf@nicolasgoaziou.fr> <87h86f8fbm.fsf@disroot.org> <87sgpy3gf6.fsf@nicolasgoaziou.fr> <87d0h28sc0.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58452) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzMkI-00020x-0e for emacs-orgmode@gnu.org; Sun, 18 Aug 2019 11:05:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzMkG-00041m-Iq for emacs-orgmode@gnu.org; Sun, 18 Aug 2019 11:05:25 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:39651) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzMkG-00041E-D7 for emacs-orgmode@gnu.org; Sun, 18 Aug 2019 11:05:24 -0400 In-Reply-To: <87d0h28sc0.fsf@disroot.org> (Jorge P. de Morais Neto's message of "Sun, 18 Aug 2019 11:24:15 -0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Jorge P. de Morais Neto" Cc: emacs-orgmode Hello, Jorge P. de Morais Neto writes: > But could not we URL-encode the dedicated target text? My example was about HTML, but the same process is used in every export back-end. URL-encoded strings may also be invalid in other back-ends. > In my testing, Org generates an ugly anchor even if the dedicated > target text is just "Target". "org-XXX" is not "ugly", but functional :) > The current behavior does not harm my current use cases, but I looks to > me it would be simple to improve (for someone familiar with the > codebase) and help some users. Note that the current behaviour was implemented as an improvement over the previous solution, to help some users. You may want to dig into the mailing list archives about it. IIRC, it started out when a Chinese user reported an issue with targets. LaTeX back-end uses `org-latex-prefer-user-labels'. HTML could use a similar mechanism but no one bothered implementing it yet. In any case, Org provides a robust default solution. I think it is a reasonable expectation as a default. Regards, -- Nicolas Goaziou