From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 eGYVB6Y/f2To/wAASxT56A (envelope-from ) for ; Tue, 06 Jun 2023 16:16: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 mp11.migadu.com with LMTPS id wB23BqY/f2THDgAA9RJhRA (envelope-from ) for ; Tue, 06 Jun 2023 16:16: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 B04D72A815 for ; Tue, 6 Jun 2023 16:16:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6XSn-00011o-8x; Tue, 06 Jun 2023 10:15: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 1q6XSg-0000O6-LG for emacs-orgmode@gnu.org; Tue, 06 Jun 2023 10:15:02 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6XSb-0005uk-Au for emacs-orgmode@gnu.org; Tue, 06 Jun 2023 10:15:02 -0400 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4f4b2bc1565so7703558e87.2 for ; Tue, 06 Jun 2023 07:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686060895; x=1688652895; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=zTUa+87LqGyaAtfvHZ3n3bOa/AuPdXyoGrOOtooCUHI=; b=mkv6JEDSSUgSUxUARYDV5cfV0IMLyKcnbSHJaauflu9Ll6FSTmVWJ4L1Sfqq8Q43Sl pfm3yYjL+fbktABBPFp60dJQrA1PK3cuHqRtyfnE+wUfW5GC3UdarG92uDSAidLjJn5t UNdlVB4NAvx5VeojthYPsGRyW0J3Ubc0Q8h0tplchX47d4jJf4PZnlehqS2i6iz4+UoD /ddtMcKnU451jYw34vuePptKNhkT0LAXls0K3OfhSmjvAzHgs234fVGDN4jJbvqQOX4B CEVBZIZFwH8P+gQGCm5GfH/hhNDs2V1sx3Oz+cuXDgWuQ4J20IdrawRTNfC1133sBDao iA5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686060895; x=1688652895; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zTUa+87LqGyaAtfvHZ3n3bOa/AuPdXyoGrOOtooCUHI=; b=dsYf01gRq8KIlcLXqtLFraUKXLGGphubUzeoT5fdJfxeMCT0W3KwNVtqjkWVbe3xX5 nnl99NHUAwXmoOJiDWZ8s/tOPKI9Zg32/SLaB54ErcwkDoTKN99zbunQ1r8C8AxZ40xf tLP/FmWQHnaG0j7/0JvGXtOg5EAZj/atao+uHDpdCY7SD1bTQ5VhU4IEDeiBtkyXa7/L AuflfitpSgtw8nF2FJ9vf/q7Y2lkIrZ/OEVqdo8IrdunBFEyawulEzfPxQHjcGXLmuS7 MTGUBSu+yvysBsnX8vKpa43XWmNoTpEHIaCmwUj/xumhQenCEu9Rh4bfyiaIbsmfGf4V bbeg== X-Gm-Message-State: AC+VfDzbp3n6xal6fj4E0oXrfU0afbFdF4QXuZdbjQkkI8yLgFnrAsFf w9fdvCj/5zc54gZAn7RPfH0= X-Google-Smtp-Source: ACHHUZ4ql54l4AVNtHBTXISeqf7m7xXYkHwnbBdEDfIjGGclz3ImIxnGzGuneQtrw5UtPLooxCZOSQ== X-Received: by 2002:ac2:5924:0:b0:4f0:1124:8b2a with SMTP id v4-20020ac25924000000b004f011248b2amr1130754lfi.46.1686060894831; Tue, 06 Jun 2023 07:14:54 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id o2-20020a056512050200b004f122a378d4sm1468331lfb.163.2023.06.06.07.14.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jun 2023 07:14:54 -0700 (PDT) Message-ID: <747f75b6-2b0f-5be3-d15b-84c49c96fe56@gmail.com> Date: Tue, 6 Jun 2023 21:14:52 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG To: gerard.vermeulen@posteo.net, Emacs orgmode References: Content-Language: en-US From: Max Nikulin Mail-Followup-To: gerard.vermeulen@posteo.net, Emacs orgmode In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=manikulin@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: 15 X-Spam_score: 1.5 X-Spam_bar: + X-Spam_report: (1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.094, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1686060965; 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: 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=zTUa+87LqGyaAtfvHZ3n3bOa/AuPdXyoGrOOtooCUHI=; b=eN1yrs8Rgk01CE0hZlKckS6kELlpkgDC22s2i2lOBpKZBWteXxbiVBfvVQwlPEUGXEfPB1 4LnTjTGK50SNbJ7XwOMZNu0KdmBun3ugjnx2JdI/eyqP0hUUhwmX7rlgOpP5uDKkqyYHz6 yNs/R4W5/q4K4F5PEIfTj4JmiwCkm+FGADfqn7ir1qStQDOO/T8XyoC7tpFvuUDWR/LCeM F1GOgmvHew9oVDs77Wzt9yJXrheEErWQKGLHvVBYapN1qnGdNlf2RtphGrzFYgggOoaFMa eGzotPinJi4D71jRhUx2JX8t325UMqqYXXYFVJ9yLXwhV8puKuLfzAUTLcN2yA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=mkv6JEDS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1686060965; a=rsa-sha256; cv=none; b=tGFf6DU6tdN/N5vuRu9AlxtyOcccFG3CEF/SWUbUTIFoddVAzj3sFuihrbjPQ+zfYISM0+ BHu+sLgiybSe52vzZIhMBMQvGVsmw1IgHFMC6GkFLUL5cTIfVA7aJUtDILy5TcD8v3e+Ee OFEEL9fZab/fh56Sn49GVgUidAnre0CF8ePi6z6F7/aZBaAmtbfh0A+bY0pujibFO4MP4m NXoCEQo/2BVNXToHOIVfSa/1v8YXcdyY+r46BHh9jJNdHdg4mhryWOGjQmTPP/Uodktl4l STn29ZhwWRqd7bqMfEl8YcqkjwULF9mDk4rHE01ixhFkooqGdjkLy+iQzm8kzw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 0.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=mkv6JEDS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: B04D72A815 X-Spam-Score: 0.41 X-TUID: Zl/AmXWcKicF 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). However notice that some ox options allows include/exclude lists: :exclude-tags ("skip") :with-drawers (not "skip") 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