01-27-2021, 04:12 AM | #1 |
Member
Posts: 12
Karma: 10
Join Date: Oct 2011
Device: Kindle
|
ebook-convert with recipe not respecting chapter-mark option
Hi everybody,
First of all, I want to thank all developers of calibre and the whole community for maintaining this forum. Thank you! I noticed that when I use ebook-convert together with the recipe the various articles are always separated by pagebreaks from each other. The "--chapter-mark none" option does not have any effect on the conversion. Is that correct? Would it be possible if you could give me a hint, where precisely in the code the pagebreaks are added. Best regards Andy |
01-27-2021, 06:27 AM | #2 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Those are not page breaks. They appear because every article is in its own htm file internally.
|
Advert | |
|
01-27-2021, 06:36 AM | #3 |
Member
Posts: 12
Karma: 10
Join Date: Oct 2011
Device: Kindle
|
Thank you very much for your reply. But I inspected the resulting mobi file and discovered that before and after each article mbp_pagebreak elements are inserted.
If not via the recipe, how is the insertion of these mbp_pagebreak triggered. There are no corresponding elements in the original html file. |
01-27-2021, 08:06 AM | #4 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The MOBI format does not support multiple individual files. Therefore when converting to mobi files are merged and separated by page breaks. This behavior cannot be controlled by anything.
|
01-27-2021, 08:12 AM | #5 |
Member
Posts: 12
Karma: 10
Join Date: Oct 2011
Device: Kindle
|
Thank you for your reply. Is there really no way to prevent those mbp_pagebreak in the resulting document?
I have already tried to use regex patterns via search&replace, but it seems that the scope of search&replace does not cover the mbp_pagebreaks. Is there maybe a way via custom css? The last way I can think of is removing the last page of the resulting mobi. Is this possible via calire? I know that this would only remove the very last mbp_pagebreak but this is the most position I care about. |
Advert | |
|
01-27-2021, 08:15 AM | #6 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, there isn't. You cant edit mobi files.
|
01-27-2021, 11:30 AM | #7 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Start with an epub version; open it in the editor.
Select all the text files in the file browser, right-click on the selection, and merge all the files together. In the code view pane, you can search and replace all the pagebreak codes, and/or you can edit them in the css file to get rid of any pagebreak commands. Save that, and then convert to mobi (if you really must use mobi). Now it should all run together as you want it to. |
Tags |
code hints, ebook-convert, pagebreak, recipe |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Option --creator not recognized by ebook-convert | dmonasse | Conversion | 2 | 03-06-2015 03:31 AM |
Which ereader (or ebook store) is best for respecting reader privacy? | El Macho | Which one should I buy? | 9 | 06-13-2014 07:38 AM |
Trace conversion option from the Claibre GUI (to use with ebook-convert) | robobot | Conversion | 2 | 04-24-2012 04:48 AM |
ebook-convert and The Guardian recipe | Herchu | Calibre | 2 | 07-23-2011 04:03 PM |
Use builtin recipe with ebook-convert | daksjd | Calibre | 0 | 08-29-2009 04:33 PM |