From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UPa4FCFfY2O0rQAAbAwnHQ (envelope-from ) for ; Thu, 03 Nov 2022 07:26:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8EeuFCFfY2NZsgAAauVa8A (envelope-from ) for ; Thu, 03 Nov 2022 07:26:41 +0100 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 E4E0237186 for ; Thu, 3 Nov 2022 07:26:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqTfC-0004hS-1T; Thu, 03 Nov 2022 02:25:18 -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 1oqTf6-0004gt-4b for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 02:25:12 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqTf3-0000G3-4c for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 02:25:11 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 97F26240028 for ; Thu, 3 Nov 2022 07:25:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667456705; bh=WJDCa3G/v5FUvG9ojNQDINYO7bZPticiAbnu2eF4Uqs=; h=From:To:Cc:Subject:Date:From; b=c3dHPIRvNPiqHkbJ07yCCpxfwE83dWMClboTdJ4mnMAsjUl//+9+sY3is0R/EGqes odFA2rhwqVD7dj7ULIQ3LTQzsDK9MYbN3wFSjcjt0b+MQw0w+pkoInhFk7xu3lH6M4 6gkpPz6YuzYejJG0ryb74A/7V7lRJ+NJDPsNo6SKR+Rx3KPAB/pkyi6fg8sblivTdq EUy4ZsqU75qAl7ab3NkFcsnNQd59iXsYgNgWXmlhv3+dZBHpj0DsbH3ND8iLRmZBhn 626OfXTz8UCB8WCadzvDx9mxUAR/UuIKmd8m/6qqC6Cre+1AmVAK1+12hNo59x+No+ NNi/6+AqckKEQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N2tz42ZVXz6tmJ; Thu, 3 Nov 2022 07:25:03 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: [DISCUSSION] Default description for relative file links in odt export (was: [BUG] ox-odt file: links are not pointing to the real files (was: [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> <877d0wayn8.fsf@localhost> <87lep97tnn.fsf@localhost> <87ilkc30wd.fsf@localhost> <87ilk0jzab.fsf@localhost> <87iljzjkpu.fsf@localhost> <87pme6kkvw.fsf@localhost> Date: Thu, 03 Nov 2022 06:25:36 +0000 Message-ID: <8735b08sgv.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org 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=1667456800; 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=9/YmNR7uMAPWUK9yJKDgo28BhT97fhlpJEkXfPjFWus=; b=MbAXLWlLmbc4/jtk3GZnnf8z6xEzCcnj4lxbZVUBOo5FveQK2VURjmuNYTUmxBynKdFXjb eSMPVVOhht4mJXQsp6iAB4QPeCDD5g74pynAF4jEYRAv2pi8j8evU2V/6PMTHtccsPM26h k4jwWpXDdPy39K1mz9HMKG8cxCQW6+of5K+pvo/QbSMfGdecanEvcAnGoha2qkbFYdcBSz A0tSL8YII8KKD1j6X4DwzD/lHgfpfZA7VFJ9Auayn5DOxQhqF0Dr3BLWqwcIgfliGwF4zn Mjf1Ka8KdxtLv79r5JFVRiwiYB1huwjXbstJMijsUvRwVt4j9tXK4G+H78HdlA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667456800; a=rsa-sha256; cv=none; b=EAYZ4FQJZbabxgokkHMdlrDwj4gxWDOt7K/6PFyRD2sjwKiEMYlNMdMnKYVNRYB5TyKWrA lbyF8hIfQHv2KIj64QqwENtbzv/Tv9FTDn9bnuZqEWe0DDrJE6I11Ik7gLjpbE2wHTHNIH ePfE7LRp9G2qXXQt3DrqSgZA2Y+QkwtwYo2y+cM3edc93CdOU+bwTdxUl+LQ6C2GnPKdoZ Gqse9nDn7XTwifKMw+gmRa0MATZhcmXpY88g9fM9ATe0ovnt7uF4MB1sAVEzpLi3BQBtRU vu+EVkeGxzmVszQcWOAB77ITtUHeTnH0axjOZ2utjhsWKi2hVxrOJd53kJkKpg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=c3dHPIRv; 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: -1.37 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=c3dHPIRv; 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: E4E0237186 X-Spam-Score: -1.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: DfRPwnyZcTOR In ODT, the ./ is _inside_ the odt archive and the current directory is "../". Then, the default description for file links is "../file", which is somewhat confusing. Should we change it and tweak the default description of relative file links in odt? This will only matter during odt export of relative file links without description. Max Nikulin writes: >> I also noticed this, but I feel that it is reasonable. In odt, >> "file-b.org" implies a resource inside the odt archive. "../file-b.org" >> will highlight that it is an external file. >> >> I'd prefer to leave the "../file" description for now and only do >> something when/if we hear from the ox-odt users. -------- > On 02/11/2022 12:04, Ihor Radchenko wrote: >> See the attached new version of the patch. > > The patch looks reasonable. I have not tried it in action though. Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=210630e546bbd746a98ac252316763371b3ccaf1 Regardless of the default description issue, we want this fix. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at