![]() |
#16 | |||
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 514
Karma: 2954711
Join Date: May 2006
|
I've tried that. For some reason, when I uncheck "Disable CSS," it still strips out the blank lines, even if I leave the "strip extra blank lines" option unchecked as well.
But if I use the "Preview with publisher's settings" button, there the blank lines are—but it's also locked into a small sans serif font that I can't resize or change. Weird, huh? Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Using a single blank line to separate sections will not work in all situations, even if the ereader does respect the publisher's CSS styles.
For example, suppose that the reader has selected a font size and line spacing that results in a line height of 40px on their device, and has set the page margins to 30px. Because of things like superscripts, subscripts, images, headings, paragraph margins, etc. the position of the last line on the page is not always the same from page to page, resulting in a gap of 0px-39px in addition to the page margin, so during normal reading the reader could expect to see a gap at the bottom of the page of 30px-69px. If you use a single blank line as a separator and that blank line happens to be the last line of the page, then the gap will be 40px + 0px-39px + 30px for a total of 70px-109px. That means in some situations the presence of the separator only results in a gap that is a few pixels larger than largest gap that can occur without a separator, and is likely to be invisible to the reader. In a paper book or fixed-layout ebook the publisher knows in advance when a separator falls at the top or bottom of a page and can take special measures such as replacing it with a visible separator like an asterism, but in an ePub (ePub2 anyway) that is not possible. (Edit: I guess it is possible in a limited way using page-preak-after:avoid ![]() So to ensure that the separator is visible in all situations you need to use at least two blank lines (not just 2em margin, that won't work because the margin can be supressed when it appears at the top or bottom of a page), or use a visible separator such as murg suggested, or else use a different style to start the new scene such as small-caps, italics, raised-cap, etc. Last edited by GeoffR; 04-30-2016 at 05:04 PM. Reason: ... possible in a limited way using page-preak-after:avoid; |
![]() |
![]() |
![]() |
#18 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
When blank space is used to denote a section break, I make sure it's at a size of 2em.
sectionbreak { margin-top: 2em; text-indent: 0 } <p class="sectionbreak">First paragraph after the section break</p> But, in order for this to actually work, you need to set a widow and orphan to 1. body { widow: 1 orphan: 1 { Otherwise, you could get space at the bottom of the screen that looks like it could be a section break. Last edited by JSWolf; 04-30-2016 at 04:55 PM. |
![]() |
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Ah yes I forgot about orphans and widows. Those used to reading with orphans:2;widows:2; are going to be quite used to seeing large gaps at the bottom of the page, and even though those gaps only happen when the page breaks within a paragraph, they are going to make it hard to notice a that a single blank line at the bottom of the page is actually a section break.
|
![]() |
![]() |
![]() |
#20 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39
Karma: 59154
Join Date: May 2010
Location: Stuttgart, Germany
Device: Kobo H2O, PocketBook Touch HD, Tolino Vision 4
|
Quote:
Padding-top is visible even if the scenebreak happens to sit on top of a new page. And orphans can be useful for scenebreaks. For example I don't like to have only one or two lines of a new scene on the bottom of a page. I prefer to have the new scene after a scenebreak pushed to the next page if the old page has only room for 1 or 2 lines. With: body {text-indent:1.3em; orphans:1; widows:1;} sectionbreak {text-indent:0; padding-top:2em; orphans:3;} and a scenebreak on the bottom of the page I get: 1. the scenebreak pushed to the next page and 2. starting with a 2 em visible gap on top. |
|
![]() |
![]() |
![]() |
#21 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 310
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
|
Quote:
Anyhow, if anyone out there has suggestions for other 'magic' character sequences that I ought to interpret as section breaks, please let me know, and I will test for them too in Freda's text-parser. |
|
![]() |
![]() |
![]() |
#22 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
![]() |
#23 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Have you tried Moon+ with the setting to disable CSS unchecked though? I've never done a code-by-code comparison to see if it still ignores parts of the CSS, but books then really look the same as on my ereaders to me.
|
![]() |
![]() |
![]() |
#24 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
It's really annoying that so many of the Android reading apps seem to be incapable of doing something as elementary as displaying a book in accordance with what the formatting in the book specifies, rather than thinking that they know better than the book's creator. |
|
![]() |
![]() |
![]() |
#25 | |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Quote:
I'm wondering if the type of phone, or Android version on it, causes some differences in how Moon+ behaves? I'm using a Samsung Galaxy S4 with Kitkat (4.4.2), and Moon+ Reader Pro 3.5.0. |
|
![]() |
![]() |
![]() |
#26 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 514
Karma: 2954711
Join Date: May 2006
|
Quote:
But if I use the "Preview with publisher's settings" button (which I had to enable in the settings), there those blank lines are—but it's also locked into a small sans serif font that I can't resize or change, and it scrolls instead of paginating. Weird, huh? |
|
![]() |
![]() |
![]() |
#27 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
That's why I'm thinking Moon+ must behave differently depending on phone and/or Android version. My blank spaces are still there on the phone with Moon+, but I always use <p> </p> wherever I want to ensure a blank space remains.
|
![]() |
![]() |
![]() |
#28 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 514
Karma: 2954711
Join Date: May 2006
|
From peeking into the innards of the EPUB files Scrivener generates, that's what it does, too. And apparently Freda wasn't honoring those—but Jim's post upthread indicates it soon will.
|
![]() |
![]() |
![]() |
#29 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#30 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 310
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
|
Regarding the 'right' way to represent vertical space in epub files: It is pretty clear that using a p element containing only is an ugly hack, and is the wrong thing to do, in terms of web standards (see for instance the discussion at http://stackoverflow.com/questions/1...-editor-or-not ). The right thing is certainly to use CSS styles to add a margin of the appropriate size. I'd hope that the implementers of Scrivener etc. will get round to fixing their program at some point, to do the right thing. I don't feel especially proud of having changed Freda to fit in with their broken interpretation of the xhtml standard ;-)
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
blank lines between paragraphs | franklekens | Kobo Reader | 71 | 01-26-2015 12:52 PM |
Blank Lines In Code | SeaCanary | Sigil | 3 | 01-22-2014 08:51 PM |
Blank Lines | jreidu | Workshop | 2 | 07-20-2011 05:11 AM |
Blank lines between paragraphs? | ascherjim | OpenInkpot | 30 | 12-03-2009 12:19 AM |
Blank Lines | vivaldirules | Upload Help | 55 | 03-02-2009 03:17 PM |