From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sE7cLr9EF2HIFwAAgWs5BA (envelope-from ) for ; Sat, 14 Aug 2021 06:21:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IOiLKr9EF2HuNwAA1q6Kng (envelope-from ) for ; Sat, 14 Aug 2021 04:21:19 +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 E13AA2EA8E for ; Sat, 14 Aug 2021 06:21:18 +0200 (CEST) Received: from localhost ([::1]:42944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mElAa-0007Om-Og for larch@yhetil.org; Sat, 14 Aug 2021 00:21:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mElAD-0007NL-T1 for emacs-orgmode@gnu.org; Sat, 14 Aug 2021 00:20:53 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:37641) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mElAB-0007hL-PY for emacs-orgmode@gnu.org; Sat, 14 Aug 2021 00:20:53 -0400 Received: by mail-wr1-x434.google.com with SMTP id r6so15943968wrt.4 for ; Fri, 13 Aug 2021 21:20:50 -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=E8d91dY/jlInTn6uxG681C0AHWcXh4OmmckSeE3Weso=; b=nPUAmpg46hvPU1TFW5+XU1vVOy2roXbcYE2xuk/zT1Fto1G1unGO8cA+K7OWv8gtbc CtccY72+Ad0dHXEvVl6Xi+1zyrkK/cY80hQlJocw7oH/mCJTM/Fb/yhUDXOOo4UQ1Dmc QLS636gukhCe36DQSw86dUAVUxbRepcYCrSmXn+kJImrfAjeA/9A/T+oXifYyqjFrnkD ahWE9l0UrG1c58lY1wEwhuDd2RE3CfLcwF3Qi78/4dhfYSCQklm9G1YM6iG1Rhs/w/5x zAomAOzitNw1vXCBCgRDSHQogh8vsrECXpQKNOL/z+0TrGzjjjcTPQlj0G2NQqg6hO7i X6dw== 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=E8d91dY/jlInTn6uxG681C0AHWcXh4OmmckSeE3Weso=; b=bqp5UXwAplULQAcv9Q+YYYFzfQTUwMyUEvhsO9XS3+H8SEDotqkT/zIsYKMb4BbAi1 ynyZGGtHna+J4S7j6NibQF/zWEe9SoswZylv1c4RoO14+eNn8fVcRJ72CDx++ScUf2Sh LxqZHGSUwpB+iR8AuoJl5kRoS/NSEa4CddmqzOH/Sfm6x78iVdzW0m2eHJNXQjbx2Fk5 f8J8s9hxPjCF3pVCage7adN6c0hc9lWqCS+R1UDSvLQDPdnH+Ig8KKvLxZ2lriXFG0Ni EX/Nib5H36phaCpKVMkc0vW31KKy6+cBCdPtVCy1bKVHuOReoViiHs9cfkzMAEvH5Gqi 5o+w== X-Gm-Message-State: AOAM533qHCDoQZoz2fZ0XJrUnSefGDZgQwd6wW+/Xa0O27OFzvwh3UJ6 a6v38W8p770NmkP/gs1iHGrDynw+P9o= X-Google-Smtp-Source: ABdhPJxWNRxDpmIDazXNGYoHtTvgtIu87WABrWG2sBUaBBDME8ue78pgOSKurgCs5/Gv6PNv6oUxVQ== X-Received: by 2002:a5d:4bc7:: with SMTP id l7mr6616965wrt.146.1628914849263; Fri, 13 Aug 2021 21:20:49 -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 y15sm3378461wrw.58.2021.08.13.21.20.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 21:20:48 -0700 (PDT) From: inkbottle To: emacs-orgmode@gnu.org Subject: Re: org-id with ox-html Date: Sat, 14 Aug 2021 06:20:47 +0200 Message-ID: <1689837.tl16BRLKSx@pluto> In-Reply-To: <125302989.LfU6mLQhtn@pluto> References: <4617246.m1MCmUpgFQ@pluto> <125302989.LfU6mLQhtn@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::434; envelope-from=inkbottle007@gmail.com; helo=mail-wr1-x434.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=1628914879; 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=E8d91dY/jlInTn6uxG681C0AHWcXh4OmmckSeE3Weso=; b=dej/66n1DttTnEr2toy8BhHSj1/0gg/yM0JM7kUBMk45tS6F79tFSxBPztIJKjyo04uxyL iOWkbrVLfv0gYP4rWlMJQlCqRBaci2EPe5h8kv8mDU1M5cB457kIYNCXCeryAO/w0pZztS DdSo2Q8TuB9bI+7UrsUX98zrhn13VHEMARAlZUXsfRSTTNFE95RjDv51f6FJluJNRassBW Kmgt9hKs+e/FoYcw2kfpBMUFNQOXX3mJWttt8Im9G45tFlFj6byQEGX1vSdKAe5ZfTlf5z 9Wr7osSrFC/ZlDBRenMRLObsHloO7rR7qkn8R+iIlcldnTP5eeCuRqYEBIid0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628914879; a=rsa-sha256; cv=none; b=KGIVvYmxb/VikvAz90Ne8IkrbmnNFCVltHaswK48YGvgKGYsfvWdRNkiPMQwF/veOZ99MY N7fSWQtJ2/0q/6ddbm+X9/DLqpw1onpqsQS63jibvuwS+q2+7a0C331jlQair6dLMHoojr p8DgLHIoeszsvzDCqWUsRI9nzDcWGWED36lbONmqBuBxfJltJZKZZQqbwNzouHKSFhY+yj 0XO2huOtS5zKE9thMiJonIsDWqz1HJpJblHtstAVjwEj5kU3aOv/tb5JEUE/fv/dUokd05 XRrXubUBg31mjY/doMOlr5IZtCqR69C1HEYf3HpI9Jvdg/QK2qE65QXZbGxXFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=nPUAmpg4; 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: -1.81 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=nPUAmpg4; 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: E13AA2EA8E X-Spam-Score: -1.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: HkTALAssWtus I cannot have the following minimal example working consistently: $ cat hello.org * hello :PROPERTIES: :ID: e54113f9-2ad7-4a86-94be-68ffc696de0b :END: #+INDEX: hello-keyword #+begin_src emacs-lisp (org-id-update-id-locations '("hello.org" "bye.org" "theindex.org")) #+end_src #+begin_src emacs-lisp (use-package org-id) (setq org-id-link-to-org-use-id t) ;; (setq org-html-link-org-files-as-html t) (setq org-publish-project-alist '(("project-name" :base-directory "~/20210814_minex" :publishing-directory "~/20210814_minex/html" :publishing-function org-html-publish-to-html :makeindex t ) ("all" :components ("project-name") ) )) #+end_src [[id:3c5997f1-205a-437e-8722-d5f52239a207][bye]] Some hello paragraph. $ cat bye.org #+HTML_HEAD: * some long section #+BEGIN_EXPORT html

A line.

Another.

Another.

Another.

Another.

Another.

Another.

Another.

#+END_EXPORT * bye :PROPERTIES: :ID: 3c5997f1-205a-437e-8722-d5f52239a207 :END: #+INDEX: bye-keyword #+begin_example [[id:e54113f9-2ad7-4a86-94be-68ffc696de0b][hello]] #+end_example Some bye paragraph. Initially it worked, without the `makeindex` and without `[[id:e54113f9-2ad7-4a86-94be-68ffc696de0b][hello]]` commented out. Then with `makeindex` it stopped working consistently. The links became broken. Then, the files `bye.html` and `hello.html` were not generated anymore when doing `C-e C-e P a`. Only `theindex.html` was still generated. So I just definitely have no clue of what is the correct workflow to have that project exported correctly to html. On Saturday, August 14, 2021 2:50:46 AM CEST you wrote: > 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: `

> id="org1ddafea">...

`. 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