View Single Post
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