![]() |
#1 |
Connoisseur
![]() ![]() 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> |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() Posts: 63
Karma: 190
Join Date: Sep 2023
Device: Kobo Libra 2
|
Thank you for all the advice
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |