Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-02-2010, 05:59 PM   #1
pedz
Member
pedz began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Mar 2010
Device: nook
Not getting parts in the right order

Attach, I have put my split up html files which is what I give to ebook-convert. You can see that it orders the partNNN.html files in order.

But the output has them mixed up. It puts them out roughly in the order they are read:

toc.html
part000.html
part001.html
part019.html
part002.html
part005.html
part004.html

...

The script I'm using is:

Code:
#!/bin/sh

rm -rf debug-output
mkdir debug-output

/usr/bin/ebook-convert \
  toc.html \
  test.epub \
  -v -v -v -v \
  --flow-size 1000000 \
  --debug-pipeline debug-output \
  --output-profile nook \
  --max-levels 2 \
  --level1-toc '//h:h2[@class="epub-toc"]' \
  --level2-toc '//h:h3[@class="epub-toc"]' \
  --level3-toc '//h:h4[@class="epub-toc"]' \
  --dont-split-on-page-breaks \
  --language en \
  --authors "Ian Hickson, David Hyatt, et. al." \
  --pubdate "$( date '+%b %d, %Y' )" \
  --publisher WhatWg.org
The --flow-size option I add / remove depending up which set of bugs I want :-)

Note, I have also tried adding a file like this (below) and used it as the input file to ebook-convert:

Code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Web Applications 1.0</title>
  </head>
  <body>
    <a href="part000.html"> </a>
    <a href="part001.html"> </a>
    <a href="part002.html"> </a>
    <a href="part003.html"> </a>
    <a href="part004.html"> </a>
    <a href="part005.html"> </a>
    <a href="part006.html"> </a>
    <a href="part007.html"> </a>
    <a href="part008.html"> </a>
    <a href="part009.html"> </a>
    <a href="part010.html"> </a>
    <a href="part011.html"> </a>
    <a href="part012.html"> </a>
    <a href="part013.html"> </a>
    <a href="part014.html"> </a>
    <a href="part015.html"> </a>
    <a href="part016.html"> </a>
    <a href="part017.html"> </a>
    <a href="part018.html"> </a>
    <a href="part019.html"> </a>
  </body>
</html>
It has the same problem. Part 019 comes very early in the book.

Any advice on how to work around this?
Attached Files
File Type: zip temp.zip (963.6 KB, 69 views)
pedz is offline   Reply With Quote
Old 04-02-2010, 10:33 PM   #2
Sabardeyn
Guru
Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.Sabardeyn ought to be getting tired of karma fortunes by now.
 
Sabardeyn's Avatar
 
Posts: 630
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
Okay, I'm not sure these ideas are of help, but it might point in the right direction...

1) I know that Windows (all versions as far as I know) consider digits in file names to be text, not numbers. But the way that you named the files should have automatically corrected for things.

2) The only other thing that comes to mind, which your list of files to include should have corrected, is that one of the original ebook formats (LRM? MOBI? Sorry, can't remember) allowed chapter files to be listed out of order, but it would display chapters in the correct order. However, when converting books, users would encounter the problem you're seeing. I think it was in the TOC or NCX file? Somwhere in it's files there is a listing and it doesn't list chapters as 001, 002, 003, etc but as 001, 019, 002, etc.

Sorry I cannot be of any more help.
Sabardeyn is offline   Reply With Quote
 
Advertisement
Old 04-03-2010, 12:44 AM   #3
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,465
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use --breadth-first
kovidgoyal is offline   Reply With Quote
Old 04-09-2010, 09:31 AM   #4
pedz
Member
pedz began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Mar 2010
Device: nook
--breadth-first helps but it still gets some parts out of order. I'm now redoing the spin with a post process.
pedz 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
Replacement parts oillio iRex 1 09-27-2010 05:59 PM
DR1000 for parts DSAzevedo iRex 0 03-30-2010 03:12 PM
An e-book in two parts? FlorenceArt News 8 12-30-2009 04:29 PM
New to these parts... stacynak Introduce Yourself 2 02-27-2009 03:03 PM
iLiad Parts Mr. Goodbar iRex 5 10-25-2008 11:59 AM


All times are GMT -4. The time now is 02:51 PM.


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