View Single Post
Old 08-14-2011, 12:22 AM   #8
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
Quote:
Originally Posted by lunixer View Post
2) If I leave the "replace soft scene break" field blank and my book uses blank lines for soft scene breaks, will Calibre leave those blank lines? Under look and feel I use both "removing spacing between paragraphs" and "add blank line between paragraphs"
Yes - Calibre will retain those blank lines, even if those other features are enabled.


Quote:
Originally Posted by lunixer View Post
3) What heuristics does Calibre use to detect a soft scene break? I just read a book where I replaced soft scene breaks with * * *, to see how it would work, and it only detected about half of the scene breaks. The rest were completely unmarked. The book used a blank line between scenes.
Basically Calibre looks for any blank lines in the document - it then determines which are 'whitespace' by looking at the paragrahs before and after them - to see if they're placed around headings, frontmatter, etc. After that it assumes the rest are scene breaks. Basically to be a scene break there needs to be a full, punctuated paragraph both before and after the scene break. Scene breaks which are purely defined in css aren't detected. You'd have to open a bug with the book to allow this to be investigated further.

I did just fix some bugs in this logic which haven't been submitted to trunk, but they only cover the scenario where the document has a mix of hard and soft scene breaks.

Last edited by ldolse; 08-14-2011 at 05:24 AM.
ldolse is offline   Reply With Quote