From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26578 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: image that resizes automatically to screen size in epub Date: Mon, 26 Oct 2020 14:17:23 -0700 Message-ID: References: <220286f4-8dab-4a80-9ad6-4794e15f1961o@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28759"; mail-complaints-to="usenet@ciao.gmane.io" To: Chris Jones , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB4PZ3T6AKGQE4ITQYSY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Oct 26 22:17:42 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f63.google.com ([209.85.216.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kX9s5-0007MC-Iw for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 26 Oct 2020 22:17:41 +0100 Original-Received: by mail-pj1-f63.google.com with SMTP id l23sf4628001pjy.0 for ; Mon, 26 Oct 2020 14:17:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1603747060; cv=pass; d=google.com; s=arc-20160816; b=ML4qzOxr3ut0YD8saAuTcvrFRz36SfJJbR9Ptw+5JfibDxbuydHNNOnmYIUJQfsRyU oN91GeNup9l3M1sFYhkylWCrdhczDfqNEtklt2XFxCtcCT/fZqxM8fwrlY4lM8XZm3ZF nEYOLQVxNMtjZZVCf6xgn7swKm2EFHCn2NfjiNYFPR0nuJqhH5DLU/Z8jvkLgJRTzF3I gzYQJRucl6mcyrjfKQtjXwWlxEhQ4UOIMbjnZH0Wv1LMB06R2pJzRDBdi15UryzuP4GU 7PArkyciFXZq2ese1Qa13am4UXdQI2Mn63Sd6UCY7rsbEshMtEjgmkGV75jCsk9tATCL FT/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=n0y61QxxdYjXiCeZBZhtuR4DUC0szyS8FJ8JA+yr0i0=; b=pkr6FtJ4RryYkvIUxuvP3LOCnm4CJQd2HLx9xpJij2AWRp0TL4+UG4idm+avKX1N/W QiyYezyJHDlsHA0wSHirHhTj7zaBe0YX1RVn3BaPjYW+sHHcmEWrPnhwQH+0yA/M9cr6 k+gjom35Mq8mJRSC4vWawyRgG5OFrEO86YnV3jzorptuikdEBz1lVtmARKha24EPxClg +BCcjvamWP3OPvg9v0CQ/bsmziL2BLQmBy2aSQOX0+Lscx8jW3dm5igORpmbWXmQNfe/ GAdjTZ4lhrd73pxXLk6G2RcR7RHmmVy257YLNVONwAn+jXEwZ879iZlIO5O3BCva1pLk +PnQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=wxKbdCul; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=n0y61QxxdYjXiCeZBZhtuR4DUC0szyS8FJ8JA+yr0i0=; b=Ql++KLDglDhAnaxUK01jG688g4iT5eiMzla0aLowM5rV7HPVFxBczi3VIBlE5ntUBh x0bhb+gSrwp7fITieTtq5avljmIu5SaSjFeeYuw9i3jn5RQgO3BXHY2s8w6lIfeAbzpY k3k1H9MpopgABVDkaOJQ3UKGAm97fqgU3Qqf7ZImDmcsDNx4mAwagTr/DhrZI0WH5x3y HpC4ich5owGQnbggMOkPRGPqukSpJg1Gj63OBv5+11ETd/CL90bYFxw7aqIHk5x/0PJN WMWKFgSslalnusJklOZjZ+MkXvt/wWpTZufK2fL1lIPtSwm9SIsHA9KofIbxbPk4EC86 ygWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=n0y61QxxdYjXiCeZBZhtuR4DUC0szyS8FJ8JA+yr0i0=; b=WHByAcV2crFQI5olLmSJ/2a8nNbEbHTZX8zO18zI0TV12UdcQHvqBd17kAifpFLZVl pqMMgFa6AXH5zrDGJvRICV0v4Mrr28A03AOqDOw/WAntiitzjm8pc8CY7ubE8IqUW4zJ v9riEw+Z0kVO2DFdwqxBv6SwA2lYhAtkoiRllSKeNEIyczqQ7E/ASgHsa9DlAdgF5Jjz e6Fp1vErujvvSJugVq/50Lb5mk3uw1WvFYFvoBTMyAdBrO0AkecTvFEY5wFdeA1SIMTd yPUmW4fYKjYIim2ZkGx3taYkL7D0xOwNZOSvVyrsL4MlGjK1yqDsEabEI7wc2yHTdX1h 52jw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533bXgXuOTRhE1LHq++wpntpcQ6rF+Oa3EtGSocns/RgVYb3RBgG KHw2JicvkMc7IOMP/lNnth8= X-Google-Smtp-Source: ABdhPJyjrP9AG6XtizYs1J6cvH49w0Y7jiVpYRx25scfGsRxOMpw5vyA+GertUh1f9JQx/76sK2niw== X-Received: by 2002:a63:fd08:: with SMTP id d8mr18829279pgh.406.1603747060349; Mon, 26 Oct 2020 14:17:40 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a65:62d7:: with SMTP id m23ls622884pgv.1.gmail; Mon, 26 Oct 2020 14:17:36 -0700 (PDT) X-Received: by 2002:a65:6109:: with SMTP id z9mr19633490pgu.112.1603747056671; Mon, 26 Oct 2020 14:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603747056; cv=none; d=google.com; s=arc-20160816; b=UgUioZk/CFEFlGgLyzjfp4/Zcj9ZstAJhVQlJaj50QROZXmUvoMDVGULw4cMiExPqi sQYnuW7+Tv/u7VkEnoEeR1T3tXBFgvvA2BUMk1qiGMUcXHCM+St4M1U6/17l3dxbWOfY 2Y1L17HdxuWfncY02jxJZQvQivK8lLC67+aKn6bySU0tgN+h8pINVkNiLQubmlBOyyOg dEc3bD4m+VzPqjlQmTlVt96/vOb03nKSGOhrUovl4kdKIGMXd81bznEP8vkj9r0c69bO v6aUDEtLz1QOAII7LNXwi7W4ztGuu4GrHYRM+nkc8D/bwLdbjKskhUvjaaRwkQY1YaXo qpsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=KA9h8g1ymLHb0m25w/PT41LNGKrcyYDQfpdY4Ve+JuI=; b=HnmgnP0x3trmSZ0TQf3G1+zk7FDsZBo3+5OFkMGuBYw084Nhs6jMaMnOWS/Y9/qhZn DkquPVz8UGSmYBoh/Gdug/DfMxdsk5hi564HKRrFzyf64O8k1ksOSC5pxcqo+foDo7na aBdl0zP4IDIr3OcIgygqzEG9XMxIWNC6oe2e/TS9aB27c7w3KEAYMuGTbrfBnjLnDDgf rAekOEj5fcFILp+EQsHk3PVlGS1I5Utcz25lOeFW6Vlmd/KRiAExvk79gi7UDTovKtuX v0kHdGCATobGrD8dADDyVLZmMyRzLyx7+7d5NnsG/wVww2zVfhF+MJ1JDKyxmSMlml1A UdiQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=wxKbdCul; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com. [2607:f8b0:4864:20::433]) by gmr-mx.google.com with ESMTPS id k126si721917pgk.0.2020.10.26.14.17.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Oct 2020 14:17:36 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::433 as permitted sender) client-ip=2607:f8b0:4864:20::433; Original-Received: by mail-pf1-x433.google.com with SMTP id e7so6887162pfn.12 for ; Mon, 26 Oct 2020 14:17:36 -0700 (PDT) X-Received: by 2002:a63:1542:: with SMTP id 2mr18689954pgv.248.1603747055973; Mon, 26 Oct 2020 14:17:35 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id 66sm11705287pgd.84.2020.10.26.14.17.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 14:17:34 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id E9F50A18A; Mon, 26 Oct 2020 17:17:23 -0400 (EDT) In-Reply-To: <220286f4-8dab-4a80-9ad6-4794e15f1961o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=wxKbdCul; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:26578 Archived-At: Chris Jones writes: > What I see is the following processing of raw HTML when creating an EPUB: > > 1. Tags of the form: > >

> > are processed to some extent insofar as the description of the file is > added to the resulting content.opf manifest and the image is copied to the > EPUB/media/ directory > > 2. tabs are also partially processed: their presence in a file > (book chapter) automatically causes pandoc to add "properties=svg" > qualifier to the file's description in the manifest. On the other hand what > lives inside the svg wrapper is ignored. I believe this was just fixed a couple days ago: commit 4bf171e11dd324f5c65e15da17717b701e961b17 Author: John MacFarlane Date: Fri Oct 23 21:56:12 2020 -0700 HTML reader: parse inline svg as image... ...unless `raw_html` is set in the reader (in which case the svg is passed through as raw HTML). Closes #6770. You can try with a nightly.