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 01-25-2012, 11:22 PM   #1
Diabolikul
Junior Member
Diabolikul began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2012
Device: Kindle 2
Help generating TOC

Hello forums. This is my first post here.

I just downloaded Calibre tonight. I've had a Kindle since the first one came out and generally just haven't done much but read books.

I need help generating a Table of Contents for a book that my brother-in-law is in the process of writing. I can't figure out how to make an XPath expression that will find the proper phrasing and generate a table of contents.

He's decided his chapters won't be like "Chapter Two", etc.

The denotion of a chapter will be a single word in BOLD CAPITAL letters for the geographic location of that chapter.

For instance:

DALLAS

TAMPA

LONDON


The only places in his book that will have all bold capital letters will be the chapter headings.

Calibre has located his more obvious items such as Prologue and Epilogue, which by the way also happen to be in BOLD CAPTIAL letters. I guess it just looks for those types of words automatically.

Can anyone help me figure out how to help my bro in law not only generate a table of contents, but just start a chapter on a new page? Right now the chapters all run together. You can see the BOLD CAPITAL geography and tell that you are in a new chapter, but otherwise you'd never know. The last sentence of the previous chapter is one line above DALLAS.

Can Calibre help me find those BOLD CAPITAL letters, insert a page break and generate a TOC or do I need to find some way to do this manually or use a different program or whatnot?

Any help is very much appreciated.

The source material he's given me is a PDF.

Thanks in advance.

Carl
Diabolikul is offline   Reply With Quote
Old 01-26-2012, 03:56 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,071
Karma: 777825
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
PDF is a terrible format for processing into another format. Since your brother-in-law is in the process of writing it, cannot he provide an alternative format that would be better.

As an example, if he is using Microsoft Word and saves the files as either RTF or HTML(filtered) then the headings can simply be found by the fact that they have a heading style associated with them.
itimpi is offline   Reply With Quote
Old 01-26-2012, 09:50 AM   #3
Diabolikul
Junior Member
Diabolikul began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2012
Device: Kindle 2
Quote:
Originally Posted by itimpi View Post
PDF is a terrible format for processing into another format. Since your brother-in-law is in the process of writing it, cannot he provide an alternative format that would be better.

As an example, if he is using Microsoft Word and saves the files as either RTF or HTML(filtered) then the headings can simply be found by the fact that they have a heading style associated with them.
Thanks. I asked him the same question, can he get it to me in Word format or however he's typing it up. He's a doctor with 3 kids and a wife with Crohns so I thought I might be able to do this conversion quicker than he can get back to me... Never know though, he might respond faster than I think!

If I know him, he isn't using any styles though. He's simply doing the new chapter names in BOLD CAPS rather than using preformated headings, body, etc. He's one of those 2 finger typists... HA!
Diabolikul is offline   Reply With Quote
Old 01-26-2012, 10:42 AM   #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: 14,860
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Diabolikul View Post
Thanks. I asked him the same question, can he get it to me in Word format or however he's typing it up. He's a doctor with 3 kids and a wife with Crohns so I thought I might be able to do this conversion quicker than he can get back to me... Never know though, he might respond faster than I think!

If I know him, he isn't using any styles though. He's simply doing the new chapter names in BOLD CAPS rather than using preformated headings, body, etc. He's one of those 2 finger typists... HA!
If he does the Bold CAPS thing (and NOT PDF), you might be able to tag those with H1,H2 or H3 with a REGEX Search and Replace.
As others have pointed out: RTF or (Doc saved as) HTML (Filtered) is the way to go and will save a ton of time and effort.
theducks 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
New Calibre isn't generating TOC ccraig13 Conversion 2 10-07-2011 09:58 AM
TOC - Kindle - Not Generating superted Conversion 2 05-15-2011 07:28 AM
Generating TOC entries for prelims / end matter in InDesign forlor ePub 7 07-07-2010 08:26 AM
Trouble generating a TOC foghat Calibre 2 05-07-2010 06:00 PM
Problem generating TOC ronin712 Calibre 9 07-21-2009 05:19 PM


All times are GMT -4. The time now is 04:50 PM.


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