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 12-15-2011, 11:09 PM   #1
sinusLog
Member
sinusLog began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2011
Device: Nook Touch
Easy way to mark a page break in a .txt ?

I wish to instruct calibre to insert page breaks in the epub output. I don't want to go into the complexities of scripting or xpath. I have tried entering ^L and the ascii character 12 in my txt file with no avail. Is there an easy way ?
sinusLog is offline   Reply With Quote
Old 12-16-2011, 01:26 AM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
I use markdown formatting and then insert this into the text file where I want a page break:
Code:
<div class="pb"></div>
And then in Calibre under the 'Look and Feel' conversion settings make sure you have this line in the 'extra css' box:
Code:
.pb {page-break-before : always;}
ldolse is offline   Reply With Quote
Advert
Old 12-16-2011, 03:24 AM   #3
sinusLog
Member
sinusLog began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2011
Device: Nook Touch
Thanks for your reply.

I entered both codes where you told me to, but it didn't work. It's probably the "markdown formatting" part. Can you tell me more, please ?
sinusLog is offline   Reply With Quote
Old 12-16-2011, 07:51 AM   #4
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by sinusLog View Post
I entered both codes where you told me to, but it didn't work. It's probably the "markdown formatting" part. Can you tell me more, please ?
Did you change the text input formatting style to markdown?
user_none is offline   Reply With Quote
Old 12-16-2011, 02:02 PM   #5
sinusLog
Member
sinusLog began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2011
Device: Nook Touch
That was it, it works now. Thanks.
sinusLog is offline   Reply With Quote
Advert
Old 12-16-2011, 05:10 PM   #6
sinusLog
Member
sinusLog began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Sep 2011
Device: Nook Touch
It works, but it defeated something else. I used to have Plain formatting style. Now that it's Markdown, my blank lines have disappeared. I am sure there is another tweak that would give me both the blank lines and the page breaks. I believe you can do anything you want with calibre, but you have to become a specialist. Why not have preset templates or profiles: exact reproduction, poetry, etc ?

Anyway, thanks for your benevolence.
sinusLog is offline   Reply With Quote
Old 12-17-2011, 02:36 AM   #7
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
You need three blank lines in a row to have a blank line register with Markdown IIRC. It may help to enable the heuristics 'format scene breaks' option as well.

As to your request - there is no simple way to do that using text as an input document. If you want to stick with text as your base format (and this is not a bad way to go by any means) then I suggest you learn a bit more about Markdown and/or Textile.

Markdown is a bit less techy but not quite as feature rich as Textile.

Last edited by ldolse; 12-17-2011 at 02:40 AM.
ldolse is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unwanted page break photoluminations Conversion 1 09-28-2011 08:11 PM
PAGE BREAK JFS-NMF Recipes 0 03-04-2011 09:15 AM
Page break before h2 question Amalthia Calibre 9 04-17-2009 06:33 PM
Page break before <b> flowoeB Calibre 14 04-12-2009 03:05 PM
PRS-500 makelrf3 and Unexpected Page-Break EatingPie Sony Reader Dev Corner 0 04-19-2007 01:28 AM


All times are GMT -4. The time now is 12:06 PM.


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