From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SNCTEhpIgGRhNQEASxT56A (envelope-from ) for ; Wed, 07 Jun 2023 11:04:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aOpyEhpIgGRyeQAAauVa8A (envelope-from ) for ; Wed, 07 Jun 2023 11:04:26 +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 DE7157335 for ; Wed, 7 Jun 2023 11:04:25 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=U0jj9Jsc; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686128666; 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=RTCM1uEDccj6G0bd/DUD08bO7ZYaIDId9A2PI6qp1EU=; b=oN9c1EMpEpfwucouwepZNcpe6nICijyg2+OgvRxrmKvimTH/jmpbxFYurBspsQlDLpdyGQ EcbrWAxRZGPVn4LAVm3hc1ZvxWfZI8XJJRNlEHrhVkU4EUnuVsD77ywiFHXNSrNRENBNmb NpDSRzbULNSYKdQSDPZa4xGhanwe+NYdUKG8qsdI070MYM8MZb+aJ7WjLnv5m+IXgLea/W xoIdDjWo/V8wYY8LmqtnsAWL9KoTMqNiAAE5HTJ1z2DPCV0ufsxnujhmGRsKLlyPs6pu/p Dw5bWP2s6Vx7Ifro2P34Mhqb59VoLahX8BhFq+w/KqbjMzrozF5k4dq9hhS24Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=U0jj9Jsc; 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=1686128666; a=rsa-sha256; cv=none; b=np/197xUtkrJM/Ci3/Ln3UFbgQRA8NXEDnSQyYUI2sXSgIBGZGwKggT/cq7px3RtSR3n2L f6caSYWG3yWWatJ/Oix/Mr0iQds6P/SFbtndpi12Gzw3Czo6pncG5RXIjf7/bi2nUXBzUm c1fi8kGyDEWAeQC6Rm6JUoL/7JMZR0SubFjWEpUVYO2D0a3Lbeac+k1TWN54lYpK08/77p b6IDrlyk6XO1oxBsIXzCslKPMWh64kjm9mZuD3nvkauPQUBKbPT/doRECyWBnqxExFajPo f47c8b34ppPc7InXEzHOJaRXKatEu1WKiXUPVZEBEcwKYJy8bX2epNSNLLfKXA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6p4I-0001lb-9T; Wed, 07 Jun 2023 05:03:02 -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 1q6p4G-0001lN-Uf for emacs-orgmode@gnu.org; Wed, 07 Jun 2023 05:03:01 -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 1q6p4E-0008Fk-JB for emacs-orgmode@gnu.org; Wed, 07 Jun 2023 05:03:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4F8D5240029 for ; Wed, 7 Jun 2023 11:02:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686128576; bh=L97LEBuZCIEbKGCcaC4AuRlrxSpO5xY7uOyIWpUpxGo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=U0jj9JscYO9hzbQ+AzxnUEg0/teMz1oogTQPTXHFs2UDKKgA15J15oqiV/1dIPJ/H jfvEdvLhkZvHA9d4hGoH9riWaj9XAAk60HY4e/CdWoxIoQ0whpVWKhEqBnyoPRxG9U hLiyPJk9jTaX7gv2noK2zlYA1LJ6mWv19S5af9MWKusggabb/evOczWUvcAjdgz8BM ECCU5SaJhr1qV2z6ht2d2h4Tr9prvAqlIUniM4CF2tFynR1pygy8FETKzC1TmJzcOM uqCqk1nHlsJa8wgef7oZ3BELRMm4e2IVcWqYYu9wSJxHS5A8OHzw/1bjskQZNiAhVL u7z8vLojfjcOA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QbhFW3r2Wz6twX; Wed, 7 Jun 2023 11:02:55 +0200 (CEST) From: Ihor Radchenko To: gerard.vermeulen@posteo.net Cc: Timothy , Emacs orgmode , Christian Moe Subject: Re: [PATCH] ox-html.el: add option to embed SVG for CSS support in SVG In-Reply-To: References: <871qip3u90.fsf@localhost> Date: Wed, 07 Jun 2023 09:07:37 +0000 Message-ID: <877csfej3a.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@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: UNKNOWN X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.51 X-Spam-Score: -4.51 X-Migadu-Queue-Id: DE7157335 X-Migadu-Scanner: in3.migadu.com X-TUID: hvNztWssU25w gerard.vermeulen@posteo.net writes: >> This is awkward. To do per-image export adjustments, we usually use >> export attributes (#+ATTR_HTML: ...). And why "split"? > > I do not think that #+ATTR_HTML allows to embed (= copy) the contents > of an SVG file directly into the HTML page. As far as I understand, it > adds > only attributes to HTML elements. For now, yes. But more generally, Org uses #+ATTR_BACKEND to configure export. For example, see "13.10.6 Images in LaTeX export". You may arrange ox-html to handle special #+ATTR_BACKEND: :org-embed t attribute that will be ignored in `org-html--make-attribute-string' and checked in your `org-html--embed-svg-p'. > The "split" is because of similarity with :select_tags and :exclude_tags > in ox. > It allows several files to be included in or excluded from embedding. Makes sense. >> Please use `org-export-inline-image-p'. > > I think that the terminology "inline-image" in ox-html is confusing. > In ox-html the result of the "inline-image" code is an HTML tag like > > > > It does not mean that image data is copied inline as with embedding. If image is not inlined, it must not be displayed as an image, just as a link. Your code will break this convention. Please refer to "13.9.9 Images in HTML export" section of Org manual. >> But the original code is different, no? > > Yes, I pretend that my code is an improvement: > 1. The with-syntax-table is superfluous. > 2. The error message gives a reason and the filename causing it. Then, I find your code sufficiently different to not link to stackoverflow. This link is not helpful to understand the code. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at