View Single Post
Old 02-12-2026, 05:47 PM   #143
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,333
Karma: 6686152
Join Date: Nov 2009
Device: many
I have pushed a debug change to my personal repo master for Sigil (http://github.com/kevinhendricks/Sigil) if anyone who builds their own on Windows has the time to help collect debug output so we can see what is actually going on.

Do not forget to set Sigil's debug environment variable (SIGIL_DEBUG_LOGFILE) to the full path to an empty log file to collect the debug output to a file.

Then open Sigil, load your epub, and follow the exact set of instructions provided above just once. Then close out of Sigil and post the debug output here.

Thanks!

For your reference, here is my annotated Linux debug output when editing the public domain Alice epub and going to chapter 7 and scrolling half way down and clicking in Preview to have CV sync up, then using BookBrowser to edit the main css file and then by adding spaces and removing them.


Code:
Debug: Caching:  "OEBPS/Text/Section0001.xhtml"
Debug:      name:  "html"  index:  1
Debug:      name:  "body"  index:  -1
Debug: Caching:  "OEBPS/Text/Section0001.xhtml"
Debug:      name:  "html"  index:  1
Debug:      name:  "body"  index:  -1
Debug: Caching:  "OEBPS/Text/Section0001.xhtml"
Debug:      name:  "html"  index:  1
Debug:      name:  "body"  index:  -1

# The above is opening a blank epub
# then I asked it to load Alice in Wonderland

Debug: Caching:  "OEBPS/Cover.xhtml"
Debug:      name:  "html"  index:  1
Debug:      name:  "body"  index:  -1

# Then I picked chapter 7 at random and loaded it

Debug: Caching:  "OEBPS/Chapter-07.xhtml"
Debug:      name:  "html"  index:  1
Debug:      name:  "body"  index:  -1

# Then I moved down in Chapter 7 and clicked in Preview
# And then used BookBrowser to open styles.css
# and here is where the Preview location is first stored

Debug: Caching:  "OEBPS/Chapter-07.xhtml"
Debug:      name:  "html"  index:  1
Debug:      name:  "body"  index:  35
Debug:      name:  "p"  index:  0
Debug:      name:  "#text"  index:  -1

# The following is when adding and removing blanks in styles.css
# notice Preview's location does not change.
# It remains the p tag that is the 35th (starting from 0) non-text child of the body tag.

Debug: Caching:  "OEBPS/Chapter-07.xhtml"
Debug:      name:  "html"  index:  1
Debug:      name:  "body"  index:  35
Debug:      name:  "p"  index:  -1
Debug: Caching:  "OEBPS/Chapter-07.xhtml"
Debug:      name:  "html"  index:  1
Debug:      name:  "body"  index:  35
Debug:      name:  "p"  index:  -1
Debug: Caching:  "OEBPS/Chapter-07.xhtml"
Debug:      name:  "html"  index:  1
Debug:      name:  "body"  index:  35
Debug:      name:  "p"  index:  -1

Last edited by KevinH; 02-12-2026 at 06:13 PM.
KevinH is offline   Reply With Quote