From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id zkofDhNGfmB2zgAAgWs5BA (envelope-from ) for ; Tue, 20 Apr 2021 05:10:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YF2pBxNGfmCjAwAAbx9fmQ (envelope-from ) for ; Tue, 20 Apr 2021 03:10:11 +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 D3B9618A13 for ; Tue, 20 Apr 2021 05:10:10 +0200 (CEST) Received: from localhost ([::1]:47294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYgmA-0008Ez-10 for larch@yhetil.org; Mon, 19 Apr 2021 23:10:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYglT-0008Eq-Am for emacs-orgmode@gnu.org; Mon, 19 Apr 2021 23:09:28 -0400 Received: from out2.migadu.com ([2001:41d0:2:aacc::]:39400) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYglQ-0004D7-JZ; Mon, 19 Apr 2021 23:09:27 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1618888161; h=from:from: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; bh=Fe+xE6l7/Vtp92bsa7nboyc6q1wPXBArmb8RvxtfJNE=; b=ZSSm6K3ZWgucyge9RqcF+79SeZYnlqzhO+PrwSM7P02E1vqU6ZEf6xHEfAGmm7CUTH1l/7 vIH0kvjoTEnh2PKjYgbLAubLqCk1guSVXo96jjmcCo6E5DfejPf3jqJjcvIen0DBSAA3f5 lvnHLvBchfWN21C82Hnhgl9Rk/fX/prvN+N0vZfFzTO2wBjYYx13bD6d65wh2j/71T822J DFgOFX3rKp7Cz25DxLE/4XMXBBgxX0mnZFFWxJynTon5Cgt8b+82rXf9OtBi4j1cdznS2Y yEdg3MnB6VG2E50SH+Q1qweki3n7k6mDM81J2P4nKt4PKUCZJs05WFp19KRfAA== From: Kyle Meyer To: "Jorge P. de Morais Neto" Subject: Re: Bug: JavaScript in HTML export not recognized by LibreJS as free [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/jorge/.config/emacs/elpa/org-plus-contrib-20210412/)] In-Reply-To: <877dl2rn5i.fsf@disroot.org> Date: Mon, 19 Apr 2021 23:09:20 -0400 Message-ID: <87czupy7mn.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=kyle@kyleam.com; helo=out2.migadu.com 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, 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: , Cc: Bastien , Anthony Carrico , emacs-orgmode@gnu.org 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=1618888210; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Fe+xE6l7/Vtp92bsa7nboyc6q1wPXBArmb8RvxtfJNE=; b=hi0XIYGbqcHN/JgWXpRU5RPStWLNTkZH66W14TNb3iDrCHhDZaeLneiAB0ubBGXmm+4XWz GFDZaEtaNMPA8WBKEDskPDAi2Uj4+1SR+DNhnQP1z8bvtjsRsxQr82oixhYE+Ltx+4zrw+ npESxMfOHix7MmJGE30v1Hg5eYA9AzsEeMx9kwWOuXOrLS7PThxvdj2L5iw6voMQ1zwsT/ k3lRAfYcxt/U56cO/2hOUElGmVoTWOKpxjzCEfza/aHzHjh+/y3CzLK1Osa410IExT1WLa bA7qNTAYd/vMRNQNgU4iK8FJ7asWq1hNqjnofA90P6zYHaTgQpqNUycLdxt09A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618888210; a=rsa-sha256; cv=none; b=TYvkR8t54uEeP4j/Hy+Hn2FBSX7bdMakxqBEhc7e1rD0meod/fVK4Sfw/XhOUI0Ph7GohP ieVm79TQEU5tPimWtG4FyS6cCPVgYRQxSbw4XNkEA5wjRrQFouoO00DmMOyXrCCCztP3oZ /2Ne6/uRjcYK3oKyMu1DzZEYXrEwvr4PTarxD2ZQEEkl2Yae0fiumIGGCU84nTSn2OtvHw HEJT+4YkBWP4Ez5JQYPpBBlzWTK3NebQapHY5tQM95V/M5QwnoSEVa47NNcXt4NZLC0Zpu ykRtaf6XWcPI93FaXdwSC9e79kfhdP3E/8dm2FhgCwSmIuDN/swWPrlFzVfHCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=ZSSm6K3Z; dmarc=none; 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: 0.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=ZSSm6K3Z; dmarc=none; 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: D3B9618A13 X-Spam-Score: 0.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: VoLqaTaRrdG0 Jorge P. de Morais Neto writes: > Hi. The HTML export has JavaScript that LibreJS does not recognize as > free. Thanks for noting this. That's certainly not ideal. > My first attempt at an workaround (inspired by the Org Mode mailing > list) was merely encoding the ampersand in the magnet link, but that > *did not make LibreJS happy*. Then I checked LibreJS manual and saw > this excerpt: > > https://www.gnu.org/software/librejs/manual/librejs.html#Free-Licenses-Detection-1 > > Public domain is not a license (see > https://www.gnu.org/licenses/license-list.html#PublicDomain). If > you want to release your work to the public domain, the FSF > recommends using CC0. > > Then I came up with a successful workaround. I included the following > code in my Org Mode customization file: Hmm, the public domain switched happen with 471054136 (ox-html.el: Use classList and put in the public domain, 2020-09-05) and the associated thread is https://orgmode.org/list/20200617002335.l4lg3slfxm74vx3h@silver/ (+cc author and committer) > ;; [2021-04-16 sex]: HACK Work around a bug that confuses LibreJS > (with-eval-after-load 'ox-html > (setq org-html-scripts > (string-replace "\ > // @license magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a&dn=public-domain.txt Public Domain" > "\ > // @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt CC0-1.0" > org-html-scripts))) > > This works; it makes LibreJS happy. Okay. Anthony/Bastien/others, thoughts on using CC0 instead?