From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OD48IE/TT2P1rQAAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 12:37:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GO5lIE/TT2M8rwAA9RJhRA (envelope-from ) for ; Wed, 19 Oct 2022 12:37:03 +0200 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 396B04F4B for ; Wed, 19 Oct 2022 12:37:03 +0200 (CEST) Received: from localhost ([::1]:40162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol6RY-00062M-SE for larch@yhetil.org; Wed, 19 Oct 2022 06:37:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol6Q8-00062B-UI for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 06:35:32 -0400 Received: from mout02.posteo.de ([185.67.36.66]:43351) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol6Q6-00047U-SK for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 06:35:32 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2A16F240105 for ; Wed, 19 Oct 2022 12:35:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666175727; bh=ah4AYiG35LSI0bN5SWEr8N3WbooagPOWn2W9txoUpqg=; h=From:To:Cc:Subject:Date:From; b=kH/sfuB4xm5JcdExRDWsjWRIH8uMR/9vvwkbprDG60AkWf8lxvLyN15RayIOiN7Ja fv4u4By+CoixMjvbKH9/uvJdWOBmciLR6az/fEvJH93M3Ye6cA8vypIbZZ+MjIi21H qpCLWwATrbH1D3yt3NJWG4419jJisz4dRoie8v/ckd1L0l1Fw/vXoeyPFcwGSrCxvG o69c+irU0rd5gUaLTgTkp3TK+ZaD0iPOvFxu/3qcBBxF2q8FHA2/mTlVQIwpXWGAqK sbXN+r6XGTNXreeyliZFHkYDB3ONHeBEZcw4vJ+2Tx1Q7uHty4Mx1xPRVX+Sh+bNg2 a5tfLdXetaUWQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MsnDs5SCGz6tmF; Wed, 19 Oct 2022 12:35:25 +0200 (CEST) From: Ihor Radchenko To: Moritz =?utf-8?Q?Sch=C3=A4fer?= Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9.5.2/)] In-Reply-To: References: <877d0xfu9m.fsf@localhost> Date: Wed, 19 Oct 2022 10:36:11 +0000 Message-ID: <877d0wayn8.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, 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.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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666175823; 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=HOnKofNc2/OleBIHk5HaAfwt8f87LdISr0VpCtI29SU=; b=tuG/X3rPjRIOiFlNLluktx+q9tNdcqSP5HxqVGZEpYkWu2RLvLARjIcAE8AjXHO/6l5tZZ TommgGNfyR2CbFOpcBD6JVpV/tUvHKwJIv2Qo9eENCmf9ejJJ0IQlIR88ac5b4TB8p/hGk UhWDymTQWqmV4vPFmjOoqh2NT4pWtXFjJq8/szdP6SFkr4sll+9X5d/z17wLYoij/7tNIg pSxNXGQzbBHmFwuhhyNNzloxcU3VxyL2V8Nn6ueKiMNr12MPoOKvvOg1OJf/Ji/OgSvf5y 193TjapwGGJdaHfhOZnkzupcvgjQd5JxmT1Xns56hVU4XUOgBQIK46BnFmU4fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666175823; a=rsa-sha256; cv=none; b=WBAH2V2NJrjC80SxkVcc7ndZFw/FiE845Bq/sDZc987VjZ5xyPD0rIbGGjLQfldJ+U7FKJ UiPhct66OtIS4AK3y91VDc2xH3jZv6CGBf5HB9c7B4p2dCZfVAUII1VRjYKdmxc+MLSDtD SfXV/Thd2ZkMf8C4+gWgdqqJzNDv+kvuZyIDe1Nva9VmfF5fzu0kfkeNPvI6per8DPkHqa pUbSeYNRrz2Bzs1TlQNDzVbqnrjvKoXVwEGmr7OEPO9+5KQY11LhBwlCg9WjBBP8NIoSE+ Cw/BK34dK2aVHK49NybYHR99lwPKQQODJLxAk1Yq/PCab9k5PWFjHU7rCevZTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="kH/sfuB4"; dmarc=pass (policy=none) header.from=posteo.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" X-Migadu-Spam-Score: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="kH/sfuB4"; dmarc=pass (policy=none) header.from=posteo.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" X-Migadu-Queue-Id: 396B04F4B X-Spam-Score: -3.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: YOZCNdD8pJop --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Moritz Sch=C3=A4fer writes: > Thanks for getting back to me on this. > > Here is a minimal example. In org-roam (v2), when having a file/node: Thanks! An example helps a lot. Can you try the attached patch against the latest main branch? --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-ox-odt-Allow-id-links-to-files.patch Content-Transfer-Encoding: quoted-printable >From 4e5c7373115cfeb88fb4392252d682fad8d178a8 Mon Sep 17 00:00:00 2001 Message-Id: <4e5c7373115cfeb88fb4392252d682fad8d178a8.1666175750.git.yantar= 92@posteo.net> From: Ihor Radchenko Date: Wed, 19 Oct 2022 18:33:44 +0800 Subject: [PATCH] ox-odt: Allow id: links to files MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * lisp/ox-odt.el (org-odt-link): Transcode id: links to file property drawers. Reported-by: Moritz Sch=C3=A4fer Link: https://orgmode.org/list/CA+FVMQDBUwCQHFOWieELaB3=3D4MH2ybA66+NpCuQwv= vv_1HVMzg@mail.gmail.com --- lisp/ox-odt.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 208a39d9d..4ff667640 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -2737,6 +2737,12 @@ (defun org-odt-link (link desc info) (format "%s" (org-export-get-reference destination info) (or desc (org-export-get-ordinal destination info)))) + ;; Link to a file, corresponding to string return value of + ;; `org-export-resolve-id-link'. + (plain-text + (format "%s= " + destination + (or desc (org-export-get-ordinal destination info)))) ;; Fuzzy link points to some element (e.g., an inline image, ;; a math formula or a table). (otherwise --=20 2.35.1 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--