Rainie3535 / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Edit Table of Contents without needing Generate TOC. #1185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Feature request - Direct TOC editing

Why would the user need it?

Even though Sigil allows you to automatically generate a TOC directly from 
headings marked inside a book, not always this can prove usefull, since some 
books have specific CSS formatting that do not include headings. For instance, 
a user can create headings inside a book for some chapters, but might only be 
interested in showing certain chapters or main chapters in the TOC. Also, some 
title chapters can be too long and the user might want to edit them in the TOC 
but maintain the original title chapter inside the book. Finally, some users 
(like myself, for instance), have multiple files and wish only that certain 
files show up in the TOC instead all of them. That being said, this could be an 
interesting feature to have, if possible.

How would it be used:

The user would be able to double click each TOC entry and rename it directly in 
the TOC pane. Also, a browse button (...) could be available if the user would 
like to change the original TOC file to a new one. Also, the user could build 
the TOC manually, by clicking on a plus (+) button on the bottom of the TOC 
pane to add a new line, where a new blank line, with a blinking cursor would 
appear and he (or she) would be able to write the TOC name entry and select the 
TOC file, or a minus (-) button to remove the TOC entry. The user would still 
be able to automatically generate the TOC entries by using the headings, being 
advised that the manually inserted TOC would be replaced by the automatic one. 
A manual reorder facility could also be provided.

Thanks :)

Original issue reported on code.google.com by hgpest...@gmail.com on 20 Jan 2012 at 3:32

GoogleCodeExporter commented 9 years ago
A few books I've edited didn't have anything for the start of a chapter, so a 
header just wouldn't work. It used to be the ToC editor would allow you to add 
in and even edit the name of the entry. One book I'm working on, I'm sticking 
to the original appearance for how they labeled the chapter headers, but want 
to have the descriptive subtitle only for the ToC entry. With 0.2.X and before, 
I could do that, but now with the newer ToC view, I cannot make any real 
changes.

The work around I've had to do since upgrading is create a header at the start 
of each chapter that says exactly what I want in the ToC, generate the ToC, 
then set everything back to how it should be.

The only other way, is to generate the ToC using the really long header, and go 
in and edit toc.ncx by hand. Which, Sigil now warns against, so in a way you're 
limiting what Sigil can do for it's users. You took away a feature, and then 
are telling people "you probably shouldn't do that unless you really know what 
you're doing" if they attempt to get the job done using what is left at their 
disposal.

Original comment by hellmark on 25 Jan 2012 at 10:42

GoogleCodeExporter commented 9 years ago
TOC entries seem to be a popular (see issues 211, 876, 1200 at least, in 
addition to this one) issue. At the moment you have to completely rewrite the 
formatting - changing the heading levels to gain the correct indentation for 
the TOC, adding 'title' attributes to modify the text of the entries then 
performing formatting based on classes to override the - potentially incorrect 
- formatting provided by the heading tags. The automatic generation is nice - 
but the inability to adjust the structure it assumes has caused some very odd 
TOC entries. The other option, of course is to play with the TOC file manually, 
which is fine until the day you accidentally run an auto-generate and erase all 
your manual entries. 
The option specified here would be my preferred choice - an actual structured 
interface to allow controlled manipulation of the TOC entries; although the 
ability to include anchor points ('a' tag with an 'id' attribute) would also be 
useful, since many books use this to mark their chapter points.

Original comment by kintoshm...@gmail.com on 24 Mar 2012 at 6:10

GoogleCodeExporter commented 9 years ago

Original comment by meme90...@gmail.com on 25 Mar 2012 at 7:13

GoogleCodeExporter commented 9 years ago
Issue 1152 has been merged into this issue.

Original comment by meme90...@gmail.com on 28 Mar 2012 at 6:34

GoogleCodeExporter commented 9 years ago
issue 211 was merged into this issue.

Original comment by meme90...@gmail.com on 29 Mar 2012 at 4:42

GoogleCodeExporter commented 9 years ago
I wanted to add something to this feature request. I see a request to adding 
the TOC and generating a TOC from headers, however I have a few more requests 
that would make editing easier. I work at an epub distribution company and see 
these issues daily:

1. Deleting/Adding a TOC will also delete/add the reference in the TOC.NCX and 
also re-order the "playorder" tags within the NCX file. Gaps in the playorder 
can causes errors with some partners.

2. A feature where you can create an auto-generated HTML TOC file within the 
epub based on the meta TOC would be amazing. This would help any Amazon people 
since Amazon does not really have a meta TOC. This feature would also add the 
toc reference tag within the <guide> section in the OPF.

Original comment by nathan.p...@gmail.com on 5 Apr 2012 at 5:45

GoogleCodeExporter commented 9 years ago
These are different requests than the original request - its much easier to 
deal with requests if there is one per issue.

1.  The toc is toc.ncx, so updating the toc means updating toc.ncx
2.  0.5.3 has a right click option on toc.ncx to Renumber Playorder already
3. A feature request for an inline toc already exists (and will be in the next 
version)

Original comment by meme90...@gmail.com on 5 Apr 2012 at 6:03

GoogleCodeExporter commented 9 years ago
For 1 - if you mean that deleting document text that contains an id referred to 
by  toc.ncx should remove the references to that id/entry from the toc.ncx, 
then you can raise a separate issue on this (if this isn't happening as you 
expect).  There is a separate issue about split not updating the toc 
references, but that's been dealt with separately and its fix may help here.

Original comment by meme90...@gmail.com on 5 Apr 2012 at 7:21

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 19 May 2012 at 3:20

GoogleCodeExporter commented 9 years ago
Hi!
I loved  a feature removed since the 0.3.4 version of Sigil.
For me is very usefull to edit/modify the TOC titles directly from the TOC 
editor. Why this feature was removed? please add it back!!!

Original comment by signorin...@gmail.com on 20 Aug 2012 at 8:20

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 18 Sep 2012 at 7:33

GoogleCodeExporter commented 9 years ago
Issue 1200 has been merged into this issue.

Original comment by daveheil...@gmail.com on 20 Sep 2012 at 7:16

GoogleCodeExporter commented 9 years ago
Issue 1848 has been merged into this issue.

Original comment by daveheil...@gmail.com on 16 Dec 2012 at 6:21

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 4 Jan 2013 at 8:47

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 24 Jan 2013 at 7:52

GoogleCodeExporter commented 9 years ago
Hey guys!
So i was editing an Epub that already has a table of contents in the toc.ncx 
format. However what i wanted to do was add more subheadings into this toc.ncx 
file. 

My process was to just to coppy paste an already existing code for a subheading 
where i wanted it and just change the name and the navpoint id. Upon uploading 
the file to where i want to view it online, the table of contents is cut short 
and all the indentations are screwed up despite me copying and pasting the 
subheader with a consistent indentation.

Essentially the issue is the TOC does not show up entirely and the indentation 
is not consistent. 

Does this make sense to anyone and can anyone provide me any further 
advisement? 

Original comment by sonamtan...@gmail.com on 17 Jan 2014 at 6:40