Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 10-02-2016, 09:18 PM   #1
barryem
Wizard
barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.
 
barryem's Avatar
 
Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
How to add a page break before each chapter

I'm reading an epub that has each chapter starting right at the end of the previous chapter with no page break. Not a big thing. I can live with it if need be. But I wonder if there's some fairly easy way in Calibre to add page breaks at the start of a chapter.

In the editor I did try adding a <br> tag but that didn't seem to do anything. I don't know a lot about HTML and less about CSS. I do understand a few of the basics but even most of the basics aren't clear to me. I don't do enough editing of books to justify learning CSS. I'm 75 and learning new things doesn't come easy anymore.

Anyway, if anyone can tell me a simple way to do this I'd appreciate it. And if anyone tells me to learn CSS I won't get mad but I probably won't do it. I know when I was answering a question like this in a forum about programming in my younger days that would have been my answer.

Any help will be appreciated. Any suggestions that I learn CSS will be ignored gracefully.

Barry
barryem is offline   Reply With Quote
Old 10-02-2016, 09:20 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,270
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Split each chapter into a separate file.
PeterT is offline   Reply With Quote
Advert
Old 10-02-2016, 09:42 PM   #3
barryem
Wizard
barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.
 
barryem's Avatar
 
Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
I looked for a way to do that but I didn't see one. Where do I find that option?

Barry
barryem is offline   Reply With Quote
Old 10-02-2016, 09:55 PM   #4
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,270
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Ugh.. I don't have easy access to calibre right now (my PC is dead and I just sneak onto my wife's PC when I can).

See https://manual.calibre-ebook.com/edi...ing-html-files
PeterT is offline   Reply With Quote
Old 10-02-2016, 09:55 PM   #5
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,882
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by barryem View Post
I looked for a way to do that but I didn't see one. Where do I find that option?

Barry
It is on the preview pane: the folded thing icon

But it may be simpler if all you want is a new page

page-break-before: always

In the CSS style for the chapter title (assumes it has its own class)
theducks is offline   Reply With Quote
Advert
Old 10-02-2016, 09:56 PM   #6
barryem
Wizard
barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.
 
barryem's Avatar
 
Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
I just found where to do that with the scissor shaped icon at the bottom of the right panel. That seemed to be working okay until near the middle of the book I came to a chapter where the chapter number was at the end of the file and the chapter name was at the beginning of the next file. Normally the chapter name directly follows the chapter number, on the next line.

The text of the book is divided into (I think) two files. There are five files altogether but the text is in those two files. The 5 are HTML files and then there are CSS files in addition. I'm guessing this is just a badly formatted file and maybe I'll just leave it be. I don't think I know what I'm doing.

Thanks for the suggestion.

Barry
barryem is offline   Reply With Quote
Old 10-02-2016, 09:57 PM   #7
barryem
Wizard
barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.
 
barryem's Avatar
 
Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
I'll look at adding that line to the style sheet.

Thanks,
Barry
barryem is offline   Reply With Quote
Old 10-02-2016, 09:59 PM   #8
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,882
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by barryem View Post
I just found where to do that with the scissor shaped icon at the bottom of the right panel. That seemed to be working okay until near the middle of the book I came to a chapter where the chapter number was at the end of the file and the chapter name was at the beginning of the next file. Normally the chapter name directly follows the chapter number, on the next line.

The text of the book is divided into (I think) two files. There are five files altogether but the text is in those two files. The 5 are HTML files and then there are CSS files in addition. I'm guessing this is just a badly formatted file and maybe I'll just leave it be. I don't think I know what I'm doing.

Thanks for the suggestion.

Barry
Split where it is needed, then merge the next section AFTER the orphan chapter head
theducks is offline   Reply With Quote
Old 10-02-2016, 10:08 PM   #9
barryem
Wizard
barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.
 
barryem's Avatar
 
Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
Well, I tried that and nothing happened. I tried adding it to the class for the title and to the class of the line before each chapter which seems like it might define the start of the chapter. It begins with <P ...

Anyway it's probably not worth all this. I'm halfway through the book. I thought it might be an easy fix and I guess it's not.

Thanks for the help.

Barry
barryem is offline   Reply With Quote
Old 10-02-2016, 10:34 PM   #10
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,882
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by barryem View Post
Well, I tried that and nothing happened. I tried adding it to the class for the title and to the class of the line before each chapter which seems like it might define the start of the chapter. It begins with <P ...

Anyway it's probably not worth all this. I'm halfway through the book. I thought it might be an easy fix and I guess it's not.

Thanks for the help.

Barry
did you validate your CSS after you made the change? Those esky semi-colons

BTW The Calibre Viewer can not be in Scroll mode, it ignores that command
theducks is offline   Reply With Quote
Old 10-02-2016, 11:49 PM   #11
barryem
Wizard
barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.
 
barryem's Avatar
 
Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
I didn't know to validate it and I didn't know I needed a semi-colon. I'm about to call it a night. I'll give that a try in the morning.

Thanks,
Barry
barryem is offline   Reply With Quote
Old 10-03-2016, 12:01 AM   #12
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,882
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by barryem View Post
I didn't know to validate it and I didn't know I needed a semi-colon. I'm about to call it a night. I'll give that a try in the morning.

Thanks,
Barry
Even Kovid make typos. When something does not work that should.... validate

A semicolon is needed unless it is the last attribute before the }
and it never hurts, even there
theducks is offline   Reply With Quote
Old 10-03-2016, 05:44 PM   #13
barryem
Wizard
barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.barryem ought to be getting tired of karma fortunes by now.
 
barryem's Avatar
 
Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
Well, thanks to a lot of help from you guys and the fact that I find it hard to give up, I finally did it!!

Frankly I didn't understand about half the answers I got so I started digging. I didn't learn much about CSS or HTML in the process but I learned a lot about the editor in Calibre. Well, maybe not a lot but more than I knew.

Most importantly I learned that it has a help file, which I didn't know before. I'm not sure that would have helped me but I used it to look up things described in the answers you guys gave me that I didn't know about, such as how to merge pages, etc, and I now have a repaired book.

Unfortunately I'm nearly done reading it but this was more about knowing how to fix that sort of thing than it really being a problem, so that's okay.

I had another book with a related problem and I learned enough in the process to fix that book as well.

At the moment I'm feeling pretty good. That'll last till the next thing I can't figure out. But that's just life.

Thanks again for your help. It worked.
Barry
barryem is offline   Reply With Quote
Old 10-03-2016, 10:11 PM   #14
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,600
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by barryem View Post
Most importantly I learned that it has a help file, which I didn't know before.
@barryem - there are useful sticky posts at the top of the calibre subforums, and the main forum, such as the Editor Info Links thread. The videos are worthwhile (they are not of the unboxing cornflakes genre)

BR

Last edited by BetterRed; 10-03-2016 at 10:14 PM.
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub conversion adds page break after chapter headings Siavahda Calibre 9 06-30-2015 12:10 AM
What are SGF Chapter Marker and Chapter Break? webphone Sigil 1 05-25-2011 02:43 PM
Manual page break as chapter ardeegee ePub 4 04-08-2011 11:35 PM
Chapter break crutledge Sigil 2 08-19-2010 07:37 AM
How to avoid page break after heading/chapter tkirke ePub 6 01-22-2010 02:12 PM


All times are GMT -4. The time now is 01:02 AM.


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