1.6.5.10(b4) – eBook cover page

General comments and questions. Technical support.
Post Reply
Phaitoon
Posts: 4
Joined: Fri Sep 28, 2012 2:09 am

1.6.5.10(b4) – eBook cover page

Post by Phaitoon »

With Version 1.6.5.10(b4) you can’t use a header (with line through attribute) on the cover page anymore.
If you do, the <guide> entry in content.opf is missing – causing most eReaders to not display the cover at all.

Shure: if you don’t use a header on the cover page, everything works fine.
But then you end up with the default “Titel page” entry in the TOC.
In my case (creating eBooks in German) Atlantis translates this as “Titelblatt”.
I don’t like this term and have to tweak the ePub to change it to “Cover”.

Would really appreciate if this “line through trick” could be used on the cover page as well. :)
Robert
Posts: 1906
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

Hi,
Could you please have a look at the files attached to this post:

Both “Rembrandt Biography.rtf” and “Rembrandt Biography.epub” were created in Atlantis 1.6.5.10 beta b4.

“Rembrandt Biography.rtf” uses the “line through trick” in both the cover and the title page.

All eReaders that I have on my PC display both the cover and the title page correctly, along with the associated TOC titles (“Cover Page” and “Title Page”).

Does this “Rembrandt Biography.epub” display differently on your eReaders?

HTH.
Cheers,
Robert
Attachments
Rembrandt Biography.rtf
(44.21 KiB) Downloaded 1737 times
Rembrandt Biography.epub
(25.92 KiB) Downloaded 1886 times
Phaitoon
Posts: 4
Joined: Fri Sep 28, 2012 2:09 am

Post by Phaitoon »

Hi Robert,

thank you for your fast reply. The attached epub displays perfectly on my eReaders as well…

In the rtf file, I just can’t see any difference to my eBooks, except that I’m using a much larger cover (768x1024 px) followed by a section break. Have to investigate further and come back to you.

Thanks so far
Robert
Posts: 1906
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

In “Rembrandt Biography.rtf”, I changed the “page break before” attribute of the paragraph following the cover page for a “next page section break” after the cover picture itself.
The cover picture still displayed as expected.

I also changed the original cover picture for an oversized 768x1024 px picture.
The cover picture still displayed as expected.

Could you please send one of your problem EPUB files with its RTF, DOC, or DOCX Atlantis source to support@AtlantisWordProcessor.com?
Phaitoon
Posts: 4
Joined: Fri Sep 28, 2012 2:09 am

Post by Phaitoon »

First of all; my cover is displaying now. Can’t tell why it didn’t before.
Sounds kind of stupid, as if I made something wrong but no idea what this could have been…

Anywhere, there is something wrong or at least different, depending if you use a cover page header or not.
You can prove this with the “Rembrandt Biography.rtf” file.
Remove the Cover Page header, save it as an eBook and you will get three additional entries:

001.html
<head>
<title>Title page</title>
additional entry
<style type="text/css">
/*<![CDATA[*/
img.sgc-1 {height:100%;max-width:100%;}
/*]]>*/
</style>

content.opf
<guide>
additional entry
<reference href="Text/001.html" title="Cover" type="cover" />

cover.css (additional file)
body{margin:0}
.p0{text-indent:0;margin:0;text-align:center}

The height/width image settings are what I want. They fit well with my “oversized” covers. :)
The other two entries seem optional to me, eReaders I have tried displayed the cover without them.
But I’m not an expert in HTML code. Other eReaders might rely on the entry in the <guide> section.
User avatar
admin
Site Admin
Posts: 2954
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Post by admin »

As I understand, you modify (tweak) the Atlantis EPUBs with another software. Atlantis Word Processor never puts the following code in EPUBs:

Code: Select all

<style type="text/css">
/*<!&#91;CDATA&#91;*/
img.sgc-1 &#123;height&#58;100%;max-width&#58;100%;&#125;
/*&#93;&#93;>*/
</style>
Robert
Posts: 1906
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

Hi Phaitoon,
Just to set the record straight, what you call a “header” is actually a “heading”.

A “header” is “The upper portion of a page (or other) layout” (http://en.wiktionary.org/wiki/header).

A “heading” is “The title or topic of a document, article, chapter etc.” (http://en.wiktionary.org/wiki/heading).

In other words, a “header” might recap a “title” like that of the current chapter but a header necessarily belongs to the upper portion of a page. A header is the page “head”, its “banner”. It comes on top of all other elements. What’s more, in most word processors, “headers” belong to a separate portion of the document which can only be edited separately, —through the “View | Header & Footer” command in Atlantis.

On the other hand, a “heading” is always located within the document main text, outside the “header” area itself.

In some ways we could say that a “header” represents a “title” for the page itself. “Headings” are “titles” introducing the document topics, parts, chapters, etc. and belong to the main body of text.

HTH.
Cheers,
Robert
Phaitoon
Posts: 4
Joined: Fri Sep 28, 2012 2:09 am

Post by Phaitoon »

No, I didn’t tweak the ePub file.
But I opened it with Sigil, and this program viewed 001.html this way…
I wasn’t aware of this fact until you wrote “AWP never puts the following code”

This is how the file actually looks (opened with notepad):

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/>
<meta name="Generator" content="Atlantis Word Processor 1.6.5.10"/>
<link rel="stylesheet" type="text/css" href="cover.css"/>
<title>Title page</title>
</head>
<body>
<p class="p0"><img src="images/cover.jpg" style="height:100%;max-width:100%;" alt="cover.jpg"/></p>
</body>
</html>

If you use the Cover Page heading (the strikeout words “Cover Page” on top of the cover image, as in the original Rembrandt file, to make it clear) it looks like this:

…. (the first 8 lines of the file are the same)
<title>Cover Page</title>
</head>
<body>
<p class="p5"><img src="images/cover.jpg" alt="cover.jpg"/></p>
</body>
</html>

Just compare “Rembrandt Biography.rtf” stored with and without a heading on the cover image and you will see the differences.
User avatar
admin
Site Admin
Posts: 2954
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Post by admin »

As you might know, in Atlantis Word Processor 1.6.5.10 you can specify which pictures from your source document should be saved to EPUB "zoomed to fit page" (you can find details here). A picture would be saved to EPUB "zoomed to fit page" if you double-click it, and check the "Zoom to fit page" box. But cover pictures are systematically saved to EPUB with the "zoomed to fit page" property. So the status of the "Zoom to fit page" option in the associated "Picture" dialog is ignored.

The cover image in your document does not get saved "zoomed to fit page" because it is preceded by a "hidden" heading. This bug will be fixed in any next build of Atlantis Word Processor.

But you can still instruct your Atlantis to save that cover picture "zoomed to fit page" by double-clicking the picture in the source document, and checking the "Zoom to fit page" box.
Post Reply