Quote:
Originally Posted by embryo
...
Every epub I was trying to merge had 3-6 articles (chapters).
The xhtml inside them had names as article0.xhtml, article1.xhtml, article2.xhtml etc.
The images had names like img0.jpeg, img1.jpeg, img2.jpeg etc.
There were 12 epubs.
|
That's not uncommon. Many epubs generated from the same system will have the same file names inside.
EpubMerge deals with it by putting each separate source epub in a separate directory inside the merged epub. Which is acceptable according to the standards and most readers, but causes some editors problems. (My other plugin, FFDL, produces epubs with the same file names and EpubMerge works fine with it.)
Quote:
Originally Posted by embryo
The first problem is that although the TOC in the final epub was generated ok, the articles that it was pointing to where wrong and the wrongness was random.
Looking with the Sigil discovered that the xhtml files were in the wrong order in the book (a different wrongness this one).
|
Unless it's been significantly upgraded since the last time I looked, Sigil does
not correctly handle epubs with multiple directories inside and the devs had no plans to fix it. I don't think you can trust what Sigil tells you about the structure of an EpubMerge epub. Nor can you trust an epub saved from Sigil that had multiple dirs to start with.
Furthermore, calibre's builtin epub editor, while it handles multiple dirs better, still tries to 'simplify' things for you. It also doesn't show you the true structure. I believe it does a better job of saving the structure, but I can't promise it.
Quote:
Originally Posted by embryo
But that was not crucial.
I re-made the TOC (from the headers) to point to the right articles and the order was not important for that anthology.
The real problem was that a lot (but not all) of the pictures were mixed up.
I see the same picture in more than one article (taking the place of an other pictures).
|
If you changed the TOC in Sigil and saved it, that's probably what corrupted the image links.
Quote:
Originally Posted by embryo
Is there a version prior to 2.0 that I could check
|
There haven't been any changes to the actually epub merging part of the code in 8 months, well before the changes for calibre 2.0.
If you can provide me with copies of the source epubs you merged and, ideally, the merged epub as it first came out of EpubMerge that shows the problems I might be able to help more.