Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-20-2018, 10:45 PM   #1
A.N.Mouse
Junior Member
A.N.Mouse began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2018
Device: none
Page Breaks and formatting

So, I learned enough to get Calibre to convert my rtfs into an epub. All of the content seems to be there.

But, it's throwing in random page breaks where they have no need to be, and when I try to put them in the code, it renders the file unusable.

I'm using <div style=”page-break-before:always;”></div> to signal for it to stop the page there, but clearly it is not doing what I need.

I'd love any assistance anyone could give me.
A.N.Mouse is offline   Reply With Quote
Old 04-21-2018, 11:23 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,129
Karma: 21886264
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by A.N.Mouse View Post
So, I learned enough to get Calibre to convert my rtfs into an epub. All of the content seems to be there.

But, it's throwing in random page breaks where they have no need to be, and when I try to put them in the code, it renders the file unusable.

I'm using <div style=”page-break-before:always;”></div> to signal for it to stop the page there, but clearly it is not doing what I need.

I'd love any assistance anyone could give me.
Could you to attach a sample converted RTF to a message. It makes it a lot easier to debug any issues.
DNSB is offline   Reply With Quote
Advert
Old 04-22-2018, 12:49 PM   #3
Brett Merkey
Enthusiast
Brett Merkey is fluent in JavaScript as well as Klingon.Brett Merkey is fluent in JavaScript as well as Klingon.Brett Merkey is fluent in JavaScript as well as Klingon.Brett Merkey is fluent in JavaScript as well as Klingon.Brett Merkey is fluent in JavaScript as well as Klingon.Brett Merkey is fluent in JavaScript as well as Klingon.Brett Merkey is fluent in JavaScript as well as Klingon.Brett Merkey is fluent in JavaScript as well as Klingon.Brett Merkey is fluent in JavaScript as well as Klingon.Brett Merkey is fluent in JavaScript as well as Klingon.Brett Merkey is fluent in JavaScript as well as Klingon.
 
Posts: 49
Karma: 4868
Join Date: Jul 2015
Device: Paperwhite 3
"I'm using <div style=”page-break-before:always;”></div> to signal for it to stop the page there, but clearly it is not doing what I need."

My experience has been that many html user agents do not support page-break rules applied from inline attributes. Best to apply from stylesheet. In any case, the page-break rules are not supported from empty DIV tags:

https://www.w3schools.com/cssref/pr_print_pageba.asp
Brett Merkey is offline   Reply With Quote
Old 04-22-2018, 01:58 PM   #4
A.N.Mouse
Junior Member
A.N.Mouse began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2018
Device: none
Okay so
First two are examples of what I'm looking at when I'm trying to edit it in Calibre. The third one is KDP's response when I try to upload anything with the page break code above.

The text sample contains the biggest part of my issue. It splits the table of contents in half every time, despite there being plenty of room for it. This sample doesn't have the manual page breaks I had been using for the full document, I actually removed them in the hopes that it would simplify what I was looking at in Calibre so I could put the page breaks back in myself (seeing as it was largely ignoring them anyway).

The page is formatted 6x9, like it was for print. I'm not sure if that would change anything.
Attached Thumbnails
Click image for larger version

Name:	sample.PNG
Views:	76
Size:	59.5 KB
ID:	163606   Click image for larger version

Name:	sample 2.PNG
Views:	73
Size:	48.4 KB
ID:	163607   Click image for larger version

Name:	sample 3.PNG
Views:	65
Size:	12.5 KB
ID:	163608  
Attached Files
File Type: rtf adventure sample.rtf (291.9 KB, 20 views)
A.N.Mouse is offline   Reply With Quote
Old 04-22-2018, 04:29 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,129
Karma: 21886264
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by A.N.Mouse View Post
Okay so
First two are examples of what I'm looking at when I'm trying to edit it in Calibre. The third one is KDP's response when I try to upload anything with the page break code above.

The text sample contains the biggest part of my issue. It splits the table of contents in half every time, despite there being plenty of room for it. This sample doesn't have the manual page breaks I had been using for the full document, I actually removed them in the hopes that it would simplify what I was looking at in Calibre so I could put the page breaks back in myself (seeing as it was largely ignoring them anyway).

The page is formatted 6x9, like it was for print. I'm not sure if that would change anything.
I had a quick look at the rtf and the calibre conversion to epub. Calibre's viewer was not happy with the table of contents until I increased the width.

Basically, I would forget about formatting for a page size -- epub is generally used for reflowable books in contrast to PDF which is page oriented. What I saw as a more serious issue is that the sections are not separated into separate text files. I did a quick manual split on the original file removing a lot of the blank lines used to separate pages in the rtf. For the table of contents, the page number are iffy and you might want to make the text a link instead of plain text (I added a sample link for the Introduction).
Attached Files
File Type: epub adventure sample - amazon.epub (45.4 KB, 17 views)
DNSB is offline   Reply With Quote
Advert
Old 04-24-2018, 05:32 AM   #6
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,119
Karma: 1404167
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Some additional general tips:

A better way of formatting is using styles instead of manual manipulations like adding lines for a page layout in Word. A TOC should be generated within Word by using headline styles. calibre will recognize headline styles as TOC. Save a document in format DOCX and not RTF. This format is much better supported from calibre as RTF and you can open it directly with the editor.

A well formatted Word document will be a much better source file. You can open the DOCX file directly in calibre editor with repeatable results all the time (or as conversion) and you then only need the editor as fine tuning tool (and/or for checking how it looks as EPUB).

Take a close look to the calibre manual. There you will find a comprehensive DOCX example and how to use Word styles in combination with calibre editor. This will answer most of your questions how to make a much better source document for building a EPUB.
https://manual.calibre-ebook.com/con...-specific-tips (Convert Microsoft Word documents)
https://calibre-ebook.com/downloads/demos/demo.docx
Divingduck is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with assigning correct page breaks and page numbers to a textbook [converting fr cateroseg Calibre 0 02-14-2018 11:32 PM
Help with page breaks? Greg7976 Sigil 4 05-27-2013 08:52 AM
epub to mobi h1 page breaks not starting on new page wannabee Conversion 4 08-02-2011 01:46 AM
Adding page breaks in Calibre breaks ePubcheck validation bookraft Conversion 16 03-01-2011 02:23 PM
Formatting Chapter Breaks? NVash Calibre 3 12-09-2010 06:09 AM


All times are GMT -4. The time now is 04:46 AM.


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