Thread: ToC renumbering
View Single Post
Old 01-27-2012, 04:08 PM   #20
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by Hellmark View Post
No, and I have been using that to make due.



I don't remember which version, but an older version I used had a ToC Editor, that would pop open a window, and add/remove entries, rename entries, view nesting levels, etc. I found a copy I still had of 0.2.3, and that version had the ToC Editor I'm talking about.

Window was pretty simple, Was a nested tree list view of the every bit of text that was set as a header, nested by size, and a checkbox to the right. Check boxes were in the ToC, and unchecked boxes were not. There was also a checkbox at the bottom of the window for viewing only ToC entries, so if you had that checked, everything that wasn't in the ToC was filtered out. Also, if you double clicked on an entry, you could rename that entry, without modifying the actual header.

While I seem to be mistaken, as I was thinking that there was a way to add a ToC entry without creating a header, it was far more serviceable than the Generate ToC from Header's option we get now. You kinda get the window in 0.4.x and 0.5.0, when you get the Header Selection window after you get the Generate ToC button. However, that window doesn't give you the option for renaming. Also, in my opinion it is slightly less intuitive tose, especially if you do not have the ToC view up normally. For instance, if I want to add or drop a ToC entry, with the older editor, I'd click on ToC Editor, or press F7, and just hit the check box. Now, I have to open ToC View, click Generate ToC, select those I want to be selected, and then hit ok. If you already have a ToC, and you're wanting to edit it, you may not always think that Generating a new one is what you need to do. Plus, with the loss of renaming, that has to be done by editing toc.ncx.
Thanks for the further explanation. I'll have to look at the old editor.

I think the current approach gives quite a lot of flexibility (even if it could use some improvement), although you do need to use it slightly differently. Personally I always keep the TOC window open (its great to type something in the toc.ncx file and see it instantly in the TOC window ) so using it to jump chapters as theducks says is quite useful (oh, the next version will sync the selected entry in the book browser to your tab to make it even more useable). And Generate TOC (think of it as Re-Generate TOC) from Headings still gives the functionality you mention, albeit not in one click if your TOC isn't open.

There is some functionality that could be added to the active TOC - renaming for one, possibly changing levels or even re-arranging (though that gets very messy with multiple chapters per file). And for the Generate, it could be expanded to include already existing TOC entries, Regex patterns, etc. But flexibility can bring confusing. But there are still bugs to sort out with merge/split of files and the toc.ncx file too...
meme is offline   Reply With Quote