Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-28-2010, 09:31 AM   #1
neonbible
Addict
neonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watch
 
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?
neonbible is offline   Reply With Quote
Old 10-28-2010, 09:56 AM   #2
cuthbert19
Enthusiast
cuthbert19 once ate a cherry pie in a record 7 seconds.cuthbert19 once ate a cherry pie in a record 7 seconds.cuthbert19 once ate a cherry pie in a record 7 seconds.cuthbert19 once ate a cherry pie in a record 7 seconds.cuthbert19 once ate a cherry pie in a record 7 seconds.cuthbert19 once ate a cherry pie in a record 7 seconds.cuthbert19 once ate a cherry pie in a record 7 seconds.cuthbert19 once ate a cherry pie in a record 7 seconds.cuthbert19 once ate a cherry pie in a record 7 seconds.cuthbert19 once ate a cherry pie in a record 7 seconds.cuthbert19 once ate a cherry pie in a record 7 seconds.
 
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>
for your chapter headers and then you will have a new, shiny ePub file with an embedded TOC

"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.
cuthbert19 is offline   Reply With Quote
Advert
Old 10-28-2010, 12:21 PM   #3
neonbible
Addict
neonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watch
 
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.
neonbible is offline   Reply With Quote
Old 11-04-2010, 10:09 AM   #4
neonbible
Addict
neonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watch
 
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.
neonbible is offline   Reply With Quote
Old 11-04-2010, 10:46 AM   #5
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
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" />
in the Code View. The point of the markers is that you can insert many of them in one XHTML file and then split the whole file into many smaller ones at once, with the Tools->Split On SGF Chapter Markers option.

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.
Valloric is offline   Reply With Quote
Advert
Old 11-04-2010, 11:36 AM   #6
neonbible
Addict
neonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watchneonbible is clearly one to watch
 
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!
neonbible is offline   Reply With Quote
Old 11-04-2010, 09:16 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
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:
Originally Posted by Valloric View Post
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" />
in the Code View. The point of the markers is that you can insert many of them in one XHTML file and then split the whole file into many smaller ones at once, with the Tools->Split On SGF Chapter Markers option.

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.
I just tried this with 0.3.0 release. ( i split a lot, this way looked like it would save time)
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
theducks is offline   Reply With Quote
Old 11-04-2010, 11:39 PM   #8
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by theducks View Post
I just tried this with 0.3.0 release. ( i split a lot, this way looked like it would save time)
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
Yep, that is annoying. Especially for me, running on a KDE linux system where I can't just drag the new splits into the proper place in book view. To do that, I need to externally edit the content.opf file.

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.
st_albert is offline   Reply With Quote
Old 11-05-2010, 09:52 AM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
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:
Originally Posted by st_albert View Post
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.
It is weird, because i have been frequently using the split button with good success, (other than the specific conditions that I had bug reported and were fixed) and the new split ended in the proper place.
theducks is offline   Reply With Quote
Old 11-08-2010, 12:53 PM   #10
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by theducks View Post
It is weird, because i have been frequently using the split button with good success, (other than the specific conditions that I had bug reported and were fixed) and the new split ended in the proper place.
Haven't tried it in a while, but I just tested 0.3.1 and found that if I use the "Chapter Break" button, which splits the chapter immediately, it puts the new file in the right place.

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.
st_albert is offline   Reply With Quote
Old 11-08-2010, 08:04 PM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
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:
Originally Posted by st_albert View Post
Haven't tried it in a while, but I just tested 0.3.1 and found that if I use the "Chapter Break" button, which splits the chapter immediately, it puts the new file in the right place.

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.
3.0made multiple sequential files at the end. You had best know where they really belonged
theducks is offline   Reply With Quote
Old 11-08-2010, 08:23 PM   #12
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by theducks View Post
3.0made multiple sequential files at the end. You had best know where they really belonged
Which is precisely why I place all the chapter markers into the one, book-length, xhtml file (from ID4 epub export) before I load it into sigil. Some other changes, such as adding <hx> tags, are best done in the original file as well.

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.
st_albert is offline   Reply With Quote
Old 01-14-2011, 04:04 PM   #13
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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.
cybmole is offline   Reply With Quote
Old 01-21-2011, 11:02 PM   #14
Nigol
Groupie
Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.
 
Nigol's Avatar
 
Posts: 184
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
Quote:
Originally Posted by cybmole View Post

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 ?
Here is my shamless plug, I just release a tool that will help you.
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/
Nigol is offline   Reply With Quote
Old 01-22-2011, 03:03 AM   #15
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Nigol View Post
Here is my shamless plug, I just release a tool that will help you.
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/
Nigol:

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
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:09 AM.


MobileRead.com is a privately owned, operated and funded community.