![]() |
Quote:
Both the epubs had relatively simple stylesheets with no overly complex selectors. I really could see no reason for having 3 stylesheets. |
Quote:
|
Quote:
|
Please provide a working test case that shows this. The only known bug (already fixed in master) is that the removal will fail if after removing ALL unused selectors, it would leave a completely empty stylesheet.
BeckyEbook already reported that bug and it has already been fixed. To workaround it, simply add a css comment someplace at the top of the css stylesheet so that it would not end up completely empty. If you are seeing a different bug, I could really use a testcase that shows the bug. Thanks, KevinH Quote:
|
1 Attachment(s)
Quote:
|
Sigil only searches the stylesheets for selectors that are actually linked to an xhtml file.
None of your stylesheets are linked to anything and therefore none of the selectors are tested (they can only be tested to be present in an xhtml file that links to them). If you want to see which stylesheets are used or not, simply use the Reports CSS files, which will tell you none of your css files are actually used (linked into any xhtml file). If I link them all in, running Remove Unused Selectors would remove all of the selectors inside each stylesheets leaving them all completely empty (except for your first one as @page is not a selector). This is exactly the bug I just explained that was already found and fixed in master. So link all your stylesheets into the one xhtml file. Edit each stylesheet and add /*css*/ to the top of each css file so that they are not left blank (to workaround the bug that has already been fixed in master) and give it a try. You will see all true selectors are now removed (leaving just the comment) and the first one still has @page since it is not a selector. Hope this helps, Kevin |
Okay, I understand now. Adding the comment works as you describe. Thanks for your help.
|
Quote:
I'm back now, catching back up on updates. The new sigil release is currently in the process of building. |
Thank you for your so helpful work.
"Un seul être vous manque et tout est dépeuplé" :) |
While waiting for Arch/Manjaro Linux to release Sigil 1.5.1 to their repositories I compiled it form source myself. Everything seems to work OK, but later I noticed that there is some other stuff on the GitHub: sigil-query, cssparser, dulwich, sigil-gumbo etc. Is any significant functionality missing from Sigil without those modules?
|
If you built Sigil and it works, then you built sogil-gumbo. It's integral and Sigil will not build or function at all without it. The only two pieces you would even have a say in whether or not you could build/use Sigil without them is css-parser and dulwich. Both provide functionality that would be missing from Sigil without them. The Arch package (which has already been updated to 1.5.1) includes all of the things you mentioned as required dependencies.
To be perfectly clear: only two of the items you mentioned are actually external modules (css-parser and dulwich are both python modules that Sigil requires for functionality). Everything else is integral C/C++ source code included with Sigil. |
>No one is finally dead until the ripples they cause in the world die away... -- Reaper Man -- Terry Pratchett
Something of a theft from Sartre's "No Exit". |
Ummm... :blink:
|
| All times are GMT -4. The time now is 10:54 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.