10-17-2012, 03:36 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2012
Device: none
|
Creating chapters in xhtml/html
Hi,
When I split a chapter at the cursor position, a new file is created but the numbering restarts from 0001 and the file extension is in html instead of xhtml. E.g. I'm in file Section0005.xhtml, and I split the chapter in there, a new file Section0001.html is created. How to I set it so that the numbering continues from previous chapter, and create the new file in xhtml? Does it matter what file format (xhtml/html) the files are in? Any help appreciated. |
10-17-2012, 04:44 AM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
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. |
Advert | |
|
10-17-2012, 05:57 AM | #3 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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. |
|
10-17-2012, 09:36 PM | #4 | ||
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2012
Device: none
|
Quote:
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:
Thanks for the replies. |
||
10-17-2012, 10:48 PM | #5 |
Sigil developer
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
The default extension changed from .xhtml to .html in the newest version of Sigil. So any new blank files you create will have .html automatically. You can rename the old .xhtml files to .html if you want them to match, but it doesn't matter.
Its a good question whether 001 should be used if available or if the next higher number should be used though. |
Advert | |
|
10-18-2012, 12:27 AM | #6 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2012
Device: none
|
Quote:
Yeah, I'm guessing the numbering keeps starting from 001 because it didn't detect any html files as I changed all the extension to xhtml. Thanks for the clarification! |
|
10-18-2012, 05:15 AM | #7 |
Enthusiast
Posts: 37
Karma: 10
Join Date: Jan 2011
Device: Kobo 1
|
I found a anomaly today with splitting files.
I split a file manually. Placed the curser where I wanted the split and clicked on the "split button". File split OK with an extension of xxxxx.html. Then I used the "<hr class="sigil_split_marker" />" option to split the rest of the file into chapters. This went OK too. BUT; the all file extensions were xxxxx.xhtml Has anybody else found this. I am using the latest beta version 0.5.907. Did someone forget to change a line in the code? Peace, John P |
10-18-2012, 08:35 AM | #8 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
When Calibre Goes to Sigil in HTML *and* XHTML | Tulpana | Sigil | 6 | 07-09-2012 10:03 AM |
HTML Anchor in XHTML | arreke | Sigil | 3 | 12-27-2010 01:28 PM |
Several xhtml/html to a single epub file help. | clowe1028 | ePub | 3 | 03-21-2010 03:47 AM |
Jetbook HTML (XHTML) | rogue_ronin | Ectaco jetBook | 19 | 02-12-2010 09:13 PM |
Sony PRS-505 slow whilst changing Chapters. XHTML too large? | pato1 | Workshop | 3 | 06-08-2009 03:05 PM |