New epub problem

General comments and questions. Technical support.
Post Reply
rstroud
Posts: 251
Joined: Sun Mar 04, 2012 3:07 pm
Location: Tennessee
Contact:

New epub problem

Post by rstroud »

Okay, we have a definite problem. I do not know if it started with the release of 1.6.6.3. But I know that it did not exist in some previous versions of Atlantis, because I went back and checked an older epub of a stage play that I had created with an older version.

The problem occurs with my older Nook reader. I do not know if it occurs with newer Nooks. It does not occur when I use the Calibre viewer.

In brief:

Some paragraph styles (for example, .p2 and .p6) that should have a 1-em blank line above them do not have the blank line.

This is happening because some of the paragraph types (like .p2 and .p6) have no code entry for margin-top. I think that the assumption is that they will inherit the values of the code for p if no other code overrides what is in p.

However, the Nook (older ones, anyway) apparently do not work like that.

(Side Note: We went through something similar a couple of years ago when I pointed out that every paragraph style that is supposed to be flush left has to have text-indent:0 to keep the Nook from indenting the first line.)

I have not tried tweaking the code. I know that tweaking will fix the problem, because I have been working with this kind of stuff for a long time, and I have other epub files, created with Atlantis, that have code like margin-top:1.2em, and these work fine.

I know that this is probably a hassle for you, since some standard probably calls for paragraph styles to inherit from a basic p, but device makers do what they want to.

I have not attached a file, since this is all pretty obvious, and is similar to the previous issue that I pointed out, but I can send a file and more details if necessary.

Thanks!

Roland
rstroud
Posts: 251
Joined: Sun Mar 04, 2012 3:07 pm
Location: Tennessee
Contact:

A follow-up

Post by rstroud »

Just in case anyone is interested, I will offer this follow-up.

Tweaking the code with a margin-top code entry for each paragraph style resolves the problem of no blank line above certain paragraphs. The margin-top code is simply not inherited from p in my old Nook reader.

I have to wonder how many other devices out there have the same problem. This is why I believe in including all the code in paragraph styles, even if doing so might make for minimally redundant code in some paragraph styles.

Nonetheless, since Atlantis epub code is exceptionally clean, it is no great problem to tweak everything, if that is how we have to do it.
Post Reply