|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2017
Device: Kindle
|
Is there an option for Paragraph breaking between pages (might be wrong term for it)
Okay, so one thing I would like to have is have the reader automatically detect when a paragraph will enter into the next page, so it always ends on the last complete sentence. Here's what I mean.
http://i.imgur.com/iCiFK3g.png http://i.imgur.com/73pPmGz.png What I want it to be like is this: http://i.imgur.com/7lSdbtI.png http://i.imgur.com/4VynjLT.png I can understand this is impossible for books where the paragraphs are simply longer than the page screen size, but I would love to have it as an option. It just feels so much cleaner and I would improve my reading experience a lot. Last edited by Veelk; 07-30-2017 at 08:17 PM. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Widows
orphans are the key words. But not all devices behave ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2017
Device: Kindle
|
I didn't understand what you meant at first. I tried googling it, and it's apparently something you put into the user stylesheet section of preferences? I'm sorry, but I have very little experience with programming of any kind. I tried putting in a variety of codes, but nothing is making any difference. Can you go into more depth on what I'm supposed to do?
|
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Even diddling with windows and orphans, it cannot be done. You cannot get the break to be what the OP wants.
|
![]() |
![]() |
![]() |
#5 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
My epubs have page-break-inside : avoid in body paragraph styles. If I put the calibre viewer in paged mode then paragraphs don't flow across 'pages', or columns. One of my Android apps honours the css code and another one doesn't - I forget which, because whether they do or not doesn't bother me. BR |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Note: Yes, it all depends on the font size, line spacing, screen size etc. But, for a person doing this on their one device who knows what their personal preferences are, they can work it out. And yes, I have tried some silly numbers on my Kobo devices a while back and it worked as expected. |
|
![]() |
![]() |
![]() |
#7 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
This is an ePub coding question and has nothing whatsoever to do with Calibre. Moved to the ePub forum.
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2017
Device: Kindle
|
Sorry about it being in the wrong place.
As I said before, you guys are basically going to have to walk me through all this as though I were 5 years old. You can basically assume I don't know anything about anything in this regard. Though from what JSWolf seems to be saying, it just can't be done at all? Or do I need to do something to make it work? Because no matter what I put into CSS, the Widow-orphan isn't making any kind of difference for me. |
![]() |
![]() |
![]() |
#9 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
You want something like this in the paragraph style in your CSS:
Code:
p { widows: 2; orphans: 2; } |
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But, the problem is that with long paragraphs, 2 & 2, it won't work reliably. I have not tried using higher numbers.
|
![]() |
![]() |
![]() |
#11 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Well, of course some reading apps and devices may not implement it particularly well, but the code I posted is the correct way to do it. All these attributes are "requests" to the rendering engine, rather than absolute "commands".
|
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The problem is that the OP wants to end on a complete sentence. That's not possible to do without maybe dropping the last paragraph to the next page and that could leave a rather large gap. And depending on the size of the screen, I've seen a paragraph take up the entire screen.
Last edited by JSWolf; 08-01-2017 at 07:38 AM. |
![]() |
![]() |
![]() |
#13 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
As a reader, I have no problem with widows & ophans. I would much rather continue reading from one page to the next, as I do in a print edition, without encountering a short page. If I am reading a print edition from a reputable publisher, the book designer is going to tweak the line spacing, or perhaps ask the author to rephrase, rather than have pages of unequal length. I appreciate that the OP in a sense is trying to accomplish what book designers accomplish, but Kindle at least is going to make a hash of it. (And ending a paragraph with the last complete sentence is going to make a new paragraph, isn't it? Does the carry-over get an indent, and how is that accomplished? And what if we're talking about a paragraph that is quoted speech -- who adds the beginning quotation mark?)
|
![]() |
![]() |
![]() |
#14 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
There is no way of moving "sentences" from one page to another. Widow and orphan control is for moving entire paragraphs between pages.
|
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The carry-over does not get an indent if it's part of the paragraph that starts on the previous page. If it's a quoted paragraph, then the quotes are where they belong.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre new feature proposal - avoid breaking paragraph | rjwse@aol.com | Conversion | 9 | 03-17-2016 08:26 PM |
Preventing images breaking across pages | verydeepwater | ePub | 12 | 05-16-2014 01:00 PM |
wrong split paragraph | mikichi | Conversion | 3 | 01-25-2014 02:12 PM |
Pages Not Breaking | msmith65 | Sigil | 8 | 08-21-2012 12:32 PM |
Kindle Displaying Paragraph Indents Wrong | nbluedorn | Kindle Formats | 1 | 07-09-2011 03:27 PM |