Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-14-2014, 03:04 PM   #1
itfh
Junior Member
itfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipse
 
Posts: 3
Karma: 8444
Join Date: Jun 2014
Device: Kindle
Manually entering table of contents

The heuristic processing feature is super cool, but still has issues recognizing chapters on a totally unformatted PDF where the chapters are not demarcated as "Chapter 1", "Chapter 2," etc. This is totally understandable, since the book does not contain the normal <h1>, <h2> tags that heuristic processing bases its search on. I'm trying to make a workaround because I already know the chapter titles. Is there a way to manually enter a table of contents (i.e., chapter title strings) into the xpath search field and have the heuristic processing search via specific strings? Thanks!
itfh is offline   Reply With Quote
Old 06-14-2014, 03:31 PM   #2
theducks
Well trained by Cats
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: 31,169
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by itfh View Post
The heuristic processing feature is super cool, but still has issues recognizing chapters on a totally unformatted PDF where the chapters are not demarcated as "Chapter 1", "Chapter 2," etc. This is totally understandable, since the book does not contain the normal <h1>, <h2> tags that heuristic processing bases its search on. I'm trying to make a workaround because I already know the chapter titles. Is there a way to manually enter a table of contents (i.e., chapter title strings) into the xpath search field and have the heuristic processing search via specific strings? Thanks!
There is the 'Edit the TOC' icon (looks like a T game tile).
You may need to add it to your toolbar menu. Preferences: Toolbars: (pick you choices) Place the icon from the list on the Left
theducks is offline   Reply With Quote
Old 06-14-2014, 11:51 PM   #3
itfh
Junior Member
itfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipse
 
Posts: 3
Karma: 8444
Join Date: Jun 2014
Device: Kindle
Quote:
Originally Posted by theducks View Post
There is the 'Edit the TOC' icon (looks like a T game tile).
You may need to add it to your toolbar menu. Preferences: Toolbars: (pick you choices) Place the icon from the list on the Left
Thanks for the suggestion! I'll elaborate a bit on a workaround I figured out, thanks to theducks' suggestion:

Adding the 'Edit the TOC' button to your toolbar is definitely the right thing to do. The thing is, in order to edit the TOC the book has to be in the EPUB format. So, the first step is to convert your book to EPUB. Once that is done, you can manually enter a table of contents with the 'Edit the TOC' button. This will open a menu that allows you to add and remove TOC entries manually. To delete entries, select the one to be deleted and click the little green recycling arrow button. To add entries, select "Create new entry" or "New Entry Above/Below/Inside this entry" depending on if you initially started with zero or nonzero entries. When creating a new entry, you can link to indices that Calibre found during heuristic processing (so cool). Once you've entered a table to your satisfaction, convert the book from EPUB to your desired format (in my case, MOBI). If the conversion doesn't seem to work, double check that you've converted from your EPUB because the original format (in my case, PDF), does not contain the new manually entered TOC, only the EPUB does!

So glad I found a workaround, and thanks again for your help theducks

Last edited by itfh; 06-15-2014 at 12:11 AM.
itfh is offline   Reply With Quote
Old 06-15-2014, 10:25 AM   #4
theducks
Well trained by Cats
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: 31,169
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by itfh View Post
Thanks for the suggestion! I'll elaborate a bit on a workaround I figured out, thanks to theducks' suggestion:

Adding the 'Edit the TOC' button to your toolbar is definitely the right thing to do. The thing is, in order to edit the TOC the book has to be in the EPUB format. So, the first step is to convert your book to EPUB. Once that is done, you can manually enter a table of contents with the 'Edit the TOC' button. This will open a menu that allows you to add and remove TOC entries manually. To delete entries, select the one to be deleted and click the little green recycling arrow button. To add entries, select "Create new entry" or "New Entry Above/Below/Inside this entry" depending on if you initially started with zero or nonzero entries. When creating a new entry, you can link to indices that Calibre found during heuristic processing (so cool). Once you've entered a table to your satisfaction, convert the book from EPUB to your desired format (in my case, MOBI). If the conversion doesn't seem to work, double check that you've converted from your EPUB because the original format (in my case, PDF), does not contain the new manually entered TOC, only the EPUB does!

So glad I found a workaround, and thanks again for your help theducks
IMHO AZW3 is the better format for modern K's (but I am not sure if A' allows those to be emailed. )I strictly use USB
theducks is offline   Reply With Quote
Old 06-20-2014, 01:12 AM   #5
itfh
Junior Member
itfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipseitfh can illuminate an eclipse
 
Posts: 3
Karma: 8444
Join Date: Jun 2014
Device: Kindle
Hm, I'm having a slightly different problem with the TOC now. The EPUB TOC looks perfect (expected, because that was manually entered) while the MOBI TOC has one link of about 80 (it's a long book) that refuses to point to the correct location--it points to some random location a couple chapters earlier. I verified that the chapter link points to the right index in the EPUB body of the book, and I tried deleting that chapter link and re-adding it, but to no avail. I also checked to make sure that when converting to MOBI the max number of chapters exceeds the number that I currently have (set it to a ridiculously high number, like 100) Seen this happen before?
itfh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of Contents weberr Sigil 3 05-20-2013 09:42 AM
Table of Contents not being identified as Table of Contents openletter Conversion 2 10-19-2012 12:54 AM
Table of Contents Help MyLittleTwi Calibre 0 02-27-2012 03:30 PM
Table of Contents peterinnes Sigil 1 09-29-2010 03:03 AM
How to: table of contents wizzofoz Sigil 1 10-08-2009 08:22 AM


All times are GMT -4. The time now is 12:26 AM.


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