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 02-03-2014, 08:47 AM   #1
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 511
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
Duplicate chapters in Moon+Reader after conversion

I converted an html file to epub. In Moon+Reader I get duplicate chapters (chapter 1, chapter 1, chapter 2, chapter 2 etc...)

Cool Reader does not have this problem but is not my reader of choice.

I am wondering if anyone knows what may cause this problem? It does not happen with most conversions and I am stumped about what to look for.
LadyKate is offline   Reply With Quote
Old 02-03-2014, 11:40 AM   #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: 25,784
Karma: 35600001
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT(Fixed,New Bat.), Galaxy Tab A, Kobo Aura2
Quote:
Originally Posted by LadyKate View Post
I converted an html file to epub. In Moon+Reader I get duplicate chapters (chapter 1, chapter 1, chapter 2, chapter 2 etc...)

Cool Reader does not have this problem but is not my reader of choice.

I am wondering if anyone knows what may cause this problem? It does not happen with most conversions and I am stumped about what to look for.
Open the book with Editor.
Are the chapter files really duplicated (2 files with the same)?
If NO
open the OPF
Are there duplicated filename entries in the <Spine>?



And are the filenames really long?
theducks is offline   Reply With Quote
Advert
Old 02-03-2014, 11:56 PM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,839
Karma: 13774200
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by LadyKate View Post
I converted an html file to epub. In Moon+Reader I get duplicate chapters (chapter 1, chapter 1, chapter 2, chapter 2 etc...)
You can view the TOC using calibre's Edit TOC feature (you might have to go to Preferences - Toolbars and add it to a menu). What do you see?

Last edited by DoctorOhh; 02-04-2014 at 12:42 AM.
DoctorOhh is offline   Reply With Quote
Old 02-04-2014, 03:31 AM   #4
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 511
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
The spine is way weird.

For some reason the first nave label is
<navLabel>
<text>Chapter One The entire text of the chapter is here</text
</navlable>
etc.

I didn't clean up the html myself. It was a really nested xhtml file with a ton of divs.

I'm wondering what would cause this in the conversion? I am going to try to duplicate this problem with an open source book so I can upload it lol.

Last edited by LadyKate; 02-04-2014 at 03:50 AM.
LadyKate is offline   Reply With Quote
Old 02-04-2014, 03:35 AM   #5
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 511
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
With edit toc I get
Chapter One --text of chapter --
Chapter One
Chapter 2 -- text of chapter --
Chapter 2
etc etc.

What causes a conversion from html or xhtml to do this???

Last edited by LadyKate; 02-04-2014 at 03:42 AM.
LadyKate is offline   Reply With Quote
Advert
Old 02-04-2014, 04:08 AM   #6
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,839
Karma: 13774200
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by LadyKate View Post
With edit toc I get
Chapter One --text of chapter --
Chapter One
Chapter 2 -- text of chapter --
Chapter 2
etc etc.

What causes a conversion from html or xhtml to do this???
I don't know what causes it. What are your settings in calibre's TOC conversion preferences area?

At least with Edit TOC you have an extremely simple and quick method of deleting the duplicate entries.

Last edited by DoctorOhh; 02-04-2014 at 04:10 AM.
DoctorOhh is offline   Reply With Quote
Old 02-04-2014, 04:35 AM   #7
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 511
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
My settings in the Table of Contents section of conversion are the defaults.
I don't get this problem with most of the html I convert. I am a bit tired now so not up to experimenting but will have a go sometime this week at recreating the problem and then paring down and seeing what html is causing it.

In truth, I had never used the Edit ToC plugin until it was mentioned here lol and had been converting, transferring the epub to my tablet and checking it lol. This is much quicker.

I have to wonder if it is the nested divs or the ids on the divs that is doing it. But like I said, I'll experiment when I have the time and energy to.
I just took another look and think perhaps the problem is the class on the nested div tags.
I have class="chapter" on the entire chapter and then the other chapterHead, chapterNumber classes nested. LOL no wonder I prefer to redo the html myself. I will try changing the class names and see if it gets rid of the problem.
(the following is how each chapter is coded.
<div class="chapter" >
<div class="chapterHead">
<h2 class="chapterNumber" id="ch01">
<span class="bold">Chapter One</span>
</h2>
</div>
<div class="chapterBody">
<p class="chapterOpenerText">The bust was about to go down.</p>
many paragraphs
</div>

Last edited by LadyKate; 02-04-2014 at 04:53 AM.
LadyKate is offline   Reply With Quote
Old 02-04-2014, 05:27 AM   #8
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,839
Karma: 13774200
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by LadyKate View Post
In truth, I had never used the Edit ToC plugin until it was mentioned here lol and had been converting, transferring the epub to my tablet and checking it lol. This is much quicker.
I convert then view it in calibre's viewer then use the Edit TOC or Edit Book features as needed. The Edit TOC does a great job and it is quick and easy.
DoctorOhh is offline   Reply With Quote
Old 02-04-2014, 07:02 AM   #9
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 511
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
Thanks all. The Edit TOC is great. I had not used it before.

I did a test and it was the nested div with class="chapter" at the wrong point (spanning the entire chapter" that was causing a problem. That plus classes named chapterHead etc was causing problems with the TOC in the conversion. Teach me to use an html file I hadn't "tweaked" myself. At least I've now learned how to fix this problem!
LadyKate is offline   Reply With Quote
Old 02-04-2014, 07:38 AM   #10
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,839
Karma: 13774200
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by LadyKate View Post
Thanks all. The Edit TOC is great. I had not used it before.

I did a test and it was the nested div with class="chapter" at the wrong point (spanning the entire chapter" that was causing a problem. That plus classes named chapterHead etc was causing problems with the TOC in the conversion. Teach me to use an html file I hadn't "tweaked" myself. At least I've now learned how to fix this problem!
Maybe checking the Do not add detected chapters to the Table of Contents in the TOC preferences would prevent this?

Alternatively you could check the Manually fine-tune the TOC after conversion is completed option and the Edit TOC tool will pop up after conversion completes. This gives you a chance to glance at the TOC and immediately correct it if required.
DoctorOhh is offline   Reply With Quote
Old 02-04-2014, 10:56 AM   #11
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: 25,784
Karma: 35600001
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT(Fixed,New Bat.), Galaxy Tab A, Kobo Aura2
Quote:
Originally Posted by LadyKate View Post
With edit toc I get
Chapter One --text of chapter --
Chapter One
Chapter 2 -- text of chapter --
Chapter 2
etc etc.

What causes a conversion from html or xhtml to do this???
2 tags used in the source (or conversion raised the visible one from a P to H# because of the word Chapter

<h3 title="Chapter One --text of chapter --"> <a... /></h3>
<h3>Chapter One</h3>

or
a weak (too loose) of a Xpath
or
might be caused by forcing the detection (force use of Auto generated TOC) look at the TOC tab of the books conversion settings

IMHO 1 book... Use the TOC editor to fix
theducks is offline   Reply With Quote
Old 02-04-2014, 08:04 PM   #12
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 511
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
True theducks, for the few books I found already it's easier using the toc edit BUT now I know what to look at when checking html prior to conversion.

More to the point I know WHY it happened . I hate not knowing why problems crop up.
LadyKate 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
Want chapters on new page in moon + reader Kenyanscott Android Devices 0 02-06-2013 04:24 PM
Calibre-Conversion: Parts and Chapters linzerkipferl Conversion 2 02-05-2012 04:14 PM
Manual ToC makes duplicate chapters? JDawg ePub 8 07-17-2011 10:12 PM
.Epub to .Mobi--duplicate chapters generated? JDawg Calibre 0 07-15-2011 09:50 PM
Double Chapters epub after Conversion mara1212 Conversion 1 04-25-2011 10:25 AM


All times are GMT -4. The time now is 01:08 AM.


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