From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6BHqJV/zeWCEhQAAgWs5BA (envelope-from ) for ; Fri, 16 Apr 2021 22:28:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8FERIF/zeWD6PwAAbx9fmQ (envelope-from ) for ; Fri, 16 Apr 2021 20:28:15 +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 E43132024A for ; Fri, 16 Apr 2021 22:28:14 +0200 (CEST) Received: from localhost ([::1]:55230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXV4W-0003ZR-Ng for larch@yhetil.org; Fri, 16 Apr 2021 16:28:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXV3V-0003Xd-33 for emacs-orgmode@gnu.org; Fri, 16 Apr 2021 16:27:09 -0400 Received: from knopi.disroot.org ([178.21.23.139]:52112) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXV3S-00055j-QU for emacs-orgmode@gnu.org; Fri, 16 Apr 2021 16:27:08 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6AD3150CD8 for ; Fri, 16 Apr 2021 22:27:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZWraMSchcdqN for ; Fri, 16 Apr 2021 22:27:01 +0200 (CEST) From: "Jorge P. de Morais Neto" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1618604819; bh=QC3roLUxIyaLHd77K9/lkg5jDcSb673o4adYl+NSXRc=; h=From:To:Subject:Date; b=GMN1tM+fY9czC10oDasf06IIFOD+Yool1wh69qmXipUbQT4QEJDVZ7R3037ZrOi7o F2N/e5BPH0losF7BChhtXrk9i02AO4gxiOk8cGjkZRxQXjX8cu95P3OCnHXkWseUU9 Tj/QwR+Y0djRNLhP5BZt6hehINeMljk8BpJVUn4R9z4k4enCCGxV2WpSpZuHvoUeDx uyB4j3cjb9jro/nnOlSTzMga3XC9tY4cA7mkVf8liOtoZnNv0fD0+7PqPncPsmiRVk yucQ7TgcXfuAnKU1Xpt02WQSGR3o1b9OAyvt5TIp7UY6qIlyVXY2veHKcRGXVglZ3k rjnyoUFXNeKCQ== To: emacs-orgmode@gnu.org Subject: 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/)] Mail-Followup-To: emacs-orgmode@gnu.org Date: Fri, 16 Apr 2021 17:26:49 -0300 Message-ID: <877dl2rn5i.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=jorge+list@disroot.org; helo=knopi.disroot.org 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: , 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=1618604895; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rYYFmHILNfP0yE1pZSPKthvrRitVZtMJQwDY18LsWBc=; b=dfBdJoLfJ1HtRz4/EodS6s2VgNCXAwUUZeB+mqcpjaNctRxMcaIPLPZCNk0dLwXukpHUDJ ozvqfq3BX48mNX4Z41ptsPXmhzJjmxsf61MKkpc7r7V9UPi9BrI4AJtDdU1jVl1+s2RrQa b4bxOS4NvI7UDaOA1lt9u1QaIW1h56NsPWql0aZD26wEvZqxlfpxUpjYlaahc4u812Lkma FAmHLPZCwX27YucISw+1IO11UwDublo+2pgKJ/D3OTDLFD04RXu6lH6bLByoh0+vckcZnX hFSb03XEJs/Nru8eons/JFgjI6mfEgzVDjWiuBzUml/jtn4zyLUa9uMxSwZXng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618604895; a=rsa-sha256; cv=none; b=mAf2k1vwAJheqGaaexws6UF2yoqLnEUbJPG8NM8uB3NwhvZOmt4PuG1OArMCCRNkhy4u8L 2a9W+GMIZpfTtKcNM68J88TseqmvkRmdC9GfY9JiwzRJLPZabngs08+vhr0W6K5sLXqSex GdWOhOj4Mj/N3cetNxEZA8hg4sEMRO6YTF4AFE5MN037/oAk8AkYslw+RTDk3vacsl4hw1 +atsg1c7ZiSEls0gp4cTFCPi7N9Oabk/nqLu5aLeMgdoLNoVsrq6uaBbdvi2krhz3Xz1o3 h1IHnTGcYg4JsLDXpqTm216ATf5yKG/WmkRtL4h57bF6zOjPrPB1PKwFVa2Fag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=GMN1tM+f; 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: -2.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=GMN1tM+f; dmarc=pass (policy=quarantine) header.from=disroot.org; 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: E43132024A X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: PFuiK5KvtbYS Hi. The HTML export has JavaScript that LibreJS does not recognize as free. 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: ;; [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. Thank you for your work in Org Mode! Regards Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) Package: Org mode version 9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/jorge/.config/emacs/elpa/org-plus-contrib-20210412/) -- - "In Support of Richard Stallman" - If an email of mine arrives at your spam box, please notify me. - Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z. - Free/libre software for Replicant, LineageOS and Android: https://f-droid.org - [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]