05-05-2014, 11:44 AM | #1 |
Enthusiast
Posts: 27
Karma: 10
Join Date: May 2014
Device: iPhone 4
|
unwanted table of contents in converted book
Hello. This is my first post to the calibre forum. I hope I'm in the right place.
I converted a FrameMaker 6 book of 28 files with mif2go to XHTML and then used calibre to create a Kindle format book. This is a dictionary so it does not need a table of contents. The generated ebook keeps putting as the first page in the book a page with a large heading that reads "Table of Contents" and nothing else. How can I stop that from happening? Calibre also picks up a random selection of terms (50 out of the several thousand dictionary entries) and displays them when you click the table of contents button in the ebook reader. These are the last two pages of the book, so I presume they are the metadata TOC. How can I prevent the appearance of this in the book and how can I remove those last two pages? |
05-05-2014, 11:58 AM | #2 |
creator of calibre
Posts: 43,771
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Look at the MOBI Output section of the conversion dialog.
|
05-05-2014, 11:58 AM | #3 |
Addict
Posts: 250
Karma: 1702156
Join Date: Nov 2010
Device: Kindle Voyage
|
In calibre, select "Preferences", "Output Option", "MOBI Output".
Select "Do not add Table of Contents to book". |
05-05-2014, 01:09 PM | #4 |
Enthusiast
Posts: 27
Karma: 10
Join Date: May 2014
Device: iPhone 4
|
Thanks. That sort of worked, but, for my purposes it didn't do what I wanted. That is, there is nothing displayed when I click the table of contents button, but the first page of the book still has a large heading at the top that reads "Table of Contents" and a new second page has been added, a completely blank page. How do I remove those two pages?
|
05-06-2014, 01:13 AM | #5 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
calibre doesn't create mobi dictionaries as far as I know. I believe there is special software for creating them, but I'm afraid I have no idea what exactly.
|
05-06-2014, 01:54 AM | #6 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Obviously calibre was able to convert this dictionary to mobi since the OP has an outputted mobi book. Why he has a page titled Table of Contents is beyond me.
|
05-06-2014, 08:58 AM | #7 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Having paged text is not the same as a dictionary. Dictionaries have an index which calibre doesn't create to my knowledge.
|
05-06-2014, 02:18 PM | #8 |
Enthusiast
Posts: 27
Karma: 10
Join Date: May 2014
Device: iPhone 4
|
The dictionary was created in FrameMaker 6. Mif2go successfully converted from FrameMaker to XHTML. Calibre successfully converted from XHTML to mobi. (I can create an alphabetic index as part of the process, just a list of letters as cross-references.) The only problem (apart from a few display issues that I'm dealing with by tweaking local.css and the XHTML files) is that calibre keeps inserting those two table of contents pages at the start of the ebook. So what I'd like to know is how to get rid of those pages after the fact -- or, better, how not to generate them in the first place.
Thanks for the replies and TIA for any further help. |
05-06-2014, 03:21 PM | #9 | ||
Grand Sorcerer
Posts: 27,463
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
How to remove it after the fact is simple as well: you can't. Calibre doesn't edit MOBIs. If there's a page with the heading "Table of Contents" in your MOBI, no amount of converter setting tweaking will remove it during a MOBI-MOBI conversion. You need to build the MOBI again (from the original source that has no table of contents pages/headings in it) and select "Do not add Table of Contents to book" and convert to MOBI. Last edited by DiapDealer; 05-07-2014 at 05:50 AM. |
||
05-06-2014, 10:06 PM | #10 |
Enthusiast
Posts: 27
Karma: 10
Join Date: May 2014
Device: iPhone 4
|
Ah. I see the confusion. Perhaps I should call my book a "dictionary" instead of dictionary, or, better, call my book a lexicon.
Turns out I was the cause of my problems. Per the calibre user manual: In order to convert a collection of HTML files in a specific order, you have to create a table of contents file. That is, another HTML file that contains links to all the other files in the desired order. Such a file looks like: <html> <body> <h1>Table of Contents</h1> <p style="text-indent:0pt"> <a href="file1.html">First File</a><br/> <a href="file2.html">Second File</a><br/> . . . </p> </body> </html> So calibre wasn't creating a page that contained "Table of Contents"; I was. Pilot error. I removed the <h1> line from the control file. I changed the control file such that it inserts alphabetical lettered links to the individual letters of the lexicon. Again, thanks for all the help and I'll try not to ask questions in the future when the problem is one caused by me. |
05-07-2014, 11:46 AM | #11 |
Enthusiast
Posts: 27
Karma: 10
Join Date: May 2014
Device: iPhone 4
|
how do I start a new thread?
I realize this is not a good place to post this but I can't find the right place and that is what my question is. How do I start a new thread? I read the FAQs and guidelines, and I can see how to reply to existing postings but I can't see how to start a completely new thread and in a specific place.
Specifically, I want to start a new thread here: MobileRead Forums > E-Book Software > Calibre I don't know how I managed to start the thread of my previous request. At some point I found a "new thread" button, but I can't find one now. All I can find is "new reply" buttons. (I guess I should have started this with an smiley.) Thanks. |
05-07-2014, 12:04 PM | #12 |
Omnivorous
Posts: 3,281
Karma: 27978909
Join Date: Feb 2008
Location: Rural NW Oregon
Device: Kindle Voyage, Kindle Fire HD, Kindle 3, KPW1
|
|
05-07-2014, 12:46 PM | #13 |
Grand Sorcerer
Posts: 27,463
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I see no reason to limit your future questioning in that way. We all have those "can't see the forest for the trees" moments where another set of eyes might be all we need to get past it.
|
05-07-2014, 05:34 PM | #14 | |
null operator (he/him)
Posts: 20,457
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
It should be there, shouldn't it ? BR |
|
05-07-2014, 06:23 PM | #15 | |
Well trained by Cats
Posts: 29,688
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
The button changes flavor depending if you are viewing the LIST or a topic. |
|
Tags |
table of contents |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table of contents also shows up at the end of the book | BasicGreatGuy | Sigil | 3 | 01-10-2013 10:02 AM |
table of contents code for converted oreilly chm | luckycharms | Conversion | 4 | 08-05-2011 09:31 AM |
Why is my table of contents placed at the end of my book? | itzfufu | Conversion | 2 | 05-11-2011 05:15 PM |
access directly the table of contents of cbc converted into epub | Khawarizmi | Sony Reader | 4 | 12-27-2010 08:55 AM |
Table of Contents in Book Designer | Fledchen | LRF | 0 | 02-20-2009 05:25 PM |