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 06-12-2011, 07:44 AM   #1
neil_matthews
Junior Member
neil_matthews began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2011
Location: Stafford, UK
Device: Kindle 2 & Kindle 3
Unhappy Unexpected TOC entry

I have some books in epub format which I'm converting to .mobi to read on a Kindle.
Sigil shows the TOC entries as expected, but after conversion to .mobi, the first entry on Contents menu is bookcontent1_0. The text corresponds to item 3 on the TOC list in Sigil, and is line 1 of the section1.xhtml file, in a document with structure:

cover.xhtml
title.xhtml
section1.xhtml
.
.
section18.xhtml

The normal first page entry for this book would point to section3.xhtml.

Since bookcontent1_0 seems superfluous, can someone help me suppress it, please? I'm converting via the GUI, not a command line, on a Windows 7 PC.
neil_matthews is offline   Reply With Quote
Old 06-12-2011, 09:33 AM   #2
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Moderator Notice
Moved to correct subforum.

Can you post your TOC XPath from the conversion settings as well as the relevant headings from the XHTML file (from the search & replace page, click the wizard staff to see the content)?
Manichean is offline   Reply With Quote
Old 06-12-2011, 10:15 AM   #3
neil_matthews
Junior Member
neil_matthews began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2011
Location: Stafford, UK
Device: Kindle 2 & Kindle 3
Level 1, 2 & 3 TOC XPath expressions all appear blank in GUI. Does this imply some unseen default expressions being used? I normally only use these fields for .rtf -> .mobi, where //h:h3 would be a usual level1 setting for me.

I'm not sure what you would consider relevant headings, so here's the first chunk of code from the Regex builder between the *'s:

****************************************
---
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<link href="../Styles/main.css" rel="Stylesheet" type="text/css" />

<title>Cover</title>
</head>

<body class="epub">
<div class="coverpage"><img alt="Cover" class="coverimage" src="../Images/front.jpg" /></div>
</body>
</html>

---
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<link href="../Styles/main.css" rel="Stylesheet" type="text/css" />

<title>Title</title>
</head>

<body class="epub">
<div class="titlepage">
<h2 class="title1" id="heading_id_2">The Book Title</h2><br />

<h3 id="heading_id_3">The Author</h3>
</div>
</body>
</html>

---
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<link href="../Styles/main.css" rel="Stylesheet" type="text/css" />

<title>Annotation</title>
</head>

**********************************

Book title and author changed to protect the innocent.

Thanks for the reply. I await enlightenment.
neil_matthews is offline   Reply With Quote
Old 06-12-2011, 10:54 AM   #4
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Hm. If the XPath entry fields are blank, then my initial suspicion that those expressions picked up too many headings appears to be wrong. For some reason, your conversion seems to see a bigger TOC than the ePub displays. I'd suggest having a closer look using Sigil, but I can't help you further, I'm afraid.
Manichean is offline   Reply With Quote
Old 06-12-2011, 12:45 PM   #5
neil_matthews
Junior Member
neil_matthews began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2011
Location: Stafford, UK
Device: Kindle 2 & Kindle 3
Thanks for trying to help.

Further testing shows:

Error in the Contents menu in Mobipocket Reader, as described in my original post, gives menu with entries

bookcontent1_0
Table of Contents
First Page
Cover page
where
bookcontent1_0 is line1 of section1.xhtml
Table of Contents is as shown in Sigil via Tools | TOC editor
First Page is line1 of title.xhtml
Cover page is is line1 of cover.xhtml

Deleting section1.xhtml and reconverting gives menu with entries

title
Table of Contents
First Page
Cover page
where
title is line1 of title.xhtml
Table of Contents is as shown in Sigil via Tools | TOC editor
First Page is line1 of title.xhtml
Cover page is is line1 of cover.xhtml

Clearly, there's some kind of conversion issue in Calible 0.8.5 which Mobipocket Reader sees. Happily for me (in a way), the Kindle 3 is not sophisticated enough to pick this up, so all appears well when using Go To|Table of Contents on the device.

Do you think this warrants a bug report?
neil_matthews 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
Repeated "Ignoring missing TOC entry" when converting PDF to MOBI goldenhair Calibre 2 01-19-2011 10:30 AM
iBooks not displaying entry for "Cover" in TOC purcelljf ePub 6 10-01-2010 12:56 AM
new single-entry TOC for Kobo compatibility Stinger Calibre 3 05-29-2010 01:16 AM
Unexpected conversion jusmee Calibre 4 11-05-2009 10:30 AM
PRS-600 Unexpected consequence... FizzyWater Sony Reader 2 09-15-2009 05:36 AM


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


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