View Single Post
Old 05-30-2024, 09:59 AM   #9642
johansolo
Hero for hire
johansolo began at the beginning.
 
johansolo's Avatar
 
Posts: 11
Karma: 10
Join Date: Aug 2009
Location: Sol-3
Device: KOReader (in a Kobo Clara HD)
Quote:
Originally Posted by JimmXinu View Post
You can customize the HTML generated for cover.xhtml using the cover_content setting. Changing it to include <link href="stylesheet.css" type="text/css" rel="stylesheet"/> should be easy enough.

See CustomOutput wiki page.
I didn't know about the wiki. So many posibilities now...

About the cover thing. I only had to change the img line.

Code:
cover_content:
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
 <title>Cover</title>
 <style type="text/css" title="override_css">
 @page {padding: 0pt; margin:0pt}
 body { text-align: center; padding:0pt; margin: 0pt; }
 div { margin: 0pt; padding: 0pt; }
 </style>
 </head>
 <body class="fff_coverpage">
 <div>
 <svg xmlns="http://www.w3.org/2000/svg" height="100%%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 1200 1800" width="100%%" xmlns:xlink="http://www.w3.org/1999/xlink"><image height="1800" width="1200" xlink:href="${coverimg}"/></svg>
 </div>
 </body>
 </html>
And now is perfect for KOReader.

Thanks.
Attached Thumbnails
Click image for larger version

Name:	Versewalker (KOReader, fixed).png
Views:	711
Size:	386.4 KB
ID:	208583  
johansolo is offline   Reply With Quote