Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2019, 11:09 PM   #1
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 492
Karma: 1477572
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->L2->iOS/CBW
Duplicate Cover files in epub

Not sure how to fix this. I have some epub books from 2018 or so (not sure which version of calibre they were added/converted) but their structure shows multiple title pages with several covers. When I open them in edit book, these epubs have two title page files:
-titlepage.xhtml
-calibre_title_page.xhtml

the code for the titlepage.xhtml:
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="calibre:cover" content="true"/>
        <title>Cover</title>
        <style type="text/css" title="override_css">
            @page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
        </style>
    </head>
    <body>
        <div>
            <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 599 798" preserveAspectRatio="xMidYMid meet">
                <image width="599" height="798" xlink:href="cover.jpeg"/>
            </svg>
        </div>
    </body>
</html>
the code for the calibre_title_page.xhtm:
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
  <head>
    <title>Cover</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <link href="../stylesheet.css" type="text/css" rel="stylesheet"/>
<link href="../page_styles.css" type="text/css" rel="stylesheet"/>
</head>
  <body class="calibre">
        <div class="calibre1">
            <img src="resources/_cover__0.jpg" alt="cover" class="calibreclass"/></div>
    </body>
</html>
From the code for each, these epubs end up with 2 title pages and covers in the epub file. Is there any easy way to clean up these epubs so that only one title page shows up?

Thanks in advance for any pointers.
slantybard is offline   Reply With Quote
Old 09-23-2019, 10:09 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
(a WAG as I have not run into this issue) Use the Modify EPUB plugin

Be sure to tick Remove Legacy Jacket
FWIW this is a fantastic way to update books without douing a full (and possibly hideous) full conversion
theducks is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate Cover Image Collardclan Devices 7 01-09-2017 10:53 PM
Have many duplicate files Jaejae Calibre 10 04-26-2016 08:16 PM
Managing cover images in mobi/epub files steje Library Management 19 12-07-2013 09:48 PM
duplicate cover in mobi wyatt650 Kindle Formats 6 08-06-2013 05:40 PM
Duplicate Cover images Moonraker Calibre 3 07-30-2011 11:34 AM


All times are GMT -4. The time now is 05:01 AM.


MobileRead.com is a privately owned, operated and funded community.