From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IHk2HIQTF2F+VgEAgWs5BA (envelope-from ) for ; Sat, 14 Aug 2021 02:51:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ePjqF4QTF2HRJAAA1q6Kng (envelope-from ) for ; Sat, 14 Aug 2021 00:51:16 +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 758E71EE0A for ; Sat, 14 Aug 2021 02:51:15 +0200 (CEST) Received: from localhost ([::1]:56732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEhtJ-0007Sz-Gn for larch@yhetil.org; Fri, 13 Aug 2021 20:51:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEhsx-0007Sr-4F for emacs-orgmode@gnu.org; Fri, 13 Aug 2021 20:50:51 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:35700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEhsu-000762-QC for emacs-orgmode@gnu.org; Fri, 13 Aug 2021 20:50:50 -0400 Received: by mail-wr1-x436.google.com with SMTP id q10so15529876wro.2 for ; Fri, 13 Aug 2021 17:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=rnIC0w8cr+mmT9WiJo0t8yOwppohbRyT+rWcnGTPvuw=; b=avwzB23NhSe6FHEaoeRp/Y/7fWmSvhmnfp+xEF4z2/Zo03IDlBq/Ssa//n72xg+GvI SZBHYqgqOyFZhXvoEMzqp6Pvpth6juaes73oYZ0oSM6YRjgDL0tG2fTQtljkLOLTYsq4 B5FQMgMzXr2os5i1y0c/AwA2IhxFDBNn02D93jmv04ZrZQ6d6+5jyx2I0yMXKSgCTmss 2uV6GF+/SoQe9+/IuTeMP/+C7PaSXvtz9UDw6je1fCq1jDR1oPUSUz2bwG+su6RLfWl9 CbdFuC5GwhwYoEopGCxCzq4abbbYFMO+wNF7wM3LALlZS8fWf+O1slLnJQQM7gQ+AcH4 eTVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rnIC0w8cr+mmT9WiJo0t8yOwppohbRyT+rWcnGTPvuw=; b=kqFcKUeP4f4pqknCpwPUwLGCC/MuINEOwadzt2ZZXdwtxEMhZgd83GI9LBKQrjAujI yf//nyKOwET2yGS646Mu3mlSeaEudWu5d6xxiyiib9666mDDF+WPrGCeT5WKpJc/nEsb XwrhGauXDAsdKteu7IogplKYErI/XwjAACxy53zwZDUwsIx/8rds49OtkxP7ezrlLspT hu5A5pV2yZBBjwwlWTjykT1C5QRDRpZazkt93OWsywj9+WCLxhqHXn+vCQfNsLP0iPBq gMwvr5AoN8EHvXtCY8iAeY8cLkl90p/wzoZYeNnfT1TwuX4jtKKohnTyEHZVoxT+t6Ia 5gJw== X-Gm-Message-State: AOAM531oTHg1mPcn2NsgU5kUzcg0FgqUYseLvvZTP7RluZERFGLftwrJ TMsFROIRuEltr/M3nqZ6tcztQnV+x0E= X-Google-Smtp-Source: ABdhPJy+OX2OzHy57oGKX6CEJik8+nbaHYbjxf3DNpbqKfU1g9K3eyQxWpKtBZPfE5ZqsxP0IvtgwQ== X-Received: by 2002:a05:6000:1086:: with SMTP id y6mr5816193wrw.406.1628902247226; Fri, 13 Aug 2021 17:50:47 -0700 (PDT) Received: from pluto.localnet (aaubervilliers-654-1-81-27.w86-212.abo.wanadoo.fr. [86.212.169.27]) by smtp.gmail.com with ESMTPSA id g11sm3151600wrd.97.2021.08.13.17.50.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 17:50:46 -0700 (PDT) From: inkbottle To: emacs-orgmode@gnu.org Subject: Re: org-id with ox-html Date: Sat, 14 Aug 2021 02:50:46 +0200 Message-ID: <125302989.LfU6mLQhtn@pluto> In-Reply-To: <4617246.m1MCmUpgFQ@pluto> References: <4617246.m1MCmUpgFQ@pluto> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=inkbottle007@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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=1628902275; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=rnIC0w8cr+mmT9WiJo0t8yOwppohbRyT+rWcnGTPvuw=; b=T0lykkyiiQ5zrocOwBqksDbqt4HPHqTFPaURRzg5gG05MD2y8TlmZS7JcafM0n0I1lI1b7 h9j0Dz3YtVv7t4FBPTmsGQYVwVIm8WMUCPq8/+vNjDbOY1QOB8MhJBq2CRih3XcDRLRz4m Y84ZGX5msQQMPQzwpeG6k8szYwQBu/suPj04LMUeDb52RBvPd/9E36erCnpCcV2WuJ8mTL Wdzw65e7FEosENyJ9Oh6UeB8tx404UYIaZ+toZvtaxOmsHFjz31egPfrtkU5Dor3a/7IP7 6tnxQDBUS2u4m+IJAOjn71G2ddRYRbOKukkBIJQSN76m0O4TWjBoj+N0T7g0NA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628902275; a=rsa-sha256; cv=none; b=PYqlUpoVU+Wd3CVeCcsTmpDj28RUzQV7jIcWU6APf9gWLKyvoI3sB4qXUZT98+NwNr8Vx1 fhiYByv8MW7eVmqet3w93GzHuQKL+Too/VaBor1jA5NeyANUY1ZeemoQph1/VjLcBPQY/X dxi0F8qPiR4CMfgIzd+h9Oe9u+fBTQcx25cV1QS69jmDfGUQ1EuW1nuC/23c7fUuUQq9ze oL8L3MqqeOVX6GxifsLf8ktMJFMYSL5+SVH226h30DKdrN62UPqfa9fRvm83vg7dMXk9VG REucGYjScoaucQ2vGQyBcKj9v6L7Ngb6SjTwHUFb0Ay/duSusHeiR/V6dbzxPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=avwzB23N; dmarc=pass (policy=none) header.from=gmail.com; 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.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=avwzB23N; dmarc=pass (policy=none) header.from=gmail.com; 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: 758E71EE0A X-Spam-Score: -2.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7TY13AISra4f Just adding one element. When I open `theindex.inc` in emacs, then do `M-x org-mode`, then go on one of the links and do `M-x org-open-at-point`, the link is correctly followed. But when exported to html, the link from `theindex.html` is broken, because no target has been actually created using :PROPERTIES: :ID: 9ca0bb24-407e-4d23-863b-b3ff8afb90db :END: Instead, I only have a target: `

` in `misc.html`, for the considered headline. It's correct that I do not _need_ a target named after `9ca0bb24-407e-4d23-863b-b3ff8afb90db`, But I do need the link and the target to agree. On Saturday, August 14, 2021 12:28:35 AM CEST you wrote: > Hi, > > I want an `org-id / :ID:` publishing workflow. > > To eliminate "xy-case" I first describe what I've been trying to do. > > First I've added an `:ID:` to many headlines through `M-x > org-id-get-create`. > > Then I've added one `#+INDEX: word` under one of those headlines. > > Then I've executed that (I do not have org-mode related configuration in my > init.el for now): > > #+begin_src emacs-lisp :tangle no > (progn > (use-package org-id) > (setq org-id-link-to-org-use-id t) > ;; (setq org-html-link-org-files-as-html nil) > (setq org-publish-project-alist > '(("project-name" > :base-directory "~/note_taking" > :publishing-directory "~/note_taking/html" > :publishing-function org-html-publish-to-html > :makeindex t) > > ("all" :components ("project-name") > )))) > #+end_src > > then `C-c C-e P a` > > At this point I have both `misc.html` and `theindex.html` created, > `theindex.html`. > > The links in `theindex.html` are like: > `misc.html#ID-9ca0bb24-407e-4d23-863b- b3ff8afb90db`, as they should, I > would say. > > There really is: `:ID: 9ca0bb24-407e-4d23-863b-b3ff8afb90db` in `misc.org`. > But it is not translated in `misc.html`. So the link is not working. All the > anchors in `misc.html` are in the form: `

...

`. No > `:ID:` is used. > > Oh, and I also did, `M-x org-id-update-id-locations`, in case it would bring > me any luck. > > > The subject has already been talked about twice at least, but I can't apply > or understand, what have been said. > > In https://lists.gnu.org/archive/html/emacs-orgmode/2009-03/msg00012.html, > we can read this, which seems to completely address my question, though I > really > don't know how to reproduce it, and I'm not sure it's even possible: > >>> Could the org-id be added when publishing? > >>> > >>> Like > >>> > >>>

HEADLINE > >>> > >>> THE-ORG-ID-ITSELF >>> > >>> span> > >>> > >>>

> >>> > >>> or similar? > >> > >> They already are in the HTML, I am surprised you never noticed. > > > > ... because I didn't use IDs in my publishing projects yet :-D > > The subject has also been brought up by Karl Voit with different > specifications though. I, myself, am perfectly fine with the default > function generating `:ID:`. The discussion however is very interesting: > > https://karl-voit.at/2019/11/16/UOMF-Linking-Headings/ > https://lists.gnu.org/archive/html/emacs-orgmode/2016-12/msg00423.html > > > Another way to put the question could be: > Is it possible, to have `:ID: 9ca0bb24-407e-4d23-863b-b3ff8afb90db`, > translated into `id="ID-9ca0bb24-407e-4d23-863b-b3ff8afb90db"` (or sth), > when exporting to html? > > Thanks, > Chris