From 00cd27b01fbeb2c7671618bb062f555930abaacd Mon Sep 17 00:00:00 2001 From: Kevin Hendricks Date: Sun, 11 Aug 2024 20:00:53 -0400 Subject: [PATCH] make sure url fragment values are unique for nav, ncx and toc --- src/OEBPS/Text/advanced_topics.xhtml | 8 +- src/OEBPS/Text/toc.xhtml | 9 +- src/OEBPS/nav.xhtml | 12 +- src/OEBPS/toc.ncx | 232 ++++++++++++++------------- 4 files changed, 141 insertions(+), 120 deletions(-) diff --git a/src/OEBPS/Text/advanced_topics.xhtml b/src/OEBPS/Text/advanced_topics.xhtml index 7e1f2fe..7b409ed 100644 --- a/src/OEBPS/Text/advanced_topics.xhtml +++ b/src/OEBPS/Text/advanced_topics.xhtml @@ -10,7 +10,7 @@

Advanced Topics

-

Using Sigil's Environment Variables

+

Using Sigil's Environment Variables

Some rarely needed settings in Sigil are controlled by "Environment Variables". An environment variable is a user-definable value that can affect the way running processes will behave on a computer. See https://en.wikipedia.org/wiki/Environment_variable> for more information on setting and using environment variables on your computer.

@@ -51,7 +51,7 @@
-

Using Sigil's Template Files

+

Using Sigil's Template Files

Many users of Sigil develop their own versions of starting xhtml, and css files that they would much prefere using over what Sigil defaults to. To address these concerns, Sigil has added the ability to load user defined starting xhtml, and css files. To create these "templates" simply edit any blank xhtml or css page to your liking and then save it to your Sigil Preferences Location with one of these specific filenames. When you are a Blank HTML or Blank CSS files using Sigil's BookBrowser, sigil will use your templates instead. To prevent their use simply rename or delete them.

@@ -112,7 +112,7 @@
-

Embedding a PDF inside an Epub3

+

Embedding a PDF inside an Epub3

Many e-readers employ the Adobe Digital Editions Software Development Kit as their underlying rendering and display engine. Many other employ Web Browser-based display engines. All of these e-readers have the capability to include Adobe PDF documents inside their epub.

@@ -155,7 +155,7 @@
-

Customizing Sigil with Qt QSS

+

Customizing Sigil with Qt QSS

Qt, the Graphical User Interface (GUI) library used by Sigil supports its own user css-like styles called QSS that allow the user to modify many aspects of Sigil to their preference. Sigil when first launched will automatically load any QSS styles it finds in the QSS stylesheet named qt_styles.qss found in your Sigil Preferences Location folder.

diff --git a/src/OEBPS/Text/toc.xhtml b/src/OEBPS/Text/toc.xhtml index 64088c0..b1454f3 100644 --- a/src/OEBPS/Text/toc.xhtml +++ b/src/OEBPS/Text/toc.xhtml @@ -249,13 +249,16 @@
Advanced Topics +
diff --git a/src/OEBPS/nav.xhtml b/src/OEBPS/nav.xhtml index 69ff3f9..2c5d0c0 100644 --- a/src/OEBPS/nav.xhtml +++ b/src/OEBPS/nav.xhtml @@ -19,6 +19,9 @@
  • Copyright
  • +
  • + Table Of Contents +
  • Introduction
      @@ -279,13 +282,16 @@ Advanced Topics
      1. - Using Sigil's Environment Variables + Using Sigil's Environment Variables +
      2. +
      3. + Using Sigil's Template Files
      4. - Using Sigil's Template Files + Embedding a PDF inside an Epub3
      5. - Embedding a PDF inside an Epub3 + Customizing Sigil with Qt QSS
      diff --git a/src/OEBPS/toc.ncx b/src/OEBPS/toc.ncx index 1c00900..a023629 100644 --- a/src/OEBPS/toc.ncx +++ b/src/OEBPS/toc.ncx @@ -21,468 +21,474 @@ Copyright + + + Link to the actual Nav document + + + - + Introduction - + What’s New - + About Sigil - + About EPUB - + Installation - + Features - + User Interface - + Preferences - + Code View - + Preview - + Icon Themes - + Main UI - + Basics - + Security - + Validation - + Advanced - + Opening and Saving Files - + Code View - + Preview - + Mimicking e-ink screens - + Book Browser - + Delete - + Rename - + ReGex Rename - + Move - + Merge - + Sort - + Link Stylesheets - + Link Javascripts - + Add Semantics - + Open With - + Save As - + Add Blank HTML File/Stylesheet/SVG Image - + Add Copy - + Add Existing Files - + Select All - + Validate With W3C (CSS stylesheets only) - + Cover Image (image files only) - + Font Obfuscation (font files only) - + Renumber TOC Entries (.ncx files only) - + Metadata - + Add Cover - + Table of Contents - + Validation - + Spellcheck - + Images, Video, Audio - + Special Characters - + Using Checkpoints to Quickly Save/Restore Epub State - + Splitting and Merging - + Find & Replace - + What to Search For - + Saved Searches - + Clips - + Context Menu - + Clip Editor - + Clip Bar - + Clips Window - + Context Menu - + Keyboard Shortcuts - + Main Menu - + Clipboard History - + Links and IDs - + Styles - + Indexes - + Reports - + External Editors - + Preferred External Xhtml Editor - + Using the Page Inspector - + Manage Plugins - + Running Plugins - + Automate Lists - + Creating and Editing Automate Lists - + Automate Lists Are Simple Text Files - + Running an Automate List - + Customize the User Interface - + Customizing the Toolbars - + Customizing the Panels - + Customizing the Icons @@ -490,175 +496,181 @@ - + Advanced Topics - + Using Sigil's Environment Variables - + - + Using Sigil's Template Files - + - + Embedding a PDF inside an Epub3 - + + + + + Customizing Sigil with Qt QSS + + - + Tutorials - + Getting Started With EPUB - + Prepare Your File For Sigil - + Open Your File With Sigil - + Save Your EPUB File - + Add the Author and Title - + Add a Cover Image - + Create Files For Each Chapter - + Identify Your Chapters - + Generate A Table of Contents - + Create Links and Notes - + A Quick Introduction To Code View - + Check For Spelling Mistakes - + Edit With Find & Replace - + Use Stylesheets - + Include Custom Fonts - + Advanced Find & Replace – Regex - + Regular Expression Reference - + Tips - + FAQ - + Common Questions - + Where to Get Help - + Using Sigil - + Formatting and Styles - + Contributing to Sigil