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 09-06-2021, 10:53 AM   #1
gtriever
Addict
gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.
 
gtriever's Avatar
 
Posts: 286
Karma: 2125576
Join Date: Sep 2010
Device: Kobo Forma
File split question

I have noticed that sometimes during a Conversion, Calibre is splitting my chapter files where the first split contains only the Chapter Number (and any associated "decorations"), and the second split contains the actual Chapter text.

How do I prevent that from occurring? (In your answer, please be aware that I know nothing about regex programming, so if that's involved you'll have to be very patient with any followup questions.)

Thanks in advance for your help.
gtriever is offline   Reply With Quote
Old 09-06-2021, 11:18 AM   #2
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: 31,046
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Preferences: Common Options:Structure Detection

controls splitting
But good luck with adjusting that for your issue

Why?
Because there are coders out there who still seem to style with H tags.
Both the lines have H tags in offending files. Thus they get split

I happen to use the Editor to Simply change all but the First (what should be in the TOC) use to a P tag. I see no difference (assumes they have a Class= or Style ).
theducks is offline   Reply With Quote
Advert
Old 09-07-2021, 04:05 AM   #3
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
You could add the following to your class for chapter titles:

page-break-after: avoid;

I also use P tags and not H tags for all my classes. I use "chapter" for the top line in each chapter, and if there's a second line in each chapter (like if you have an anthology with the chapter title and the author's name underneath the chapter title), I use "chapter1." My chapter files never get split during conversion...and I don't have to add the line above to the "chapter" class. I'm not sure if the above line would help, if you're using H tags, but it might be worth trying.

EDITED: To add some text about why you would need two chapter titles.

Last edited by deback; 09-07-2021 at 10:56 PM.
deback is offline   Reply With Quote
Old 09-07-2021, 07:17 AM   #4
Quoth
Still reading
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: 14,008
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Don't do the two lines of the Chapter heading as two paragraphs unless the second one is bodytext level!
Do Shift Return.

Don't use page-break-after: avoid; because the problem is the Chapter heading structure. The paragraph style only needs Page break Before (and NO selected page style) in the wordprocessor.
Quoth is offline   Reply With Quote
Old 09-07-2021, 09:41 AM   #5
gtriever
Addict
gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.
 
gtriever's Avatar
 
Posts: 286
Karma: 2125576
Join Date: Sep 2010
Device: Kobo Forma
I may have been unclear: I'm not the author of these books, I'm just converting them in Calibre. Sorry for any misunderstanding.
gtriever is offline   Reply With Quote
Advert
Old 09-07-2021, 10:15 AM   #6
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: 31,046
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by gtriever View Post
I may have been unclear: I'm not the author of these books, I'm just converting them in Calibre. Sorry for any misunderstanding.
We understand. We were explaining WHY it was happening thru no fault of your own.

You have 3 choices:
1) disable splitting (remove the rule).
2) Fix it after the fact with the editor (a bit tedious, but not hard). Ctrl-7 (the shortcut) makes the selected tag into a P (prevents later splitting). then you merge the fragments in the file browser (the tedious part). Diaps toolbag PI can help IF the additional H# tags can be isolated (different class/style)
3)Return the book with a complaint about sloppy code and not buy from that Author/publisher until the clean up their act.
4) (OK, I lied ) Live with the annoying break.
theducks is offline   Reply With Quote
Old 09-09-2021, 10:05 AM   #7
gtriever
Addict
gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.
 
gtriever's Avatar
 
Posts: 286
Karma: 2125576
Join Date: Sep 2010
Device: Kobo Forma
Apologies. For some reason I thought that deback and Quoth were leading me into ebook creation territory...
gtriever is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can I split a file at headings? gennaro Sigil 3 12-28-2020 04:42 PM
File split sometimes shows more split lines DrChiper Editor 1 12-23-2013 05:38 PM
Can I split one epub into more than one file? ChrisKaos ePub 10 04-05-2012 06:05 AM
[Request] Optional 'No File Split' Michael_ZZ Writer2ePub 2 02-04-2011 12:32 PM
After split pdf file, use Rasterfarian. harpum Sony Reader 0 07-14-2007 01:20 AM


All times are GMT -4. The time now is 09:30 PM.


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