Quote:
Originally Posted by joseph harris
Here are the first half dozen as they appear:
Sheppard-10 lower leads.gif
Sheppard-12 to Mr Bird's roof.jpg
Sheppard-13 into Mr Bird's house.gif
Sheppard-14 Thornhill plus.gif
Sheppard-2 escape from condemned hold.gif
Sheppard-3 blueskin cuts wild's throat-150.jpg
Sheppard-6 door with bolt.gif
|
Ah yes, there's the problem...it's a problem that has caught many a fine folk...and it is not limited to Sigil or Calibre Editor!
The sequence you describe is quite logical when you realize that the alphanumeric comparison is done on a character-by-character basis. The first 9 characters are the same (Sheppard-), so we move to the 10th. In your example they are in order:
1
1
1
1
2
3
6
To fix this you simply have to use leading zeros to "pad" all numbers to the same number of characters:
Sheppard-01
Sheppard-02
...
Sheppard-09
Sheppard-10
Sheppard-11
If you have more than 99 images, then you would need two leading zero's (001, 002, 003, 098, 099, 100)
Cheers!
EDIT: In Sigil, and Calibre Editor, when you use the rename feature to add those zeros the program automatically updates the links within the html and opf (manifest) files...saves a great deal of work.
I recommend highlighting each of the first 9 files using ctrl-click (Sheppard-1 thru Sheppard-9), right click on one and rename. Then give it the name: "Sheppard-01"...without quotes. It will automatically put the zero in front of each.
If you have more than 100 images, then you would have two steps: select 1-9 and rename "Sheppard-001", then select 10-99 and rename "Sheppard-010".
Quote:
Originally Posted by joseph harris
Even if it were raw computer logic one would expect "1" at the top and "11", "15" and "16" in the top batch. And niether "4" or "5" appear in place. The problem is not in the html, since they are in the desired order in that file, "content.opf".
|
I would check the file name for 4 and 5...you probably have an errant space, or maybe a lower case letter??
Again...don't worry about the order in the .opf manifest. There is absolutely no requirement for those to be in order - at all. The file simply needs to be listed in the manifest. Of course, you are always free to reorder them using copy/paste, but it would be a big waste of time...