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 08-13-2011, 06:50 PM   #1
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
Questions about scene breaks in conversion

Hello. I've noticed some weird behavior with the scene break heuristic processing and had some questions.

1) Why does Calibre not save the preferences in "replace soft scene break" if, for example, I use * * *? Or anything else. No matter what I put in there that field is always blank when I go to convert something.

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? Note that under look and feel I use both "removing spacing between paragraphs" and "add blank line between paragraphs"

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.

Thanks!
lunixer is offline   Reply With Quote
Old 08-13-2011, 07:03 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,269
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by lunixer View Post
Hello. I've noticed some weird behavior with the scene break heuristic processing and had some questions.

1) Why does Calibre not save the preferences in "replace soft scene break" if, for example, I use * * *? Or anything else. No matter what I put in there that field is always blank when I go to convert something.

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? Note that under look and feel I use both "removing spacing between paragraphs" and "add blank line between paragraphs"

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.

Thanks!
If you recently set that in preferences AND you have previously converted that book, you are using the books saved settings.
Click restore defaults on that books conversion page.
theducks is online now   Reply With Quote
 
Advertisement
Old 08-13-2011, 07:06 PM   #3
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
Quote:
Originally Posted by theducks View Post
If you recently set that in preferences AND you have previously converted that book, you are using the books saved settings.
Click restore defaults on that books conversion page.
Already tried this. It didn't work. When I go *back* into the preferences to look, the heuristic processing thing still is blank. I have made sure to click apply. The preference is definitely not being saved.
Vitals: HP dv7, Ubuntu 10.04, Calibre 8.13 and 8.14 (behavior is in both)
lunixer is offline   Reply With Quote
Old 08-13-2011, 07:23 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,269
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by lunixer View Post
Already tried this. It didn't work. When I go *back* into the preferences to look, the heuristic processing thing still is blank. I have made sure to click apply. The preference is definitely not being saved.
Vitals: HP dv7, Ubuntu 10.04, Calibre 8.13 and 8.14 (behavior is in both)
Confirming your observation: Natty(32), Win XP, Saved (applied) value not showing on re-visit.
theducks is online now   Reply With Quote
Old 08-13-2011, 08:50 PM   #5
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,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Please open a bug for 1 at https://bugs.launchpad.net/calibre .
user_none is offline   Reply With Quote
Old 08-13-2011, 08:56 PM   #6
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,269
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Bug #826038 submitted
theducks is online now   Reply With Quote
Old 08-14-2011, 12:51 AM   #7
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
Quote:
Originally Posted by theducks View Post
Bug #826038 submitted
Thanks. I've subscribed to the bug and linked back here. Do you have any comments on the other questions that I asked in the OP?


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"

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.
lunixer is offline   Reply With Quote
Old 08-14-2011, 01: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 06:24 AM.
ldolse is offline   Reply With Quote
Old 08-14-2011, 04:36 AM   #9
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,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Also, TXT and PML input for instance require two plus blank lines to be retained as a scene break.
user_none is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Managing Scene Breaks during Conversion Nathan0015 Conversion 8 06-17-2011 10:38 AM
Scene Breaks - Using more than one type ghostyjack Workshop 7 04-07-2011 08:33 AM
Maintaining scene breaks wellington Calibre 6 07-18-2010 09:43 PM
Scene breaks at page top/bottom radius Workshop 20 12-15-2009 07:59 PM
New to the scene, libprs500 / conversion questions mflood Calibre 3 11-26-2007 11:43 PM


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


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