Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2014, 09:56 AM   #16
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Thanks again for the replies, guys...

Quote:
Originally Posted by Jeff L View Post
You could set "oeb-column-number" to 1.

E.g.
<body style="oeb-column-number: 1"> or in the CSS for global settings.
Interesting. Never seen that code before, so I did a search on it to see what it's about. In Sigil (at least) it doesn't seem to do anything -- that is, if I changed the value to "2" (or whatever) it doesn't show my text in multiple columns -- however, with it set at "1" it does seem to force ADE to always only show the 1-page layout (no matter how big you make the window), but in iBooks I do still get the 2-page layout (in landscape mode, of course).

So that's rather cool! Except it's a shame that in ADE one would never get to see the frontispiece and title page opposite each other (and/or whatever else might look nice like that, side-by-side). That is, actually, kind-of a bummer, because I do always like to create my opening pages so that they look especially nice in that way -- but with that code, I guess only iBooks users will see that (don't know about other apps/devices). :/
Psymon is offline   Reply With Quote
Old 08-26-2014, 12:02 PM   #17
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Oh, I forgot to answer this...

Quote:
Originally Posted by DaleDe View Post
By the way, which version of ADE are you running?
I've got 3.0 -- does it make a difference, as far as testing books out goes?
Psymon is offline   Reply With Quote
Advert
Old 08-26-2014, 05:05 PM   #18
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,743
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Psymon View Post
Well, indeed viewing the book one page at a time made the problem go away, HOWEVER, when I sent the last/latest version of my book over to the iPad to check (in iBooks), all of a sudden I discovered that the same stupid problem started happening over there! Every file had an extra blank page after it!

And y'know what was causing it (as I discovered after much exasperation)? It was that "solution" that was given here before, to insert this into my body style...

page-break-before: always !important;

THAT causes an extra page to be added after every file in iBooks! So so much for that bit of code.
I never put in page breaks except with endnotes so I can keep all endnotes in one file and only see one of them at a time. Otherwise, there's not need when you are using the mobile ADE spec.
JSWolf is offline   Reply With Quote
Old 08-26-2014, 05:06 PM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,743
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Psymon View Post
Oh, I forgot to answer this...



I've got 3.0 -- does it make a difference, as far as testing books out goes?
Someday it might make a difference when it comes to stripping DRM.
JSWolf is offline   Reply With Quote
Old 08-26-2014, 08:48 PM   #20
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by Psymon View Post
Oh, I forgot to answer this...



I've got 3.0 -- does it make a difference, as far as testing books out goes?
It is always good to know. ADE has 3 different versions that cause people to keep them all around 1.7 matches many still in use eBook Readers, 2.1 is the last version to use the original DRM and 3.0 is the current version. ADE doesn't say but there are likely differences in these versions. The was a 2.0 version but 2.1 was a bug fix.

Dale
DaleDe is offline   Reply With Quote
Advert
Old 08-26-2014, 10:33 PM   #21
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by DaleDe View Post
It is always good to know. ADE has 3 different versions that cause people to keep them all around 1.7 matches many still in use eBook Readers, 2.1 is the last version to use the original DRM and 3.0 is the current version.
Okay, I had 3.0, and I now have both 1.7 and 2.01 also installed, too.

So are you saying that I should be testing my books in ALL three versions of it? I did check out my latest book in it, and thankfully everything seems to look okay.
Psymon is offline   Reply With Quote
Old 08-26-2014, 10:41 PM   #22
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by JSWolf View Post
I never put in page breaks except with endnotes so I can keep all endnotes in one file and only see one of them at a time. Otherwise, there's not need when you are using the mobile ADE spec.
Don't you find it much harder to edit that way? This Thoreau book I'm working on is now thousands of "pages" (so to speak) in length, and it's so much easier -- I find, anyway -- to go to whatever chapter I want to work on with everything split into separate files.

And for older, slower devices, in particular those that only open one file at a time (and not the entire book), doesn't it make it much more of a pain just to open the book in the first place? I mean, to make a website analogy, it'd be like if you wanted to read one article on a news website, but in order to read that one you had to open the whole, entire site.
Psymon is offline   Reply With Quote
Old 08-26-2014, 10:55 PM   #23
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,743
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Psymon View Post
Don't you find it much harder to edit that way? This Thoreau book I'm working on is now thousands of "pages" (so to speak) in length, and it's so much easier -- I find, anyway -- to go to whatever chapter I want to work on with everything split into separate files.

And for older, slower devices, in particular those that only open one file at a time (and not the entire book), doesn't it make it much more of a pain just to open the book in the first place? I mean, to make a website analogy, it'd be like if you wanted to read one article on a news website, but in order to read that one you had to open the whole, entire site.
I do not keep everything in one file. I was saying about endnotes (footnotes in a pBook). And when I work on an ePub, I mostly use Notepad++ which allows me to load all the files in different tabs and I can do search/replace across tabs.
JSWolf is offline   Reply With Quote
Old 08-26-2014, 11:07 PM   #24
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by JSWolf View Post
I do not keep everything in one file. I was saying about endnotes (footnotes in a pBook).
Oh, sorry, I misunderstood.

Quote:
And when I work on an ePub, I mostly use Notepad++ which allows me to load all the files in different tabs and I can do search/replace across tabs.
Do you like that better than Sigil? I was doing web design for almost two decades before I got into ebook design, and I've been incredibly impressed with Sigil as a code editor, it's nicer to use than any HTML editor I ever used before.
Psymon is offline   Reply With Quote
Old 08-27-2014, 09:30 AM   #25
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,743
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Psymon View Post
Do you like that better than Sigil? I was doing web design for almost two decades before I got into ebook design, and I've been incredibly impressed with Sigil as a code editor, it's nicer to use than any HTML editor I ever used before.
I do use Sigil for cleaning up the CSS and sometimes fixing up the ToC. But for most of what I do, I use Firefox to preview and Notepad++ to edit.
JSWolf is offline   Reply With Quote
Old 08-27-2014, 09:39 AM   #26
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by JSWolf View Post
I do use Sigil for cleaning up the CSS and sometimes fixing up the ToC. But for most of what I do, I use Firefox to preview and Notepad++ to edit.
Interesting. In what ways do you think Notepad++ is better than Sigil? I checked out their website, and don't quite see what might be better. Like, in Sigil, if I change a filename within my epub, then it happily changes any references to the code to that file, too, not to mention "cleaning up" my code whenever I save, and whatever other features it has. Does Notepad++ do stuff like that, too?

I'm curious -- I do love Sigil, but that doesn't mean I wouldn't dump her if a better gal came along (ha ha).

Interesting that you preview in FF, too, and not ADE (or whatever). Is there an advantage to that, somehow?
Psymon is offline   Reply With Quote
Old 08-27-2014, 09:44 AM   #27
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,743
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
If I am renaming files en mass, I will use Sigil for that. If I am splitting files, I will use Sigil. If I am editing the ToC (NCX) enough, I will use Sigil. I use Sigil to remove unused style classes after I delete any files I don't want like an internal ToC, any sort of priase page, and any previews for another book. But for me, editing the code just works for me using Notepad++.
JSWolf is offline   Reply With Quote
Old 08-27-2014, 09:57 AM   #28
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by JSWolf View Post
If I am renaming files en mass, I will use Sigil for that. If I am splitting files, I will use Sigil. If I am editing the ToC (NCX) enough, I will use Sigil. I use Sigil to remove unused style classes after I delete any files I don't want like an internal ToC, any sort of priase page, and any previews for another book. But for me, editing the code just works for me using Notepad++.
Interesting. I guess it's whatever one is used to and likes -- in that regard I guess I'll stick with Sigil, she's been very good to me so far, and seems to know what makes me happy.
Psymon is offline   Reply With Quote
Old 08-28-2014, 10:36 AM   #29
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by Jeff L View Post
You could set "oeb-column-number" to 1.

E.g.
<body style="oeb-column-number: 1"> or in the CSS for global settings.
I've been thinking about this, and at first I was rather please about it, because putting that code in my book did resolve the issue with regard to ADE inserting those blank pages -- effectively by forcing the reader to see things as a single-page and "disallowing" the two-page view -- but in a way it's rather a shame that people won't even have the option (in ADE, anyway) to see things like, say, having the frontispiece opposite the title page, etc.

I guess the issue with the latter, the way I've been doing things, is that all my full-page images are done as a separate file. I tried just putting all the code for my full-page frontispiece and my title page and putting them into a single file (so that no page break would occur between them in ADE), and it seems to be working (in both ADE on my PC and in iBooks on the iPad, anyway)! The only little "quirk" that I found was that for the <h1> heading that comes after that full-page image, I'd set the style to include top-margin:42px, so that all those <h1> titles would be moved down a bit from the top of the page. That seems to end up getting ignored, though, if I have the code for the full-page image before it, and so what I did was "manually" set the style for that particular <h1> tag to margin-top:0, and then put a <p> tag above it with a line-height:42px.

And that seems to do it.

Now, as far as any other sections of my book that I have are made up of a bunch of separate files -- not full-page images, but just plain ol' text, where I would like to have, say, the title page for a particular section of the book immediately followed by the first "chapter" in that section (without any page break between them) -- I figured I could dump them all together in a single file, too, and where I want the page breaks to occur I just add page-break-after:always to the very last paragraph (or whatever) on the page.

Is that right?

And, more importantly, do those page-break codes work in all devices? Or am I looking for trouble in doing it this way?

I hope that all makes sense. And I guess I might as well stop and wait for some response here before I get too far in totally re-doing everything (possibly to no avail -- good thing I did a "save as" on this latest revision).
Psymon is offline   Reply With Quote
Old 08-28-2014, 11:08 AM   #30
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,548
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Psymon View Post
The only little "quirk" that I found was that for the <h1> heading that comes after that full-page image, I'd set the style to include top-margin:42px, so that all those <h1> titles would be moved down a bit from the top of the page. That seems to end up getting ignored, though, if I have the code for the full-page image before it, and so what I did was "manually" set the style for that particular <h1> tag to margin-top:0, and then put a <p> tag above it with a line-height:42px.
Do you set a manual pagebreak (page-break-before/after:always) between the image and the <h1>? If you do, this is known and allowed behaviour: vertical margins at forced pagebreaks can be ignored.

Two other solutions:

- Use padding-top instead of margin-top. Padding should not be ignored. (Not an option if you have borders or background, though.)

- Use a dummy element after the pagebreak. This is something like your solution, but keep your margin-top in the <h1>. Or actually use the dummy element to introduce the pagebreak:

Code:
<div class="full-page-image">
<img ... />
</div>

<div class="pagebreak" style="page-break-before:always; height:0; margin:0; padding:0"></div>

<h1 style="margin-top:42px">Title</h1>
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank pages Sablerose Marvin 11 02-08-2014 09:06 AM
PDF to EPUB adds extra blank lines ?? Rojofo Conversion 3 06-01-2012 06:20 PM
Blank Pages PAULINE BIRCHNAL Conversion 5 01-02-2012 12:47 PM
Troubleshooting one after another blank pages monsterbadgog Amazon Kindle 0 02-20-2011 04:02 PM
Blank pages JSWolf Calibre 4 11-29-2008 01:22 PM


All times are GMT -4. The time now is 05:31 PM.


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