Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2025, 11:00 PM   #1
jwes
Connoisseur
jwes began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Jul 2023
Device: none
Delete Unused Stylesheet Selectors selects all my styles.

Title says it all.
Attached Files
File Type: epub sqrt.epub (2.2 KB, 20 views)
jwes is offline   Reply With Quote
Old 05-29-2025, 02:08 AM   #2
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 824
Karma: 2536588
Join Date: Jan 2017
Location: Poland
Device: Various
Your href is incorrect. Letters are case-sensitive.

Change: styles -> Styles

Code:
href="../Styles/Style0001.css"
BeckyEbook is online now   Reply With Quote
Advert
Old 05-29-2025, 07:58 AM   #3
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: 8,603
Karma: 5703586
Join Date: Nov 2009
Device: many
Your incorrect/broken links are why no stylesheet selectors are in fact used so Sigil is correct here.

You can use Sigil itself to create the links to your stylesheets from your xhtml files to help prevent typing errors like yours.
KevinH is offline   Reply With Quote
Old 05-29-2025, 01:06 PM   #4
jwes
Connoisseur
jwes began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Jul 2023
Device: none
Quote:
Originally Posted by KevinH View Post
Your incorrect/broken links are why no stylesheet selectors are in fact used so Sigil is correct here.

You can use Sigil itself to create the links to your stylesheets from your xhtml files to help prevent typing errors like yours.
Thank you. What confuses me is that the styles are applied and the report 'Classes Used in HTML Files' shows the proper styles.
jwes is offline   Reply With Quote
Old 05-29-2025, 01:28 PM   #5
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: 8,603
Karma: 5703586
Join Date: Nov 2009
Device: many
You are on a Windows box or on a MacOS box with a case-insensitive file system right? Windows and Macs do try to preserve case (remember the way you really typed it) but is still case insensitive underneath. (so styles maps to Styles and visa-versa).

On a OS that has a case sensitive file system, this is not true (MacOS if the user enables it, Linux all the time, etc).

The key is that by definition, hrefs are case sensitive and "styles in not equal to "Styles" which is true for all url path elements across the web.

I have never liked case insenstive file systems but Windows still seems to be stuck in the past for this. So on my MacOS machine, the first thing I do is reformat the disk to be case-sensitive so that errors like these can be easily caught.

If your epub is ever published and read on a device that is Linux based underneath (read that most of them) then it would be broken. It just happens to work on Windows/some Macs but in reality that is because the file system maps from one to other. The web url spec is clear on how it should be handled by software and browsers.

My guess is that epubcheck would have detected this error. That is a plugin well worth using.

Last edited by KevinH; 05-29-2025 at 01:35 PM.
KevinH is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Delete unused stylesheet classes" problems with overloaded styles AlanHK Sigil 82 01-24-2021 11:10 AM
alphabetizing stylesheet, check book, and remove unused styles rjwse@aol.com Calibre 9 01-29-2020 06:48 PM
Move incode-styles to css-stylesheet with a tool? patrik Workshop 3 03-18-2017 02:14 PM
Cleaning a stylesheet of unused styles roger64 Sigil 49 06-13-2012 05:23 AM


All times are GMT -4. The time now is 05:20 AM.


MobileRead.com is a privately owned, operated and funded community.