From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id IFYWCq6BR2ViYAEAG6o9tA:P1 (envelope-from ) for ; Sun, 05 Nov 2023 12:51:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IFYWCq6BR2ViYAEAG6o9tA (envelope-from ) for ; Sun, 05 Nov 2023 12:51:10 +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 E11835E5B4 for ; Sun, 5 Nov 2023 12:51:09 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PF9CwxDW; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699185069; a=rsa-sha256; cv=none; b=I1gzlwJhhvpQSDKD20nMIscZ7T1+t6E+pFSblq7Al6LZwmIFo7t2O0Kky4HZDAS2GX023l veRRLh8Y/p6xS0pPstu4/4ggOBQcrJ0tG4xbBretgTilHTiwhHqQIEuJTZm/y/gDi3zK3K g940qbe2iBvgWVcVf2sdtEx8u06uMdcNQKEmT92F19mn59UOH9HV/Jit5aFcc8hZCguZI/ nb9HnpvCRXa9cbzTMYJxLfEQHEekfkvtGYLT8Vv9WYEddBiZWixnh5wFUopRyCfbigsiyP zBDHWxIPS98DXVXN3UpCsO8f9U7/CIQwMqh7Quh1xbebluvitsidEGy9Tfbr6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PF9CwxDW; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699185069; 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=rTLM52OkQUUNdmim9evkiqXLFqYE6Zi+ozS7fzQ84qQ=; b=Pr/f+nBj5iJnomgtRxFRvmRyHrNHEQG/1otycVWdG5Oj7hEtXtacE6Z5DMrwb9LCSLssy2 JII9MLc/NuPsaeLCyNE39LRFONztcnKVH0N8uI4nj+/LDYY8LyzG3g1JDRlWKAlg2r8QZ+ tyUV6PMirs1eUioJzQiqn8PXEkw/pL3+E0X3cbgii2dZIdLrT3FPk6YwGeuRH4gfK11sU5 SM81BL+58L8m0DhGAaFUEc6zfDeZ+t6MfqZwioN7cf5KqaVQCCwt7t/jtwvVUYEJG856C+ xDULApZztigM1V4g/aub4AIPbIv87GcHPcjp648qL1OmTyjhQQJUuIITDjgdwg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzbe3-0006IQ-Ay; Sun, 05 Nov 2023 06:50:23 -0500 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 1qzbe1-0005w7-4Q for emacs-orgmode@gnu.org; Sun, 05 Nov 2023 06:50:21 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qzbdz-0002aL-6Y for emacs-orgmode@gnu.org; Sun, 05 Nov 2023 06:50:20 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 33E83240103 for ; Sun, 5 Nov 2023 12:50:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699185016; bh=EhAksQLONxmcnC8QXLT00EQg8v23XmkTF9vybquk9YA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=PF9CwxDW3a5/By9IuRLeU6ETFZZVshSlJNCAuJkSmDyq4hy393008a2ErCLMcmtWE YPUxmyfrzCHnzO1feSJY9jmCrq35tjMItAwmomY3CkmxyMrDBdfJTrwWeJrpltjdQX 1Fypnq8J+zAtjfAx+6Xe7GI70WluL9+n3XsJ6NSd/Pps2oioNgPrd4nVzWinHss8Ud jg+m9JUBQtqn2GtEusnyJuLu6xHjY1qrhBbHn/jfKyFCHfbQkHQOcE261rj7SIct9W P4Rl9bNK51T0qoSrtxCcbWyfuTzEDK8NojhMMItj1/HXDZt7QzFAYDzYMWKIub+coz 8b7A0If5/tOqw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SNXpv1Yvyz9rxK; Sun, 5 Nov 2023 12:50:14 +0100 (CET) From: Ihor Radchenko To: Psionic K Cc: emacs-orgmode@gnu.org Subject: [TASK] Re: Link translation & relative path export_file_name In-Reply-To: References: Date: Sun, 05 Nov 2023 11:52:07 +0000 Message-ID: <87jzqw5sew.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: E11835E5B4 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.21 X-Spam-Score: -8.21 X-TUID: HXID4zPaTZK1 Psionic K writes: > When using an +#export_file_name directive, is it possible to have links > translated to match the directory offset of the target? > ... > The links in the org document are correct. The links in the resulting > markdown are not translated, and break. You can use a custom filter. Unfortunately, adding such filter universally is tricky - when publishing, relative links to files are currently expected to remain valid as the publishing also moves the referenced files to the publishing directory. If we update the relative links according to the exported file location, this behaviour will be broken. I think that the right approach will be updating the file links during ordinary export and then handling the updated links specially during publishing. Patches welcome. > The manual has a slightly different problem. I need to translate it as if > it will be exported to the root directory even though it's always in the > doc directory. The links don't seem useful, and turning them off may be > more correct. I haven't gotten a lot of experience with drafting texinfo > yet. You may consider using ox-publish - it is designed with multiple files being exported in mind and allows setting target directory where the necessary files will be copied over. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at