From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23076 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sal Migondis Newsgroups: gmane.text.pandoc Subject: pandoc markdown to epub conversion - customize EPUB/text/cover.xhtml Date: Wed, 3 Jul 2019 09:24:42 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_350_2088902567.1562171082277" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="118853"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWO5EHYUULBBS5N6PUAKGQEL6ELLEA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jul 03 18:24:46 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f191.google.com ([209.85.167.191]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hii3p-000Ujn-3x for gtp-pandoc-discuss@m.gmane.org; Wed, 03 Jul 2019 18:24:45 +0200 Original-Received: by mail-oi1-f191.google.com with SMTP id a198sf1333904oii.15 for ; Wed, 03 Jul 2019 09:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=gLfT1ohMENsyIpWi5IyBMHkH5jdHht1xuOa258MzzI8=; b=bhqMZuF+Wa1U4wM+plgfLwNuMZ54BQoC1ka2nA64WxOxC4OTXyVzRkQnasqr4oR1A/ dK2uUbaG71TfKrUwsSYefqoMPMb2ZY+mj36XYmWVa3+2qk3ebEHjRh43u4kYREdqeYuW zj4F3i4GxJe74swpNcyeIgxBYawY6zJfc6ge5xvHYH+cx9Pc+D6ju2Ei8gkkWdf6emO3 VoPLOsw5oQstc85ZxcTpN29sw+kdGJCbE5xJpM/r/aYMpYPUzB4R03HNR0e0vJl77mRa tscXp+Vy2Et5+kewZPK8iZ2piEj8rGY5em2ejjbXZU1AY4LGol9UezzBJYYD6Wp5UQty TVUg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=gLfT1ohMENsyIpWi5IyBMHkH5jdHht1xuOa258MzzI8=; b=kdY52qVS2kCLcGEykAxHiA9kV2XJ1O/X5gdt+GfgwWZExXVp570Wz+b9hSf68FUW8Y X+5oY9oOrL4RreqJ+2NjLaLXXbxXZxtUgMbIWtYswd/x7n20VvDexPInjr58tGLymDbl ZOVsLLVRM/FBFjM1kUYOlVsyDUu6zn0KiGzHXwzpIhoURH26ieM7DJabiAvVV5ul/hJ/ DlGIkq3MTAcXqJvOxkUi/LNNQdxCnwovtSazqwXZ4staca7bUk0slc9bb8oHWCTc752X Ua+HwJh15+Rd51LG9eHfBxf+KwFn0YgU2L45+sYf6FGWVQBM1cFEuUUBbCOLAVSY9weJ fJvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=gLfT1ohMENsyIpWi5IyBMHkH5jdHht1xuOa258MzzI8=; b=mwOMHd6Eg5BPnadZTKv3xSoM/AQQh107HDPlAJd8RdAfOzAqhvLOGfqPgCKFVLf7wL mGXceSUZGdw0wcETvv7iPU5FpLrLwxodmgGO5Ri+0ffYjuQyzpZ66PiYUyO1lVMQXraE 9WLOEh4b3dFE7RljyN3w6mBGo2KWQg7FZ9aNE8Pc9WD4uqr0TBVCeSaa8Dz0aL/q5+ZJ nbRUgqsu5JsmkSsopOqwyDl6Yyj0NOQilvMYM5Io3tVd9AKNBNmvQIhMFeFG/p122LFx g+YqsOvTzsV7jx7sntnMOveBqXzOBY6yWCt2NFIw4MRjvrYEuLZyW4Y01fkmpuYM0XY4 7uvg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVM7F2QHoWwCcVwQfoM+dToTlLd4LTfb8hozR28YA5td5lYDZYN TgOnyMCGw9mpEGSDo8aeysc= X-Google-Smtp-Source: APXvYqwEMeATaAgvnf3zyacSlE4nADtDl+0duSUTW8HMglOi+yAhdqlsUBq/4XCxZFZdTwUnDB+i3g== X-Received: by 2002:a9d:3f06:: with SMTP id m6mr28128498otc.62.1562171083645; Wed, 03 Jul 2019 09:24:43 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:6d09:: with SMTP id o9ls559552otp.7.gmail; Wed, 03 Jul 2019 09:24:42 -0700 (PDT) X-Received: by 2002:a05:6830:1009:: with SMTP id a9mr27408794otp.331.1562171082780; Wed, 03 Jul 2019 09:24:42 -0700 (PDT) X-Original-Sender: salmig99-Re5JQEeQqe8AvxtiuMwx3w@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.org gmane.text.pandoc:23076 Archived-At: ------=_Part_350_2088902567.1562171082277 Content-Type: multipart/alternative; boundary="----=_Part_351_1096245683.1562171082277" ------=_Part_351_1096245683.1562171082277 Content-Type: text/plain; charset="UTF-8" Is there any way I can customize the generated EPUB/text/cover.xhtml file created by pandoc? Basically I would need to replace the default:
> cover image >
> > By something like this:
> xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" > height="100%" viewBox="0 0 900 1200" preserveAspectRatio="none"> > > >
> > The idea is to wrap the cover image in an tag so that it scales to the dimensions of the e-reader. Note that 900x1200 just happens to be the dimensions of the default covers I generate on my system. I am having a problem where my covers are not correctly displayed on the e-reader I use (ancient Kobo glo' with 758x1024 screen). Thanks, SM -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a69adf22-5bde-4df3-9d43-fba2c67f4faa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_351_1096245683.1562171082277 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Is there any way I can customize the generated EPUB/t= ext/cover.xhtml file created by pandoc?

Basically = I would need to replace the default:

<div id=3D"cover-imag= e">
<img src=3D"../media/cover.png" alt=3D"cov= er image" />
</div>


By something like this:

<div id=3D"cover-image"= ;>
<svg xmlns=3D"http://www.w3.org/2000/svg" xmlns:xlink= =3D"http://www.w3.org/1999/xlink" version=3D"1.1" width= =3D"100%" height=3D"100%" viewBox=3D"0 0 900 1200&= quot; preserveAspectRatio=3D"none">
<image width=3D"= ;900" height=3D"1200" xlink:href=3D"../media/cover.png&= quot;/>
</svg>
</div>

<= br>
The idea is to wrap the cover image in an <svg> </sv= g> tag so that it scales to the dimensions of the e-reader.
Note that 900x1200 just happens to be the dimensions of the de= fault covers I generate on my system.

I am having = a problem where my covers are not correctly displayed on the e-reader I use= (ancient Kobo glo' with 758x1024 screen).

Thanks,

SM

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/a69adf22-5bde-4df3-9d43-fba2c67f4faa%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_351_1096245683.1562171082277-- ------=_Part_350_2088902567.1562171082277--