View Single Post
Old 03-02-2018, 02:43 AM   #9
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by teresatenured View Post
FizzyWater - That's a good idea! I'm not sure how I would do that though. Any Ideas?

deback - There's absolutely no way I'm counting 600 characters manually for a whole book. I might as well just read it on the Calibre editor at that point.

sjfan - Good Ideas; unfortunately neither of your methods worked. One thing I noticed was that all the body-paragraphs are class="indent" . So I tried

Code:
(?ms)(.{400}.*?)<p class="indent">
and replaced with

Code:
\1<p class="para break">
The editor said it made 400ish changes, but I did not see any effect when I uploaded it to my Kindle.
First, davidfor's idea of setting the @page margin is probably the best idea if it works.

Second, did you do this as well like I said? And make sure the "break" style has "page-break-before: always" set.

Just adding a non-existent "break" style isn't going to do anything; you need to define that style in the CSS to insert the breaks.

Also, you don't want to rewrite your indent style to a nonexistent para. The replace-with should be
Code:
\1<p class="indent break">
in your case.
sjfan is offline   Reply With Quote