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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-04-2010, 06:37 AM   #1
kmashlea
Junior Member
kmashlea began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Aug 2010
Location: Derbyshire, England
Device: Bebook One 2010
FB2 Sectionize

Since I put a bug report on about the new experimental sectionize option, I have found quite a few different scenarios where the regex fails to convert correctly, therefore doesn't create the FB2 output file at all.

I have now analysed these and wrote a program based on this, which works on all my books now.

Now that I have gotten myself more into regex, I have converted the code into new regular expressions that I am testing at the moment.

Once I am happy with them, I'll send the code to user_none (assuming it hasn't already been sorted?).
kmashlea is offline   Reply With Quote
Old 09-04-2010, 09:52 AM   #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,433
Karma: 950001
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by kmashlea View Post
Once I am happy with them, I'll send the code to user_none (assuming it hasn't already been sorted?).
I've committed a fix for the bug report and a few other bugs I discovered while working on it. However, still send the code once you're done. You might have fixed bugs and cases I missed/wasn't looking for.

Please keep in mind that FB2 sectionizing is based on detecting sequences of tags that could be chapters. It will never work 100% with calibre's chapter detection options. However, that doesn't mean we can't get close .
user_none is offline   Reply With Quote
Old 09-05-2010, 01:24 PM   #3
kmashlea
Junior Member
kmashlea began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Aug 2010
Location: Derbyshire, England
Device: Bebook One 2010
I have got the regex back to two lines and have run it through all of my book collection without any failing the FB2 output.

I am really pleased with the output but even where the chapters aren't detected it still output correctly.

I'll e-mail the code to.

Just need the chapter detection to get a little better now!
kmashlea 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
DR800 FB2 plugin yuri_b iRex 15 05-02-2011 09:18 PM
epub or FB2 what do you use? Dopedangel HanLin eBook 1 04-06-2010 01:21 PM
FB2 output KarateMonkey Calibre 0 03-14-2010 07:47 PM
.fb2 format Clemente Which one should I buy? 10 02-25-2010 02:56 AM
FB2 Issue Jaie Other formats 4 04-26-2009 05:16 AM


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


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