View Single Post
Old 10-17-2012, 09:36 PM   #4
ayutheos
Junior Member
ayutheos began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2012
Device: none
Quote:
A new file will have the default name Sectionxxxx.html, where xxxx is the lowest number not in use. It is not really important to be honest, since renaming is easy. Select the files you want to rename and right-click. Select rename and enter the generic name. The files will be renamed with sequential numbers.

The format is not really important since the declaration is correct. Although I must say that I tend to have everything as xhtml myself.
What I'm doing at the moment is create a new chapter (split) from the chapter I'm working on (say Section0005.xhtml), rename the newly created file from Section0001.html to Section0006.xhtml.

I know that the (x)html files can be bulk renamed sequentially, but it's kind of annoying when creating new files that the numbering restarts from 0001 and in another file extension.

The thing is that for another epub that I was working on previously, creating new chapter files gives the correct numbering sequence (+1 from previous file) and all are in xhtml extension. Just not sure what happened in the epub that I'm working on now, where the numbering keeps restarting from 0001 and file extension doesn't follow my existing chapter files.

Quote:
the file NAME-number does not have anything to do with the name of the chapter , nor does it really delineate a book 'Chapter'. (The TOC/NCX is part of a set of position markers that we call Chapters. This is controlled by the Order the name appear in the Book Browser' list)

The (Sigil) Name-Numbering is for us humans .
It allows us to keep things in the proper order. The default number plan of split takes the parent file name and adds a number suffix. Alpha-numeric sorting rules want leading zeros so you don't get the 10,100,2,20 sort results.
And, you, you can sort the name list. Be careful that your naming alpha sorts properly, there is no undo for a sort (or name drag) except to discard that Sigil edit SESSION.
I did manually move things around in the content.opf file (sorting the chapter files and css file). Maybe that's what throwing the numbering sequence off? For actual chapter sorting I just drag sort them in the book browser (didn't manually change anything in the toc.ncx)

Thanks for the replies.

ayutheos is offline   Reply With Quote