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 06-04-2025, 01:28 AM   #1
1ily
Connoisseur
1ily doesn't litter1ily doesn't litter
 
Posts: 63
Karma: 190
Join Date: Sep 2023
Device: Kobo Libra 2
How can I disable calibre splitting after converting a book?

Hello!

I convert all my ebooks in calibre to epub, and I've been running into an issue where it will split chapters into two. Usually this happens when there is a chapter number and a chapter title.

All .xhtml files are below 30kb - way under the split by size limit.

The code looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en" lang="en">
<head>
  <meta charset="UTF-8" />
  <title>Sebastián</title>
  <link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
  
  <div class="th-767a2bf9-abd9-4801-bc80-086037f91207"><div class="chapter"><div class="chapter-title-card "><div class="chapter-number"><span>1</span></div><div class="chapter-title"><h2>Sample Title</h2></div></div><div class="chapter-body withDropcap"><div class="wrapper"><p><span aria-hidden="true" class="dropcap">L</span><span aria-hidden="true" class="lead_word">orem</span> <span aria-hidden="true" class="lead_word">ipsum</span> <span aria-hidden="true" class="lead_word">dolor</span> <span aria-hidden="true" class="lead_word">sit</span> amet. </p>
How can I disable chapter splitting?
1ily is offline   Reply With Quote
Old 06-04-2025, 10:48 AM   #2
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 771
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
In the Convert settings, at Structure Detection, there's some stuff about detecting chapters (on mine, it looks like it adds a pagebreak when it finds one). I don't know anything about how that works. But, maybe it's a pointer in the right direction. Sorry.
enuddleyarbl is offline   Reply With Quote
Old 06-04-2025, 10:53 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
All splitting other than size based splitting is controlled by the options under the structure detection part of the conversion dialog.
kovidgoyal is offline   Reply With Quote
Old 06-04-2025, 11:04 AM   #4
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,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
see that div class="chapter"

That happens to be a DEFAULT keyword in the split options.
Adjust one or the other
Another common one that trips extra splits is
h2 (chapter number) followed by h3 (chapter title)

There are still folk that STYLE by using these tags. I just change that h3 (pair) to a p pair
theducks is offline   Reply With Quote
Old 06-04-2025, 07:16 PM   #5
1ily
Connoisseur
1ily doesn't litter1ily doesn't litter
 
Posts: 63
Karma: 190
Join Date: Sep 2023
Device: Kobo Libra 2
Thank you for all the advice
1ily is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Splitting a book into three deleted_account23 Editor 2 12-01-2023 05:49 PM
How can I disable mouse scrolling for Calibre E-book Viewer? omin Calibre 1 11-30-2023 01:09 AM
Disable H1 page breaks when converting Markdown to PDF jms1 Conversion 6 08-13-2023 10:06 AM
Splitting a book HarryT Editor 9 02-11-2014 02:16 AM
Calibre is stuck converting this book Sydney's Mom Conversion 10 01-29-2013 02:08 PM


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


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