|
|
#1 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 194
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
NAV preference?
Recently the way the nav is handled was changed, before it was the 2nd file in the book after the cover, now it's by default taken out of the reading order (linear="no") and placed at the end of the book (last file in the book browser).
But, most of the books I work on are required to include the nav in the reading order, and place it at the beginning of the book as the 2nd file, immediately following the cover (it's a requirement for selling on Amazon). I made a saved search to delete the linear="no" and to modify the spine order in the opf, but this does not affect the file order in the book browser window and I can't find a way to automate moving the file to the top of that list. I prefer the book browser to match the spine because it makes it easy to quickly verify that everything is in the right place without going to the bottom of the opf. Is there a way to automate moving the file in the book browser that I haven't thought of? If not, would it be possible to add a preference, the same way you can say "new files are epub 3" that says "nav is automatically included in reading order / placed after the cover" like the previous default? If this is actually more complicated than it seems or if there is an underlying reason for it then no worries, just asking in case there is a simple solution. |
|
|
|
|
|
#2 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,522
Karma: 21099999
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Do you have Sigil set for ePub 3, or ePub 2? I think Sigil automatically places the nav in the correct location??
|
|
|
|
|
|
#3 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,257
Karma: 7640672
Join Date: Nov 2009
Device: many
|
You can drag and drop the nav anywhere you want in BookBrowser to change the spine order (this works for all xhtml files btw). There are also new epub3 tools to remove the nav from the spine completely, add the nav to the spine as non-linear, add the nav to the spine normally.
So you control both where the nav appears in the spine order and how. PS, the nav need not be part of the reading order as it is designed to be machine readable at all times, and instead many people create an HTML TOC xhtml file and place it second so that they can completely control its appearance. There is a Sigil Tool to do just that. The nav is then removed from the spine or moved to the end with linear set to no. The latter has long been Sigil's default for the nav (i.e. at the end with linear = "no"). Last edited by KevinH; 11-19-2026 at 04:04 PM. |
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,962
Karma: 212736643
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm fairly certain that Amazon does not require the NAV to be the second document. I could be wrong though. More likely they require an html toc immediately following the cover. That's what it has been in the past, anyway. Some people used to try and make one file do the duties of both the NAV and HTML toc. I've always thought that was a mistake.
Last edited by DiapDealer; 11-19-2026 at 04:44 PM. |
|
|
|
|
|
#5 | ||||
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 194
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
Quote:
This is pure laziness on my part trying to avoid having to do that step I recently worked on several books in a row with dozens of chapters, and dragging the nav to the top of 97+ files was... annoying. ![]() Quote:
There have been a few very rare cases when I needed something different (very complicated styling or extra info or less info) in the toc compared to the nav, in that case I made both, but usually it's pretty basic. The CSS styles are overridden when you display the nav via the reading app navigation, because it uses whatever the reading app says, but there is no conflict between those modes. Most of the books I work on are novels or non-fiction (like essays or biographies) so the toc is pretty straightforward. Actually I think I need exactly the opposite of the Sigil Tool you mention (I didn't know about that one). I almost never start from an empty epub file so I hadn't noticed the Sigil defaults, I usually am working on a book that was set up for print also, and until very very recently, all my new files came out with the nav at the top and no linear defined in the opf (so, inline). It might be some kind of interaction that was triggered on my side but nothing has changed in my preparation / export process and I'm fairly certain it was with the version before last of Sigil that the nav started showing up at the end in my exported files. Maybe some kind of "clean up on open" process that was activated? Like I said, not the end of the world if it's going to stay this way from now on, but I just thought I'd ask in case there *is* some easy solution. Quote:
|
||||
|
|
|
|
|
#6 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,962
Karma: 212736643
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
No, there's nothing wrong (spec-wise) with doing both toc and nav with the same file, I've just always found it easier to keep them separate. If only because of the ability to auto generate both after making changes. I just find manually tweaking the nav to make it work as the toc to be a tad tedious is all.
|
|
|
|
|
|
#7 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,257
Karma: 7640672
Join Date: Nov 2009
Device: many
|
You can always just directly edit the spine in the OPF to move the nav.
FWIW, if the nav is not part of the spine, it is moved to the bottom. Perhaps that is what you are seeing? |
|
|
|
|
|
#8 | |||
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 194
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
Quote:
Quote:
Starting recently, when I open a newly exported epub in Sigil, the nav is at the end of the file list in the book browser, and is not in the spine. Before, when I opened a new file, the nav was in the 2nd place in the file list, just after the cover. I believe this changed when the new epub 3 tools were added "Remove nav from reading order, Add nav to reading order, Add nav to reading order with linear=no". I just now did a fresh export to check exactly what is the placement of the nav before any other actions: - Export file, open in Sigil: nav absent from spine, and at the bottom of the file list in the Book Browser. - Drag nav to the top of the file list in the BB: it is not added to the spine. - Epub 3 tools > Add nav to reading order: nav is added to the spine, at the end, and returns to the bottom of the file list if it's not already there, in the book browser. - If I edit the spine (without touching the Book Browser), to put the nav in 2nd place, the file list order does not change in the BB. - I also created a new empty epub to compare, in that case the nav is in the spine, at the end (but there is only one xhtml file, so...) and marked "linear=no". But I rarely start from a completely new epub file so I don't know if this has changed. I reinstalled Sigil 2.7.5 (pre Nav tools) to check: when I open the same newly exported file, before I do anything else, the nav is in the 2nd place in the file list, just after the cover. (it is not in the spine there either though). Ideally I would like to find a way to automatically go back to the previous default, with the nav right after the cover in the file list, without needing to drag the file in the Book Browser, even if I keep the saved search to add it to the spine (this is not a problem for me, I have a whole series of saved searches I do on every book, I will not even notice one more or less). My ideas were : - saved search to edit the spine, removing "linear=no" if nessary and moving the nav to the 2nd place; but this does not affect the BB, unless I am missing something. - if possible / not complicated, maybe make this a user preference in Sigil, the same way we can choose which version for new files? The possibility to choose between the previous default behaviour (nav after cover + in reading order) or the new default behaviour (nav at the end, not in reading order). - possible secret third option which I have not thought of but is obvious to everyone else (you never know)? If there is no other way, I'll just keep dragging the nav in the file list window, but I always think there might be some very easy and obvious solution which I have not thought of on my own, so...
|
|||
|
|
|
|
|
#9 | |
|
2B || !2B
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 855
Karma: 328556
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Quote:
|
|
|
|
|
|
|
#10 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,257
Karma: 7640672
Join Date: Nov 2009
Device: many
|
And, you can drag and drop in that Reading Order dialog as well.
@Mister L, your ideas are better suited to plugins. Build plugins that do what you want and then launch them with a custom Automation list. Adding increasingly complex settings and gui entries to set and change them are not in the cards for Sigil. If there is a repeated task you want done, automation lists and plugins are the way to go. |
|
|
|
|
|
#11 | ||
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 194
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
Thank you very much, this is much better than dragging especially for books with 97 chapters. I don't think I've ever used that, usually I just drag the files.![]() Quote:
|
||
|
|
|
|
|
#12 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,257
Karma: 7640672
Join Date: Nov 2009
Device: many
|
You can always manually edit the opf, then run any tool that forces BookBrowser to Refresh itself as BookBrowser has no idea you edited the order of the OPF spine behind its back.
I will play around to see what if anything will trigger a BookBrowser Refresh without changing anything else safely and post here if I find anything. |
|
|
|
|
|
#13 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 194
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
|
|
|
|
|
|
|
#14 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,257
Karma: 7640672
Join Date: Nov 2009
Device: many
|
Unfortunately, the only way to force a Refresh of BookBrowser and not change things in the end (except for the spine order which you edit the opf) is to Insert a Blank HTML and then immediately delete it.
From a keystrokes perspective, you would be better off just using the "Change Reading Order" context menu than adding and then removing a Blank HTML (or Stylesheet or Javascript). |
|
|
|
|
|
#15 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55,963
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
For my uses, I end up with an non-linear ePub3 navigation document, a NCX document for ePub2 compatibility and a HTML Table of Contents documents. This came from editing ePubs for other people where they often wanted a pretty formatted HTML ToC and it was simply easier to generate a HTML ToC and then edit it for the desired look since much of the desired formatting does not work in an ePub3 navigation document. Things like authors who want the book title with a cover thumbnail in the ToC or one memorable ToC where the author wanted the chapter entries to look like text messages between the two main characters.
The basic workflow make sure the headings/titles are right and generate the nav.xhtml, use the ePub3 Tools to generate the NCX/Guide and then the Table of Contents tool to generate a HTML ToC which, if needed, can then be edited to match the author's request as closely as possible. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Preference settings always ignored | rmtew | Conversion | 2 | 11-11-2013 03:45 PM |
| preference scope | BetterRed | Calibre | 2 | 10-01-2013 05:25 AM |
| No Preference or Help Button on Calibre (v. 0.8.41) | Toffee | Devices | 2 | 03-05-2012 09:39 AM |
| Publishers Preference Poll | CJJ | General Discussions | 24 | 02-12-2012 02:29 PM |
| view preference | cybmole | Calibre | 2 | 01-25-2011 04:26 PM |