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 01-27-2021, 04:12 AM   #1
aschiller
Member
aschiller began at the beginning.
 
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
aschiller is offline   Reply With Quote
Old 01-27-2021, 06:27 AM   #2
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: 44,553
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.
kovidgoyal is online now   Reply With Quote
Advert
Old 01-27-2021, 06:36 AM   #3
aschiller
Member
aschiller began at the beginning.
 
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.
aschiller is offline   Reply With Quote
Old 01-27-2021, 08:06 AM   #4
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: 44,553
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.
kovidgoyal is online now   Reply With Quote
Old 01-27-2021, 08:12 AM   #5
aschiller
Member
aschiller began at the beginning.
 
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.
aschiller is offline   Reply With Quote
Advert
Old 01-27-2021, 08:15 AM   #6
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: 44,553
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, there isn't. You cant edit mobi files.
kovidgoyal is online now   Reply With Quote
Old 01-27-2021, 11:30 AM   #7
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
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.
retiredbiker is offline   Reply With Quote
Reply

Tags
code hints, ebook-convert, pagebreak, recipe


Forum Jump

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


All times are GMT -4. The time now is 11:17 PM.


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