Quote:
Originally Posted by RbnJrg
I opened the epub you posted in Sigil and there are some errors. But apart from that, I would change the code to handle the cover and titlepage. For the title image (titlepage.xhtml), I would use an SVG wrapper, which is well supported by ADE Legacy and allows the image to be centered and maintain its proportions. For example, I would use the following code:
Code:
<body>
<section id="titlepage" epub:type="titlepage">
<div class="center">
<svg class="epub-type-contains-word-se-image-color-depth-black-on-transparent" xmlns="http://www.w3.org/2000/svg" height="100%" width="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 100 698 364" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="698" height="364" xlink:href="../images/titlepage.png"/></svg>
</div>
</section>
and
Code:
svg.epub-type-contains-word-se-image-color-depth-black-on-transparent {
background: #fff !important;
/* !important` is required to make sure readers respect the BG color */
height: 95%; /* This is for ADE */
height: 95vh; /* This is for epub3 and is ignored by ADE */
}
In Sigil with the above code, the title page looks as:
Attachment 220032
and with the original code, the title page looks as:
Attachment 220033
The advantage of using an SVG wrapper is obvious. Of course, it's your decision whether to adopt it or not.
|
The code I'm using to do a full screen image such as the cover and most titlepages, work no problem with ADE/RMSDK, Thorium, Kindle (KF8 & KFX). Plus, this may work for programs that don't do SVG.
However, for the code for the titlepage in this case, I kept is as close to the original as possible. The one thing I did was remove the excess space about the titlepage graphic.
My main point being is that it's possible to do the eBook as ePub3 and have it work well enough in an older version of ADE/RMSDK which it now does. StandardEReader can do this is they want to. But they choose not to. What they choose to do is LIE to us. They say it's a compatible ePub which it's not. But it could be with much changing the code and then they can stop the lying.