12-22-2011, 08:38 PM | #1 |
Wannabe Connoisseur
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, 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 ... 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 ... Code:
.calibre1 { display: block; margin-bottom: 1em; margin-left: 0; margin-right: 0; margin-top: 1em } .calibre13 { display: block; text-indent: 10% } 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. |
12-26-2011, 01:02 PM | #2 |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
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. |
Advert | |
|
|
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 |