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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-22-2011, 08:38 PM   #1
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 239
Karma: 1009530
Join Date: Apr 2011
Location: Geelong, Australia
Device: Sony PRS-T1, Sony PRS-350, Palm TX
PML to EPUB - indents and scene breaks

Hi folks,

I have a PML file that looks like this:

Code:
\T="10%"They looked at each other, baffled, in love and hate. All the warm salt water of the bathing pool and the shouting and splashing and laughing were only just sufficient to bring them together again.

Simon was not in the bathing pool as they had expected.
\T="10%"When the other two had trotted down the beach to look back at the mountain ...
where the line starting "Simon was ..." is a scene break.

When I convert to EPUB using ebook-convert, that converts to:

Code:
<div class="calibre13"><p class="calibre1">They looked at each other, baffled, in love and hate. All the warm salt water of the bathing pool and the shouting and splashing and laughing were only just sufficient to bring them together again.</p></div>
<p class="calibre1">Simon was not in the bathing pool as they had expected.</p>
<div class="calibre13"><p class="calibre1">When the other two had trotted down the beach to look back at the mountain ...
and those two CSS elements are:

Code:
.calibre1 {
    display: block;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1em
    }
.calibre13 {
    display: block;
    text-indent: 10%
    }
With this the scene break does start at the start of a line, but since gap is added between each paragraph there's nothing else to indicate a scene break. If I add --remove-paragraph-spacing then that removes the blank line for the scene break but it then indents the first line of the next scene as well.

Is there a combination of options that leaves a gap between scenes as well as leaves scene breaks starting at the start of a line?

Also, is there a way the conversion from PML could be smarter so that the extra <div class="calibre13"> on almost all paragraphs isn't needed? The method of using \T="10%" (or some other percentage) to specify a paragraph indent is pretty common in the PML files I want to convert. It's obvious looking at the output that most paragraphs could be one CSS element, the the scene breaks could have a different element with non-zero text-indent and a margin-top.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 12-26-2011, 01:02 PM   #2
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,427
Karma: 950001
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
One blank line may or may not be a scene break depending on how the PML is layed out. There is no good automated way to determine if this should be a scene break in this case. The it is possible to profile and see if the document is separating paragrpahs with a blank line or not. However many comercial PML files I've seen have random blank lines between paragraphs simply because the conversion tool used wasn't very good or the author of the PML was just lazy.

The only way to do what you want is increase the number of blank lines for scene breaks in your document. Specifically calibre's PML input will treat two or more blank lines as a scene break.
user_none is offline   Reply With Quote
 
Enthusiast
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about scene breaks in conversion lunixer Conversion 8 08-14-2011 03:36 AM
Managing Scene Breaks during Conversion Nathan0015 Conversion 8 06-17-2011 09:38 AM
Scene Breaks - Using more than one type ghostyjack Workshop 7 04-07-2011 07:33 AM
Maintaining scene breaks wellington Calibre 6 07-18-2010 08:43 PM
Scene breaks at page top/bottom radius Workshop 20 12-15-2009 06:59 PM


All times are GMT -4. The time now is 03:26 AM.


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