Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-13-2009, 10:05 PM   #1
gandor62
Connoisseur
gandor62 began at the beginning.
 
gandor62's Avatar
 
Posts: 99
Karma: 14
Join Date: Jun 2008
Location: Brisbane Australia
Device: iPod Touch, Ipad, Kindle 2
Chapter or TOC Creation help needed

I have a few books that have been scanned and while not very big they are in a RTF or TEXT format. I need to set up chapters (to enable faster loading with Stanza) but as the file is a text file there are no H2 or Class headers and when converted to Epub chapter 1 is the entire text.

Setting Force Autogenerated TOC doesnt seem to create any TOC for me. Just one large chapter. When I use Calibre built in viewer I am unable to see a TOC. Clicking the button for TOC has no effect.

All I have in the file is
at the begining of the file

Prelude

Book 1: Halfway
Chapter 1 Tower
Chapter 2 Help


Then further on

Prelude
Some text

Book 1: Halfway

Chapter 1 Tower
text here

Chapter 2 Help
more text



Im guessing that this is a problem with scanned texts but was hoping some one could help me to get it working, simply. Even if Calibre could just break the text file in to x amount of blocks for chapters Ie if file is 700kb then 70kb blocks or something. , but was hoping that calibe or something else would detect buy text match or something.

Last edited by gandor62; 04-13-2009 at 11:01 PM. Reason: Still trying different settings
gandor62 is offline   Reply With Quote
Old 04-13-2009, 11:43 PM   #2
p3aul
Captain Courageous
p3aul doesn't litterp3aul doesn't litter
 
p3aul's Avatar
 
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
Red face

I'm new here also, but let me share something I've learned.

First use either MS Word or OpenOffice Writer. Load you txt file in and give it a title. Select it and give it an h1 or heading 1 style. Mark each Chapter with a number and/or title. Give all these an h2 or heading 2 style. Save this file as an RTF file. In Calibre, read in the file. Choose "convert individual file". In the next dialog box select "Chapter Detection" If you have more than 50 chapters, increase the default. If you have less than 6 chapters, decrease the limit. Now, in "Level 1 TOC use "//h1". Thats for the title. IN Level2 TOC use "//h2" (don't use the quote marks!) That's all there is to it. I had troubles too, and they didn't go away till I used those simple xpath statements. There's lots more to that you can add, but you'll learn this as you go.
HTH
Paul
p3aul is offline   Reply With Quote
Advert
Old 04-14-2009, 11:06 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If they are in txt format, just add ## before each chapter title and as p3aul pointed out set your level 1 and level 2 TOC options.
kovidgoyal is online now   Reply With Quote
Old 04-14-2009, 04:59 PM   #4
gandor62
Connoisseur
gandor62 began at the beginning.
 
gandor62's Avatar
 
Posts: 99
Karma: 14
Join Date: Jun 2008
Location: Brisbane Australia
Device: iPod Touch, Ipad, Kindle 2
Ahhh ok. I was hoping for something simpler. I have revisited Stanza and it actualy automatically detected the chapters by a keyword I think, and broke the book down. Problem will be when the text file is nearly a megabyte and no text words to detect.
gandor62 is offline   Reply With Quote
Old 04-15-2009, 02:18 PM   #5
p3aul
Captain Courageous
p3aul doesn't litterp3aul doesn't litter
 
p3aul's Avatar
 
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
Well there you go! Calibre is a wonderful tool and if you have to add a keyword for Stanza to detect the chapters, you might as well do as Kovid suggests and add the ## to your txt files.
Paul
p3aul is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC Creation Problem penguintri Calibre 8 10-06-2010 08:36 PM
TOC Creation & Calibre vs. MobiPocket Themus Calibre 8 05-15-2010 11:32 AM
TOC Creation - simplifying suggestion Fredom Calibre 1 04-21-2010 08:29 PM
html2epub TOC and chapter detection help ilovejedd Calibre 6 02-22-2009 05:58 PM
Help on TOC creation MacZap Calibre 7 02-04-2009 12:43 AM


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


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