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, 06: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, 09: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: 12,359
Karma: 92073397
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, 01: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: 30,444
Karma: 58055868
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 offline   Reply With Quote
Old 05-11-2024, 06: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,750
Karma: 86234863
Join Date: Nov 2011
Location: Charlottesville, VA
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, 04: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
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 06: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 10:12 PM
Widow/orphan control in conversions starrigger Conversion 2 06-15-2012 01:09 AM
How to prevent ellipsis orphan? Chad48309 ePub 2 08-16-2010 09:43 PM
Copyright and orphan works VillageReader Lounge 40 06-01-2008 07:05 PM


All times are GMT -4. The time now is 02:20 AM.


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