Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2022, 08:25 AM   #16
se1961
Member
se1961 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Apr 2016
Device: Paperwhite
Quote:
Originally Posted by davidfor View Post
You have missed something that was sort of suggested. A mention was made of widows and orphans. These are used to keep parts of a paragraph together over the end of a line. The default is 2 or 3.
Is this a setting in Calibre? I have been doing the DOCX formatting after conversion in Calibre, so chose "keep lines together," which does what I need, so I didn't bother with widows and orphans. If that setting is somewhere in Calibre, could you tell me where? I will happily experiment with it.

EDIT: I started digging through old threads and found this:

Quote:
Originally Posted by ps67 View Post
You can change the css in the calibre editor like this:
Code:
p{
widows: 1 !important;
orphans: 1 !important;
}
using !important You can overwrite eventual different widows/orphans values in the various p.something tag.
SECOND EDIT: At first the command didn't seem to help me much, but I have just played around with it a LOT, and discovered that it works extremely well to prevent lines from breaking across the page, which is my intention. In the end, I set my widows and orphans to the the number of lines on a PDF page-- in my case, 35 lines of text (setting the number higher keeps longer paragraphs together but breaks text if the paragraph ends up being longer than a page), so I use 35 for both widows and orphans.

Comparing the two outputs (DOCX with "keep lines together" and PDF with widows/orphans) it seems that widows/orphans produces many fewer line breaks across a page-- 11 vs 17 for a full novel. Thank you for this! A simpler solution!

Last edited by se1961; 05-20-2022 at 10:23 AM. Reason: Did some experimenting and found the answer ��
se1961 is offline   Reply With Quote
Old 05-20-2022, 09:58 AM   #17
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,802
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
1 means do little to prevent splitting (basically turn it OFF)
3 means keep up to 3 lines together

and, commonly done WRONG: 0 is invalid
theducks is offline   Reply With Quote
Advert
Old 05-20-2022, 10:28 AM   #18
se1961
Member
se1961 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Apr 2016
Device: Paperwhite
Since it seems I will now be using widows/orphans as my conversion process, I have a couple of related questions:

1. If I put the widows/orphans command in the CSS stylesheet, it applies to all of my conversions, not just PDF. I don't want it for MOBI or EPUB conversions-- is there any way to say "ONLY use this command for PDF documents"? No worries if not-- I will just have to remember to delete it.

2. When I convert straight to PDF in Calibre, does Calibre use the font that comes with the original .azw document? I noticed, when I did my comparison, that the DOCX and PDF conversions were using different fonts. I would like to keep my conversion as close to the original text as possible.

Thanks so much for all your help! I'm getting to the end of this, I promise!
se1961 is offline   Reply With Quote
Old 05-21-2022, 09:22 AM   #19
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,158
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Save a copy of Wordprocessor file
Set suitable Widows and Orphans in paragraph styles.
Save.
Export PDF,

Only use Calibre to convert ebooks to ebooks or docx to ebooks. PDF isn't really an ebook, it's an electronic preview of print, clue in name Portable Document Format. It describes documents for particular sizes of paper page, not screens.
Quoth is offline   Reply With Quote
Old 05-27-2022, 10:05 AM   #20
se1961
Member
se1961 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Apr 2016
Device: Paperwhite
Thank you! Good to know
se1961 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you use page-break-after and page-break-inside? fluoresce ePub 14 05-24-2017 01:57 AM
No page break for H2 RickAltman Calibre 2 06-25-2012 11:02 AM
PAGE BREAK JFS-NMF Recipes 0 03-04-2011 09:15 AM
Page break before <b> flowoeB Calibre 14 04-12-2009 03:05 PM


All times are GMT -4. The time now is 06:19 PM.


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