![]() |
#1 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Apr 2010
Device: Paperwhite 2
|
Gaps at the bottom of pages on prs 300
Not sure if this is the right place but, I'm new to formatting ebooks but I've been playing around on sigil to try and make my ebooks look best on my prs 300. These were all converted in calibre.
Random sized gaps appear at the bottom of pages. I have tried changing things in the css, such as setting all "margin-bottom: 0;" but nothing seems to work. I am trying to get the text to flow all the way to the bottom, as it does in the 4th picture. I have attached some images of consecutive pages to show the problem. Any help would be great. ![]() ![]() ![]() ![]() ![]() Last edited by penguintri; 04-29-2010 at 03:52 PM. |
![]() |
![]() |
![]() |
#2 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
All I can say is that I see a lot of those on my PRS-900 as well. I read everything at the M size settings and that's where they show. If I go to S then they disappear. I have a feeling it may be an ADE issue with re-flowing the text at these larger font size settings. I see it with "official" (purchased/borrowed) EPUB files as well.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
1) Go into the css and insert
Code:
body { widows: 1; orphans: 1; } It's not an ADE issue. ADE may have a few problems, but I don't know why people blame it for epubs that have been poorly typeset. Last edited by charleski; 04-30-2010 at 08:24 AM. |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Apr 2010
Device: Paperwhite 2
|
Cheers for the help. I'll try this when I get home from work. Do i need to include [code] in the css? Also should I insert it at the top of the css or in the normal paragraph calibre style?
To change the scene break margin top value do I just change it for the particular calibre entrty (calibre6 I think) that is for the normal paragraph or is there some special entry for the scene break styles? Cheers again for your help. Last edited by penguintri; 04-30-2010 at 08:06 AM. |
![]() |
![]() |
![]() |
#5 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
Code:
.calibre {
widows: 1;
orphans: 1;
display: block;
font-size: 1em;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
page-break-before: always;
text-align: justify
}
Ignore the [code] - I didn't close the bbcode tag in my reply ![]() Quote:
Code:
.calibre15 { display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-align: left; text-indent: 1em } Code:
.calibre16 { display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 1.2em; text-align: left; text-indent: 0 } For some background on styling with a baseline grid to maintain a vertical rhythm, take a look at this article. It doesn't tell the whole story, but it's a good start. |
||
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
That gap is happening because the css is left at the default widows and orphans settings, so the renderer has to move the last 2 lines of the paragraph onto the next page (if it left them on the same page then there'd be a one line orphan). Basically, the gap is there because it's being told to leave it.
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Dale |
|
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
This method retains the vertical rhythm of the type and reduces both the frequency and amplitude of any changes in page length. Implementing it in a relowable system involves a degree of recursion, as the line-shifts obviously have the ability to introduce new orphan/widow problems, but it provides a far better solution than simply blowing up the line-height. |
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Dale |
|
![]() |
![]() |
![]() |
#11 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
ADE (at least in the Cybook) has an issue with very long paragraphs, they are cut mid-page to continue in the following page.
|
![]() |
![]() |
![]() |
#13 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#14 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Apr 2010
Device: Paperwhite 2
|
Cheers charleski adding
body { widows: 1; orphans: 1; really helped it made the gap at the bottom of the page just one line everytime. This worked on almost all of my ebooks except one that looked like it had some horrible formatting. I couldn't do anything with the scene breaks as my converted books had no <br/> tags and the whole body of the text was just in the one constant calibre style, it never changed after a paragraph. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
My thoughts, PRS-300, PRS-600, PRS-505, PRS-700, Kindle 2 | zacheryjensen | Sony Reader | 78 | 12-05-2010 07:33 PM |
PRS-300 $150, PRS-600 $170 + $25 Gift Card; PRS-900 $250 + extra Battery @SonyUSA | Lilly | Deals and Resources (No Self-Promotion or Affiliate Links) | 1 | 07-25-2010 02:14 PM |
New hack PRS-505: multi status line with %read, time&pages reading, pages per minute. | Car105 | Sony Reader Dev Corner | 5 | 01-03-2010 10:03 AM |
Canadian perspective of the recent Sony ebook readers - PRS-300/PRS-600/PRS-2121 | nrapallo | News | 1 | 08-29-2009 10:38 AM |