From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iPhjOSZaf2S7VwEASxT56A (envelope-from ) for ; Tue, 06 Jun 2023 18:09:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sFhFOSZaf2SzJwEA9RJhRA (envelope-from ) for ; Tue, 06 Jun 2023 18:09:10 +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 9247D3A9CC for ; Tue, 6 Jun 2023 18:09:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6ZEQ-0001zV-WC; Tue, 06 Jun 2023 12:08:27 -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 1q6ZEO-0001yj-TN for emacs-orgmode@gnu.org; Tue, 06 Jun 2023 12:08:25 -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 1q6ZEL-0006pl-Ud for emacs-orgmode@gnu.org; Tue, 06 Jun 2023 12:08:24 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 16ED0240027 for ; Tue, 6 Jun 2023 18:08:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686067694; bh=TJXS5C6o1rQdEemdnsVQO8VZc+OMbm3skPN7evc69W8=; h=MIME-Version:Content-Transfer-Encoding:Date:From:To:Cc:Subject: Message-ID:From; b=F6/sydCN0E9ox0pYdMulA7TCXg56+bn7R/O7V1M6+CYOHRZwXlQJSnoTWaJvjxhTz aSp9o9Loob05LyDwXLMrOdI409KcaRN4ZaI47EQYXMUecj7i2Siaf0ImH5VortjPAs F98WQVsL80SdbLZ1LVKIADM9vZ26OPn1SB1SyYWmK8NFbFQsqyJE8fpfhZ+FL3abTx lCJis9Hoywsph3oX+0Kr1Mgc4cTmdj34zGP498HpnOcW2iXC6ZWg8wmPNAFQAI2O7v 5jFke4CdhQfFFMRtwiGDSplcCx3S4t3uMMZoU3kSNxA7TIeuftZcKJixlP1UMyYHbw k2cC/0UrqdHgg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QbFkj4L0mz9rxW; Tue, 6 Jun 2023 18:08:13 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 06 Jun 2023 16:08:13 +0000 From: gerard.vermeulen@posteo.net To: Emacs orgmode Cc: Maxim Nikulin Subject: Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG In-Reply-To: <747f75b6-2b0f-5be3-d15b-84c49c96fe56@gmail.com> References: <747f75b6-2b0f-5be3-d15b-84c49c96fe56@gmail.com> Message-ID: <4cd10b8badc195dd6640559cd2cf739b@posteo.net> Received-SPF: pass client-ip=185.67.36.65; envelope-from=gerard.vermeulen@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, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686067750; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=GMEkz8FPvop6+SqOFjl6Q+hkTOI7GrLG6P/fuEQB4gA=; b=BiXuRLTnhvEhWjwZe8CRfcZGadVPk2ND1Gv0CmLHZx4J6SJ/WJK4vhHgcg3rUnzQnkqd11 Dtu+LAEOT+aWYgWJ3IhLMPhWHXwdE4FCR7w/x2WxgJDc6RYEr/azt/dJ0+IrWzEr9HpAax qNm0UocvbXSenhdm0AC0Ux7umIxAjg5vx+JTbN3LA80ty0+Z3WYWGuhZB4xG90Dmdvi8KN 3ofg/rPSVLl57WicHAlBK5T+fD/J7qHT2tEMd36M2z85uq4RVb38MzRZYl7w7/4RPl0qV2 ns6jQA0hHwkiMY7bQGcbqX2Bo7jmVp3+OzkTbsbzWj0Z4O69OhfHZRHzWEyUEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="F6/sydCN"; 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=1686067750; a=rsa-sha256; cv=none; b=RmNEFeQxNu1ksCGkuG6UZdaLnFaL5cQFzQ01NuOD1l8e+CRgjllgCgfAIhiPaxFSJcO2dW bB5qK3FRGIQU5L5XeqrmkEfugbsfMS3GO79Vmf4eLClguUEbqtN4cVerWEahlB+uvavh0x wGrgqZIZKt9oFtvtxBXgTtmYWSQ13JPotapc6c6nczlpVWkJA3fkCQs8wXuiPJ9aURUx4D v/hX+bwDeT2XgHFqCsLiDSRMqMbeauHlC0mWKti2Uix6Yk1Q2vZZ75yKAuzBs5GJH7xqmv RAnk7YbHTz4mwAzcsdU5ZoQNT3uJHLyF3T34ysgIm4FpzTj2yYq51jK3GJYiEw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -5.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="F6/sydCN"; 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: 9247D3A9CC X-Spam-Score: -5.15 X-TUID: do6BZ9nRQoIX On 06.06.2023 16:14, Max Nikulin wrote: > On 05/06/2023 20:23, gerard.vermeulen wrote: >> # The next line overrules html-embed-svg:t >> #+HTML_EMBED_SVG_EXCLUDES: ./doc8.svg >> # The next line overrules html-embed-svg:nil >> #+HTML_EMBED_SVG_INCLUDES: ./doc8.svg > > I agree with Ihor's idea concerning #+attr_html (multiple inline > images in a paragraph may be an issue). I think that inlining in the sense of ox-html is different from embedding as done in the patch. I may be wrong. This is the first point to settle. If I am right, I think that #+attr_html is not going to work. > However notice that some ox > options allows include/exclude lists: > > :exclude-tags ("skip") > :with-drawers (not "skip") I had been think about names like :with-svgs-to-embed (...) :sans-svgs-to-embed (...) while preparing the patch. I decided to err towards verbosity. You suggest that :svgs-to-embed ("yes" "ok") and :svgs-to-embed (not "no" "skip") are possible. Is it also possible to do #+EXCLUDE_TAGS: not "no" "skip" or something similar in an Org file? > > A can not add much to the discussions concerning various approaches to > include SVG images. I just faced that some SVG files breaks text > selection in Firefox: https://bugzilla.mozilla.org/1730723 I am using Firefox-113.0.2 and the bug is still there: sometimes I can select all text from the beginning of the first "selecting" downwards (depends on my touchpad sweep) but never from the first "Start".