public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc markdown to epub conversion - customize EPUB/text/cover.xhtml
@ 2019-07-03 16:24 Sal Migondis
       [not found] ` <a69adf22-5bde-4df3-9d43-fba2c67f4faa-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Sal Migondis @ 2019-07-03 16:24 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1487 bytes --]

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:

<div id="cover-image">
> <img src="../media/cover.png" alt="cover image" />
> </div>
>
>
By something like this:

<div id="cover-image">
> <svg xmlns="http://www.w3.org/2000/svg" 
> xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" 
> height="100%" viewBox="0 0 900 1200" preserveAspectRatio="none">
> <image width="900" height="1200" xlink:href="../media/cover.png"/>
> </svg>
> </div>
>
>
The idea is to wrap the cover image in an <svg> </svg> 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.

[-- Attachment #1.2: Type: text/html, Size: 2628 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-07-09 18:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-03 16:24 pandoc markdown to epub conversion - customize EPUB/text/cover.xhtml Sal Migondis
     [not found] ` <a69adf22-5bde-4df3-9d43-fba2c67f4faa-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-07-03 16:59   ` John MacFarlane
     [not found]     ` <871rz7m4u0.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-07-03 17:00       ` John MacFarlane
2019-07-03 19:50   ` Sal Migondis
     [not found]     ` <37457961-7b29-4490-a5b0-70063b901ed2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-07-05 10:57       ` John MacFarlane
2019-07-05 22:46   ` Sal Migondis
     [not found]     ` <0da36f70-8fc2-4571-abc7-69fe3a24ee35-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-07-07 15:55       ` John MacFarlane
     [not found]         ` <87imsdg7qa.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-07-09 18:43           ` Sal Migondis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).