08-09-2010, 03:25 AM | #1 |
Browser
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
ePub post-split displays sections out of order
I've created an ePub from a file that I originally coded in HTML, and brought it into Sigil to tidy up. I used Sigil to split the file into chapter sections, and rename the sections for ready identification.
I got about halfway through the book, and then decided to split it more finely, so I went back and re-split earlier sections. So that meant not all the splits were actually done in page order. The resulting ePub file loads and reads fine in Sigil, but when I load it onto my ereader the split sections display out of order. I can't be absolutely certain, but they seem to display in the order they were split. (For example, Chapter 3 ends prematurely, at the point where I split it in Sigil. I was up to Chapter 11 when I was splitting them in Sigil, when I went back and split Chapter 3 into two bits. So now, in my ereader, the part of Chapter 3 past the split appears at Chapter 11.) Is this expected behaviour? The sections display in correct order when I open the file in Sigil; how do I reorder them in the file itself so they open in the correct order in my ereader? |
08-09-2010, 03:28 AM | #2 |
Resident Curmudgeon
Posts: 75,290
Karma: 133361584
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Edit the OPF file in a text editor. That tells the reader software what order the files are in. It s very simple to change the order in the OPF.
|
Advert | |
|
08-09-2010, 03:34 AM | #3 |
Browser
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
Thanks JSWolf, but the file doesn't have an OPF.
|
08-09-2010, 05:27 AM | #4 | |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I'm not sure this is helpful, as I cannot see what you have in front of you, but do the individual xhtml files appear in the order in which they are supposed to appear in the book when you look at them in the book browser pane? In other words, do they look like this: --Cover --Chap 1 --Chap 2 --Chap 3a --Chap 3b --Chapt 4 blahblah --Chap 11 Or do they look like this? --Chap 3a --Chap 4 --Chap 5 --etc. --Chap 11 --Chap 3b If the former, I have no idea what to tell you. If the latter, then just drag-n-drop Chap 3b, in the brook browser pane, to just beneath Chap 3a. That will correctly place it in sequence. I hope this helps. Hitch |
|
08-09-2010, 06:50 AM | #5 |
What Title ?
Posts: 1,325
Karma: 1856232
Join Date: Jan 2009
Location: Bavaria Germany
Device: Sony Experia Z Ultra
|
According to the Sigil manual the OPF is required, and logically, how can the reader program know how to order the contents without it? Since Sigil does not display the OPF file as a separate entity, you will need to do like JSWolf said, and edit it with a text editor. Sigil puts it in the OEBPS folder inside the EPUB.
|
Advert | |
|
08-09-2010, 07:07 AM | #6 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Your Reading System will display the XHTML files in the order they are listed in the Book Browser in Sigil. Do note that the numbers in the filenames given to the newly created sections after splitting are arbitrary and do not represent the order of the chapters in your book.
You don't need to edit the OPF directly, just open the epub in Sigil and reorder the XHTML files in the Book Browser to the order of your liking (click a file and drag it up and down to a new position). |
08-09-2010, 09:45 AM | #7 | ||||
Browser
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
Quote:
Quote:
Quote:
Quote:
I figured the temporary names Sigil gave new splits were just working names. I noticed, for instance, I might get up to section0009 (say), would rename the sections, then "save as" the file, and go back in to do more splits, and it would start again at section0001. So I gathered that was just the working convention of the app, which is quite logical. Could it have anything to do with the splits not being sequential? By which I mean, doing a split later in a document, and then one earlier before that split? I notice Sigil seems to like things being done in a consecutive order - not unreasonable, it just requires more careful planning on my part. And I noticed if I place my cursor incorrectly, and so split a file in the wrong place, Sigil doesn't allow me to undo it, so I figured it's writing the changes somewhere else in addition to the files we can say. (I'm guessing, from this thread, it's the OPF, which I knew very little about before starting to use Sigil.) Could the records there be written in chronological order, but out of sequential order in the document (if you understand what I mean), so later cuts earlier in the text throw things out of whack? I didn't want to deconstruct the ePub and start editing its components by hand, as I said (chiefly for lack of knowledge on my part), but maybe that's what I'll need to do? |
||||
08-09-2010, 10:28 AM | #8 | |
What Title ?
Posts: 1,325
Karma: 1856232
Join Date: Jan 2009
Location: Bavaria Germany
Device: Sony Experia Z Ultra
|
Quote:
http://www.atlantiswordprocessor.com...tweak_epub.exe |
|
08-09-2010, 11:14 AM | #9 |
Well trained by Cats
Posts: 30,160
Karma: 57532198
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Yes it does if you have saved your Sigil edit It is hidden since the Book Browser and the TOC editor do all the work. If you un-zip your EPUB, you will see it.
Note: I discovered (and reported) a bug (Win XP)that mis-locates any splits after you DELETE any split. The list is scrambled, the document is now in scrambled order. The work-around after a DELETE, is to save, then "File open" the same document. That resets the farkled pointer to normal and you can do more splits. |
08-10-2010, 07:27 AM | #10 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
There could also be a bug in Sigil where the sections are in one order when editing the epub, but in another when saved. You can check for this easily: save the epub file, close Sigil, start Sigil again and then open the epub. If the sections are in the same order when the epub is saved and opened again, then they're written correctly to the OPF <spine>. Sigil reads the <spine> when opening the epub so the order the sections appear when the epub is first opened is the order in which these files appear in the OPF. If you confirm there's a problem with saving this file, I'd love to see a bug report about it. |
|
08-10-2010, 09:33 PM | #11 | |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Can I ask what ereader you're using? Is it a device? For quick-n-dirty (and even fancy) spot-checks, proofreading, visualization, etc., I use Firefox's EPubReader addon, and it works GREAT. If you are using a device-based reader, could you pop the file into FF's EPubReader and tell us what you see? You should get an active TOC on the left which might help us troubleshoot if you can screenshoot or Jing it for us...'cuz right now, I got nuthin'. Can you screenshoot us the book browser pane, or is the material private? Hitch |
|
10-23-2010, 10:07 PM | #12 |
Enthusiast
Posts: 39
Karma: 10
Join Date: Mar 2009
Device: Kindle 3, Motorola Droid with Aldiko
|
I'm using Sigil 0.3.0, and when I split pages at chapter markers, it adds the newly-divided pages to the end of the book, rather than immediately after the page which was split. I'm then manually dragging/dropping the chapters to the correct place in the book.
Is this the way it is supposed to work? If so, it seems counter-intuitive, because if Chapter 3 is before Chapter 4, it goes to follow that any subparts within Chapter 3 also ought to come before Chapter 4, and not, e.g., after Chapter 10. Cheers, Carl. |
10-23-2010, 11:54 PM | #13 |
Well trained by Cats
Posts: 30,160
Karma: 57532198
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
That problem was supposed to have been fixed.
When it happened(2.4), it was triggered by previously deleting a book portion, which messed the location of the next split. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Order of Chapters in HTML->ePub | alias_neo | Calibre | 9 | 05-16-2011 11:55 AM |
How To split .Lit file into several epub books | bluesbeat | Calibre | 4 | 09-11-2010 07:05 PM |
CSS wacky p indent post-chapter split? | Hitch | Sigil | 0 | 06-17-2010 08:59 PM |
What is Order of Conversions To epub | Vienna01 | Calibre | 3 | 03-26-2010 10:38 PM |
Using "Series/VolumeNo" in EPUB to ensure sort order on reader | craigmckay | Calibre | 7 | 01-18-2010 04:48 PM |