05-11-2024, 06:53 AM | #1 |
Junior Member
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 |
05-11-2024, 09:23 AM | #2 |
the rook, bossing Never.
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. |
05-11-2024, 01:36 PM | #3 |
Well trained by Cats
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) |
05-11-2024, 06:11 PM | #4 |
Grand Sorcerer
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.
|
05-14-2024, 04:58 PM | #5 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2024
Device: various
|
Thank you very much, I shall give these a try and report back.
|
Tags |
feature request |
|
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 |