Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-25-2010, 08:38 AM   #16
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
I've used the basic idea behind kmashlea's solution and created an experimental option (--sectionize-chapters). This will attempt to break the book into multiple sections based on chapters.

It detects chapters that match example case 1. So it won't work for every book. However kmashlea's rate of 6 out of 10 makes the option worthwhile to try. My code should match in a few more case so I'm hoping it will work in 7 or 8 out of 10 books.

Everyone using this option should know that the code matches after conversion and modifies the tags so there is the possibility that using the option will cause the conversion to fail. If you have any issues (including books that are not being sectionized properly) please open a ticket and I will look into it.

P.S. Thanks kmashlea for you help.
user_none is offline   Reply With Quote
Old 11-29-2010, 08:38 PM   #17
viktorz
Junior Member
viktorz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2010
Location: California
Device: PRS-505
Hello,

I'm trying to convert EPUB file to FB2. I'm getting single-section FB2 result, the sectionize-chapters option didn't work for me... Ah well...

But since I'm converting from EPUB, my intermediate HTML just happens to be one HTML file per chapter. I realise that this is special case, but I wonder if it possible perhaps to implement another option, like sectionize-chapters-per-file to somehow benefit from the fact that source happens to be nicely split in chapters already.

Last edited by viktorz; 11-29-2010 at 08:49 PM.
viktorz is offline   Reply With Quote
Advert
Old 11-29-2010, 08:40 PM   #18
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 viktorz View Post
I realise that this is special case, but I wonder if it possible perhaps to implement another option, like sectionize-chapters-per-file to somehow benefit from the fact that source happens to be nicely split in chapters already?
Very much possible. Open a ticket with the idea so it doesn't get lost.
user_none is offline   Reply With Quote
Old 11-29-2010, 08:59 PM   #19
viktorz
Junior Member
viktorz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2010
Location: California
Device: PRS-505
Thanks, user_none!

Created ticket #7738
viktorz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FB2 Output for Nook - Calibre bthoven Calibre 4 09-22-2010 06:59 AM
FB2 output KarateMonkey Calibre 0 03-14-2010 07:47 PM
FB2 output Solicitous Calibre 1 02-10-2010 11:20 PM
FB2 Output error stahanovez Calibre 2 08-02-2009 03:33 PM
FB2 Output for Calibre orwell2k Calibre 5 06-05-2009 06:14 PM


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


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