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 ms9.migadu.com with LMTPS id WOBGHAZ5i2RxIwEASxT56A (envelope-from ) for ; Thu, 15 Jun 2023 22:48:06 +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 +E3kGwZ5i2Q1JAAAauVa8A (envelope-from ) for ; Thu, 15 Jun 2023 22:48:06 +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 F34922E3FF for ; Thu, 15 Jun 2023 22:48:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9ts5-0007Li-NR; Thu, 15 Jun 2023 16:47:09 -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 1q9ts3-0007LF-V5 for emacs-orgmode@gnu.org; Thu, 15 Jun 2023 16:47:07 -0400 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 1q9ts1-00007f-Py for emacs-orgmode@gnu.org; Thu, 15 Jun 2023 16:47:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id AF4C4240105 for ; Thu, 15 Jun 2023 22:47:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686862022; bh=yT7Jt71yXsWwK1aK8YZX6ja7Gk71oZp2xYXKD10dgMM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=bW5SiJccsAAgDPaQyJD+EWiK3Lvs2XdklIjurg9lxOX6Yar4HWcDwmVTo2fGBpm7F 2GwnjBDdCldOkKy5YGlXbA9o/F0BSVcJ6lIx7cd1jYfeIp+3thXK5YeBiQWKTu83EX CaV83ilVkvua8l8sjHchg/rOxEMfZ25ub5+efVTbbah7vis7AtFV1eOPO66CmpAvNA F1t0wGZcN6pds6dOO6udI40f06URS5tTjNkA5hlBULvNo4ZhCl/wPUJ4a6Dv2NaBC9 XGSNGeROUXsBWvFPSEZYP7u3Ss3RH/gFrhPKqN8vPhsj94hQhpp8o81+KpJP10o/ph TiCZ6njCwCjyQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QhvVG05w9z6tvJ; Thu, 15 Jun 2023 22:47:01 +0200 (CEST) From: Ihor Radchenko To: gerard.vermeulen@posteo.net Cc: Christian Moe , emacs-orgmode@gnu.org, Timothy , Maxim Nikulin Subject: Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG In-Reply-To: References: <871qip3u90.fsf@localhost> <87fs74j4la.fsf@christianmoe.com> <87cz27eka4.fsf@localhost> <87h6rjqr9y.fsf@christianmoe.com> <87v8fznojo.fsf@localhost> Date: Thu, 15 Jun 2023 20:51:56 +0000 Message-ID: <87ilbojvo3.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686862086; 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=74Oe/3IfU4ZnlOn3+hKrppP30ISINFNy6RCJ0tdWw7A=; b=XRNythU1lJFyPpr6/kdoLRR3YPhXGay2oTLS1Pi6UUu8808K0MDr/SZuX6FrEj5HK4arUD xpReGSuI9x9cBHiR3u80KT0r2h4ulsJD99hxw5N0SS/jR/wYUrWGLjaj9Zs0Kj4EWfBQEQ 3Ljcf8y1EbFurLdMv9Uru+B4qdopEE6LrnfUQc++d5K8R+KrHGWc2CNInlZj2b+d0QtlJ7 +1jzoYtrnt8mzmVgDFOEGLFVvpLUfyj0UgJmQWFY9D2qUcaZ6k21MMCQtqFa3VvMcpPCSx ZAYt4nJX6BdCDRqZv0Ky4f85HTxa+Ap1v7j/bvekbElC5avXc0QYiEojqyQt8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bW5SiJcc; 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=1686862086; a=rsa-sha256; cv=none; b=CvA64h6uWkSnYxUctSOL0BUiKSseM7hvAkRvF3diL6+gRlgiJJYg6RUFzWeeh5a3qzW1fW Ou5EOMFamIPZ8LqhNjiTvDayh226yQcjm20b0CGb807L90YVOwUw3JDdVVAikD3TrvB6BV em+BJ6lE4QK3dKooUt7VNpTMz/Fa5NqXKon887J308GetKnSd2/y83/z3xUESlgREG44fB t3g40hcMCfxU14NrneyDqlnWGyK1EwL2UII7FtnHTK8l+0BJ5HGKjv/qH6pKShr7RWav5A FA6jyYE0DtiNi/jtZjucyIyaWEiMUxNXLNCgNqkT2CFPKKULvgDhuujzHH5pTA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.19 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bW5SiJcc; 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: F34922E3FF X-Spam-Score: -3.19 X-TUID: tVv1NuSaCLLa gerard.vermeulen@posteo.net writes: > On 07.06.2023 19:57, Ihor Radchenko wrote: > [...] > I understand why you prefer the tag over the tag. > >> Finally, I can see that there are ways to use CSS on img+svg: >> https://blog.union.io/code/2017/08/10/img-svg-fill/ > > I failed to make the flower example work with the information on this > site. I am not expert in html. Maybe someone else (Timothy?) can chime in. That said, I do not see why we cannot offer strategy as an option regardless whether is can solve the problem with CSS. > ;; For each SVG image during HTML export: > ;; 1. It checks `svg-as-object' and "image in-lining" whether to > ;; embed the SVG image in an tag. > ;; 2. If not, it checks `svg-inclusion' and "image in-lining" > ;; whether to copy the SVG contents to the HTML output. > ;; 3. If not, it falls back to checking "image in-lining" whether to > ;; embed the SVG image in an tag (as any other image type). > ;; 4. It is possible to set `svg-as-object' and/or `svg-inclusion': > ;; - For each SVG link by means of "#+ATTR_HTML: :svg-as-object t" > ;; or "#+ATTR_HTML: :svg-inclusion t". > ;; - Within file scope by means of "#+OPTIONS: svg-as-object:t" or > ;; "#+OPTIONS: svg-inclusion:t". > ;; - Within toplevel scope by means of the options > ;; `org-html-svg-as-object' or `org-html-svg-inclusion'. I think you missed `org-html-inline-image-rules' where users can include/exclude svg images from inlining. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at