From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 GJePEYtiEGNKcwEAbAwnHQ (envelope-from ) for ; Thu, 01 Sep 2022 09:43:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gOFkEYtiEGPaCgEAauVa8A (envelope-from ) for ; Thu, 01 Sep 2022 09:43:07 +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 DBA292C889 for ; Thu, 1 Sep 2022 09:43:06 +0200 (CEST) Received: from localhost ([::1]:42100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTeqv-0000ho-Sz for larch@yhetil.org; Thu, 01 Sep 2022 03:43:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTeDW-0004SN-8f for emacs-orgmode@gnu.org; Thu, 01 Sep 2022 03:02:22 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:38751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTeDU-0004bx-0x for emacs-orgmode@gnu.org; Thu, 01 Sep 2022 03:02:21 -0400 Received: by mail-pl1-x62f.google.com with SMTP id j5so12373921plj.5 for ; Thu, 01 Sep 2022 00:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=410It/T0YTzJydToqzjo+Jd8z/sWA78YDYlPllhFzcs=; b=A4IpV2cMzfrYQWUW0OCaCN85wBZSOq0gh5bV4gOUTQGijh3E0N77N4VlxZ+FkNJP/+ tQWlBiijMRdIVAFm1TrX5sSKh2B3Frh4RCyQ0BIojgwx7XFWdoYLLyuauuqdCwWRboNr X60U78VaVxXs0DQLl+A7N2bPERaiLyBOQYRrmtOsAyRjRZImMZZmBVubUx78PvF2vc1A c2OetNFWvPbPIDuwHWWNqR1LYOV2eCEAW4dSzGJI408KU30aERnoJFa0NiWWvaLmM5Pf ZIUN2poeCDOcdMn3xq15uVjJLq+PMZXVp5fm3upOD2ucXXvee9ZSGaXLdNNv4cOxs9f0 1t0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=410It/T0YTzJydToqzjo+Jd8z/sWA78YDYlPllhFzcs=; b=UxlQfAiUNIx120T3T7YGI0HeSFr+4TDU6Mv/wJCGHzHlX6nJX6RMELm3zEkSlyMr91 WZNnm9JXzoj3tY7EvWRE1hvtoYtRtJO+WpiLaj1cY/bwdbHT3UkWsSGcKEyivK2QLByP +qDLYysb8duHuvDvEeOqy6W5RIV9DXuKx2KTte2npgnsIZpgYbtq9yAyYZVTK0nnyrkK Qmfwx1IfH6Q3d9RcH8zQ9IDcf6VgrqtqjfddPcXfTqQrT8wSph2/JQolJJJk14OVc/yG JZRUBHBzOiNX2NtR3hv0ahhbpUChigkl81WV7IWI//M/hXr9N58YFfM02E5GIhZkW36a oRdA== X-Gm-Message-State: ACgBeo0Xw3s9salQIPlvObiL+9xTHcLQxIMq4upEzHyMQJqKRPSwWatW pLUEKifgA4XVfjCHS+KNlGw= X-Google-Smtp-Source: AA6agR4ebI/Kcbk8O5Me8KyeFpyO/3iArTHLjq2egZJ77cKGzQRA6KsSjfjZzmIW1R1vSjgHCx7i1A== X-Received: by 2002:a17:90b:4c4a:b0:1fb:3c1b:b7f8 with SMTP id np10-20020a17090b4c4a00b001fb3c1bb7f8mr7071716pjb.98.1662015738198; Thu, 01 Sep 2022 00:02:18 -0700 (PDT) Received: from localhost ([2409:8a70:2b3:c8a0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id i15-20020a17090a2a0f00b001fd84a8cfc6sm2507311pjd.39.2022.09.01.00.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 00:02:17 -0700 (PDT) From: Ihor Radchenko To: Tim Cross Cc: lehi@tosk.in, emacs-orgmode@gnu.org Subject: Re: Org Publish HTML and PDF With GPG Files In-Reply-To: <86v8qe5pat.fsf@gmail.com> References: <86v8qe5pat.fsf@gmail.com> Date: Thu, 01 Sep 2022 15:03:17 +0800 Message-ID: <87ilm7o9u2.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662018186; 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=410It/T0YTzJydToqzjo+Jd8z/sWA78YDYlPllhFzcs=; b=H1zvzpQjmeA1S9FXZ3JTjiYhebBHqeGVzGRoHU3VonpXTQma5CD/i1c22efVdm+GLATBID xx1M//vDKSVKxleXhImmzlRC5/6KXJI3/5Fa1i5bTANnYe9b/2KRq7lCc+fipI1RpceNzq gYNRW+0XS8LVFyiKJMWmgl0brknyar/waF82GOlLqMU3PaA6q4/+R24echA7ZAAo45TpX0 A1cgcz7dGkY3wRno3JtNI4s51olz8EI7DXJDq4QQviupJWCrWpwwdyoNOPkv6axbbsrCND BzKkXsHlC8gKF3fXoQ0IpVxTjdmkVSlYV/nJB8Z7uQ8N3k3fZX05GqiFR7ax6w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662018186; a=rsa-sha256; cv=none; b=EVdHZVkYyU8EfoYprBnBOSir7ZBvwGMREWA9dgpeF/9orsdTmuMlvKr2ATEGOAknE//4Ds rnTSUpOmwYD1yx6Yw9tI45lVrNYzwhWzaM0PL3Jlsd7sqTryo67t42OdzkmcQ9+1q1ehIz LKyiXWCEa3D52gP+dl7BVrZECq7HbBAb8DExtKvR09aMFnhrtRf/c8giGfE7F54pqTCHIG CzoByy5m7aVfye144S0Z472QmJyMl7xVdm6+pP0buPS0Q6qdGkKzW9VUJoTmqqJmk5suEf VOeciXlbdRf4Fy1WTov1xJo7I4b1eXN9mSSqiIb82RgSClreEh1h18dq0+WdyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=A4IpV2cM; dmarc=pass (policy=none) header.from=gmail.com; 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.78 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=A4IpV2cM; dmarc=pass (policy=none) header.from=gmail.com; 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: DBA292C889 X-Spam-Score: -1.78 X-Migadu-Scanner: scn1.migadu.com X-TUID: a/jbBVclA6ZY Tim Cross writes: > I don't think there is an 'out of the box' solution for this issue. Part > of the problem is likely because the handling of the gpg decryption is > an Emacs function done outside of org mode i.e. org-mode is not really > aware the original file was an encrypted gpg file, it only see the > decrypted version. This makes it hard for org to know which links ending > in .gpg should be translated and which ones should not (for example, a > link to an encrypted gpg file to be served by the web server rather than > a link to another org file). This makes it a little challenging to come > up with a solution which will work for all use cases. I do not think that things are that difficult. org->html link conversion assumes that the linked .org file is also exported generating the .html file. If I understand correctly, .org.gpg files are also exported during publishing process. (Lehi Toskin, could you kindly confirm this?) Thus, we may simply extend `org-html-link' to work on .org.gpg files in addition to .org files. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92