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 11-06-2012, 09:39 PM   #1
gregf
Junior Member
gregf began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2011
Device: ipad
Duplicate IDs

Hi,

I just upgraded from 0.8.0 to 0.9.5 and now I get duplicated id from epubcheck and flight crew using the exact same ebook-convert command and input files. If I reinstall 0.8.0 it passes epubcheck.

Here is a example of a duplicate id of what 0.9.5 produces:

<a name="z01001008" id="z01001008"><span class="bcv">8</span>God called the dome “sky.” Evening came, and morning followed—the second day.
</a></p><a name="z01001008" id="z01001008">
</a><p class="calibre4"><a name="z01001008" id="z01001008">

Same content from 0.8.0:
<a name="z01001008" class="calibre15" id="z01001008"></a><span class="bcv">8</span>God called the dome “sky.” Evening came, and morning followed—the second day.
</p>
<p class="calibre5">

HTML Source:
<a name="z01001008" /><span class="bcv">8</span>God called the dome “sky.” Evening came, and morning followed—the second day.
</p>
<p>

Here is the ebook-convert command that I use for 0.8.0 and 0.9.5

ebook-convert index.html zzz.epub --flow-size 99999999 --page-breaks-before "//h:h1" --preserve-cover-aspect-ratio --chapter "/" --chapter-mark none --output-profile ipad --breadth-first --no-chapters-in-toc --max-toc-links 84 --cover zzz.jpg --author-sort "xxx" --authors "yyy" --publisher zzz --title "xyz" --isbn 111-1-1111-1111-1

thanks for the help,
Greg
gregf is offline   Reply With Quote
Old 11-07-2012, 12:03 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,448
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to post a complete html file demonstrating the issue rather than a snippet.
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 11-08-2012, 08:19 PM   #3
gregf
Junior Member
gregf began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2011
Device: ipad
Attached is the one of the input html files and related output file giving the duplicate ids. An example duplicate id=z01001008

thanks.

Last edited by gregf; 11-09-2012 at 10:26 PM.
gregf is offline   Reply With Quote
Old 11-08-2012, 10:54 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,448
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre has switched to an html 5 based parsing algorithm.As per that algorithm, that is the way that the particular markup you use is supposed to be parsed, each <a name="whatever" /> tag becomes two tags after parsing, leading to the duplicates. Open your html file ina modern browser and you will see the same thing if you use the "Inspect element" functionality, the <a> tag will have become two <a> tags.

If you change the self closing tag to an explicitly closed tag the problem with probably go away.

Change <a name="" /> to <a name=""></a>
kovidgoyal is offline   Reply With Quote
Old 11-09-2012, 10:26 PM   #5
gregf
Junior Member
gregf began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2011
Device: ipad
Thank You.
gregf 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
IDs jlutes Library Management 1 08-02-2011 01:30 AM
ids down ? reaver121 iRex 0 01-16-2010 10:53 AM
iDS update available cbell iRex 3 11-03-2008 06:08 AM
can't connect to ids deadite66 iRex 2 12-14-2007 06:29 PM
iLiad Bypassing iDS rudysplif iRex Developer's Corner 6 12-11-2007 12:01 AM


All times are GMT -4. The time now is 08:14 PM.


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