![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 10802
Join Date: Sep 2010
Device: Kindle Paperwhite, iPhone 5, iPad Air, Nexus 7
|
How to create TOC, what does split on SGF markers mean?
I have an epub where each chapter is a separate HTML file. Ok all good. How do I build a TOC and split it into chapters correctly?
|
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48
Karma: 1916
Join Date: Sep 2010
Device: Cybook Opus
|
Sigil automatically generates a TOC from the chapter headers, given that you have used the correct tagging for the headers themselves
![]() So, you have to use, eg Code:
<h2>Chapter 1</h2> ![]() "Split on SGF chapter markers" is used when you have a biiig (x)HTML file with a bunch of chapters in it, and you want to make Sigil automatically split into separate files: you put the markers on the appropriate positions and then you tell Sigil to split it accordingly ... so, it's not anything you need for the epub you're working on right now. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 10802
Join Date: Sep 2010
Device: Kindle Paperwhite, iPhone 5, iPad Air, Nexus 7
|
Thanks
![]() Now I know how to build TOC - yay! Its been a nightmare for me recently. |
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 10802
Join Date: Sep 2010
Device: Kindle Paperwhite, iPhone 5, iPad Air, Nexus 7
|
Going back to the split function, it doesn't seem to work. Am I right in saying that a marker is a Header tag? After running the function it is still a single HTML file.
|
![]() |
![]() |
![]() |
#5 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
In the Insert menu, you can see that there's an "SGF chapter marker" option that (unsurprisingly) inserts one such marker. The marker looks like a horizontal line in the Book View and like this:
Code:
<hr class="sigilChapterBreak" /> You can also add these markers to your HTML file with some external application/script before importing the file into Sigil. Power users find this ability quite handy. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 10802
Join Date: Sep 2010
Device: Kindle Paperwhite, iPhone 5, iPad Air, Nexus 7
|
Ah didn't see that option before, thanks a lot!
|
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 59840954
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
In BV I inserted some markers in .._split1.xhtml. Then I used the F6 to split. Sigil created Section0036 and Section0037 AT THE END of my document list. I would have expected the splits to be after the parent section (split001) AFAIK I did not have Sections 0001 thru 0036 ![]() |
|
![]() |
![]() |
![]() |
#8 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
but I think there are bugtracker issues already entered for this problem, and hopefully it will be fixed soon (the positioning of splits, not the inability to drag chapters around under KDE). My usual tasksinvolve converting an InDesign CS4 epub export into a real epub. So in that case, I start with one xhtml file containing the entire book, and I place sigil chapter breaks throughout the whole thing (and a bunch of other edits which I won't go into) before importing into sigil. Then when I hit the split button, all splits occur in the right order. In other words, I specify ALL splits before I do any. Then, and only then, do they come out in the right order. |
|
![]() |
![]() |
![]() |
#9 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 59840954
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
But if I do "view -> insert SGF chapter marker", and then do "tools->Split on SGF chapter markers", the part below the marker goes in a new section file at the end of the list. The auto-generated filenames are different in the two cases as well. I haven't tried to see what happens if I place multiple SGF chapter markers in the same file (from within sigil) and then split it up. |
|
![]() |
![]() |
![]() |
#11 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 59840954
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#12 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
Then pull it into sigil, perform the chapter breaks (chapters end up in the correct order, since there was only one file to start with), and do other tweaks. |
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
trying to get the hang of using this SGF function. it seems to work OK only if I do all steps in order:
1. combine all existing splits into 1 big text file 2. then use find replace to add the sgf tags to each new chapter 3. hit F6 but there is no auto function for step 1. and if i skip step 1 the book order gets mangled. what I am looking for is a method to take a source epub which has badly placed splits , & change it to one which is split by chapter. I can do small books manually but given say 90 chapters scattered over say 17 x 260k split files it is a chore is there a better way ? Last edited by cybmole; 01-14-2011 at 04:07 PM. |
![]() |
![]() |
![]() |
#14 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 185
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
|
Quote:
Cut your chapter like you want them in sigil and use my tool to add all the separate file you want to the TOC, you can then Mass rename them to Chapter One, etc... No more need to add heading tags... http://code.google.com/p/epubfixer/ |
|
![]() |
![]() |
![]() |
#15 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Shameless question: if your relocated headings aren't surrounded by heading tags, what ARE they surrounded by? What hierarchal structure are you using? And where? Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] How do I maually create a TOC for a .rtf? | djloewen | Calibre | 4 | 02-13-2013 05:35 AM |
Create Newspaper TOC | plantoschka | Kindle Formats | 2 | 09-09-2010 02:03 PM |
Txt to Epub: how to create a toc | nestol | Calibre | 0 | 08-09-2010 08:56 PM |
How to create a TOC from scratch? | greenapple | Sigil | 5 | 06-01-2010 02:20 AM |
How to create linked TOC? | squawker | Sony Reader | 1 | 03-04-2007 08:20 AM |