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-11-2024, 05:53 AM   #1
caerbannog
Junior Member
caerbannog began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2024
Device: various
Is there a widow/orphan control?

Hi, I've been using Calibre for ages to convert song lyrics to e-reader format to use on stage. I made a simple-ish lyric sorter in php which outputs a lyric list in HTML, which I then convert to ePub for my devices.

This works great, except that I'd like to have some sort of widow/orphan control so that verses of a song stay together before or after a page break. It's hard enough remembering the chords at the best of times without having to turn the page mid-verse. Is this something which already exists or is it a feature request?

Yes I could just memorise all the words but no I can't.

Thanks all

CB
caerbannog is offline   Reply With Quote
Old 05-11-2024, 08:23 AM   #2
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,432
Karma: 87454321
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
set CSS widows and orphans to number of lines in a verse and only use <br/> for line ends in a verse.

Maybe there is a better way, but that will work
You can have inline css at the start of an HTML file.
Quoth is offline   Reply With Quote
Old 05-11-2024, 12:36 PM   #3
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,911
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
and remember 0 is invalid for either.
(I can't count how many CSS I have seen with 0 )

1 is when you don't want a limit (Allow a single line)
2 or more when you want a group (AND IT WILL FIT the view)
theducks is online now   Reply With Quote
Old 05-11-2024, 05:11 PM   #4
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,540
Karma: 84810449
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
You could also use page-break-inside:avoid (or the newer break-inside:avoid) for each verse.
jhowell is offline   Reply With Quote
Old 05-14-2024, 03:58 PM   #5
caerbannog
Junior Member
caerbannog began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2024
Device: various
Thank you very much, I shall give these a try and report back.
caerbannog is offline   Reply With Quote
Old 05-16-2024, 01:31 AM   #6
soniya
Junior Member
soniya began at the beginning.
 
soniya's Avatar
 
Posts: 4
Karma: 10
Join Date: May 2024
Location: India
Device: none
Hey hi, you should adjust CSS like orphans:2;, widows:2; for <p> or <div> elements to check song verses stay together before page breaks in ePub files.
soniya is offline   Reply With Quote
Reply

Tags
feature request


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Will Kindle become the ereader orphan? GoversAU Amazon Kindle 100 09-12-2016 05:01 AM
Pest Control for Organic Gardening: Natural Methods for Pest and Disease Control joyfuldesigns Self-Promotions by Authors and Publishers 0 08-12-2013 09:12 PM
Widow/orphan control in conversions starrigger Conversion 2 06-15-2012 12:09 AM
How to prevent ellipsis orphan? Chad48309 ePub 2 08-16-2010 08:43 PM
Copyright and orphan works VillageReader Lounge 40 06-01-2008 06:05 PM


All times are GMT -4. The time now is 03:04 PM.


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