MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Sigil-1.5.1 Released (https://www.mobileread.com/forums/showthread.php?t=338327)

DiapDealer 03-26-2021 11:10 AM

Sigil-1.5.1 Released
 
Sigil-1.5.1

Sigil-1.5.1 represents a mix of bug fixes and new features for both epub2 and epub3.


New Features:
  • Can now handle single xhtml file sizes over 2megabytes in size via its own URL Schemehandler
  • Will now highlight matched open close tag pairs while editing in Code View
  • Delete open close tag pairs (Remove Tag Pair)
  • Default selection of text for basic CodeView formatting including bold, italic, etc based on cursor position
  • Shift double-click (and alt double-click) on a tag to select tag contents (including tag)
  • Expanded split on Sigil Split Marker capabilities to work better with nested tags
  • Added a new C++ CSS Parser and Query engine that works with Sigil's version of Gumbo
  • The Reports tool for "CSS Selectors" now lists all CSS selectors not just classes
  • The "Delete Unused Styles" tool now handles all unused CSS Selectors not just classes
  • The Reports for "CSS Selectors" and "Delete Unused Selectors" now handle selectors in XHTML Style tags
  • Added ability to load text and csv files to Group Saved Searches to automate lists of replacements
  • Reworked the Metadata Editor to be much more Human Readable with tooltips to show xml tags
  • Added semantic code to the descriptive field in Add Semantics as a learning aid (Thank You BeckyEbook!)
  • Checkpoint ManageRepos now has the ability to sort the repo table by any column (Thank You BeckyEbook!)
  • The Sigil User Guide has be completely reworked to bring it to Sigil 1.5.0+ levels

Bug Fixes:
  • Fix issue with custom ncx names in non-standard empty epub layouts
  • Fix Import Text to properly add ncx if missing for epub2
  • Fix issue with "Delete Unused Styles" not properly detecting all used selectors
  • Fix issues with repeated use of Mend and Prettify on bare text in structural tags
  • Fix extra line issue with Link to Stylesheet (Thank you BeckyEBook!)
  • Fix bug in id assignment in EPUB3 Metadata editor
  • Fix bug in trailing slash in Move To Folder paths
  • Fix bug in spelling of Columbia->Colombia in Languages (Thank you Tex2002ans!)
  • Fix bug in Clip Editor pasting of multiple clips
  • Fix bug in PerformCSSUpdates related to quoted string in content: values
  • Fix bug related to iframe handling when loading Preview
  • Fix typos in XMLEntities descriptions (Thank you BeckEbook!)
  • Fix numeric table alignment to align right in multiple tables (Thank you BeckyEbook!)
  • Fix bug in Add Existing not properly using QProgressDialog for long import
  • Removed long deprecated and now invalid use of "altlang" in EPUB3 Metadata Editor

---------------------------------------------------------------------------

Please check the Sigil Wiki for important Sigil support links, additional resource downloads, and platform-specific trouble-shooting tips/requirements.

Mac users should still download and install ActiveState's ActiveTcl Community Edition to utilize plugins that use Tk/Tcl GUIs. More here.
Mac users should also check out the wiki entry on the New Release File Format

The latest Sigil user guide can always be downloaded from its own repository.

PGP Fingerprint

The binary downloads (and source) can be found as assets at the bottom of The Sigil Github Release page.

DiapDealer 03-26-2021 11:11 AM

Might seem silly to do this all over again for basically the same release, but I've closed the beta one, so we need a thread for future issues/questions to be posted to.

Sigil 1.5.1 is not considered beta.

parvatiquinta 03-28-2021 08:02 AM

I have just started tinkering with 1.5.1 but the new remove tags feature is amazing! Thank you so much :)

TStadtmüller 03-28-2021 09:46 AM

Linux install script (tested on Ubuntu 20.04.2 LTS)
 
1 Attachment(s)
Dears,

please see attached bash shell script "sigil_build_on_linux.txt".

To run in a terminal, save locally and make executable with 'chmod a+x'

Usage: sigil_build_on_linux.sh [-option]
-n | noaction: show the script command flow
-a | action: execute the script commands in order to
1. check if no local installation exists
or a newer version is available online
2. create build structure in the current directory
3. download and install required build tools
4. download most recent sources from git hub
5. build from sources
6. install (default directory '/usr/local')
7. create desktop icon
-b | bashonly: install/update required tools
-d | download: download sources to current directory
-r | version: check version (installed vs. remote)
-u | uninstall: remove an existing installation
-v | verbose [n] = show details level n=0-2

Have Fun! :)
Thomas

Turtle91 03-28-2021 12:45 PM

1 Attachment(s)
Thanks for all the hard work guys!! :iloveyou:

Minor issue found with the report function - for some reason it does not show a "Matched Selector" (or "found In") in the Classes Used report for my <blockquote>.

When I ctrl-click on the class it takes me to the correct part of thee css sheet, and the style is displayed properly in the preview pane. Any ideas????

KevinH 03-28-2021 01:10 PM

Yes because it shows only classes used in that report. Your actual selector is not just blockquote.write it has a descendent element and class.

To see if that complex descendent selector is used you need to use the CSS Selectors report.

KevinH 03-28-2021 01:47 PM

If you add a blockquote.write only in the css (no descendent additions), then classes used report should detect it being used. Does it?

Turtle91 03-28-2021 03:10 PM

Quote:

Originally Posted by KevinH (Post 4107062)
If you add a blockquote.write only in the css (no descendent additions), then classes used report should detect it being used. Does it?

Yes it does. That's different from previous versions, so I was wondering.

KevinH 03-28-2021 03:50 PM

Yes, the previous version ignored the descendant classes and said it was used even though it may not have been since having that element with that class is not enough to know if that selector was used or not.

The new version does not say "used" if it is not clear. It then punts to the CSS Selectors used report for a complete test of the full exact selector. This prevents "Delete Unused Selectors" from suggesting you can remove something that is in fact really used.

bravosx 04-02-2021 10:32 AM

What has changed in version 1.5.1 after a recent fix due to MathML / MathJax that all icons are in only one bar and partially hidden. Previously, I had icons in two bars and saved clips in the third. What do I need to change to get back to the previous state.

Sorry for the English language, but it is not my language and I was assisted by translator.

Regards
bravosx

DiapDealer 04-02-2021 10:59 AM

Quote:

Originally Posted by bravosx (Post 4108656)
What has changed in version 1.5.1 after a recent fix due to MathML / MathJax that all icons are in only one bar and partially hidden. Previously, I had icons in two bars and saved clips in the third. What do I need to change to get back to the previous state.

Sorry for the English language, but it is not my language and I was assisted by translator.

Regards
bravosx

Nothing has changed in that regard. I don't know why your icons rearranged themselves, but it wasn't the new version that did it. Nothing like that happened with the 4 Windows machines I tested the new version on. Something must have gone wrong with your Sigil.ini file. But to fix it, you just need to move them back where you want them.

bravosx 04-02-2021 11:24 AM

Quote:

Originally Posted by DiapDealer (Post 4108664)
...Something must have gone wrong with your Sigil.ini file. But to fix it, you just need to move them back where you want them.

Thank you for your help, I have already set it up as I had before.
Regards once again
bravosx

Vanguard3000 04-05-2021 03:54 PM

Hi, folks! Overall I'm enjoying the enhancements for 1.5.1, but I'm having an issue with the "Delete Unused Stylesheet Selectors" not working as expected. I've got an ePub with multiple stylesheets (a global, and several file-specific), and have removed all instances of most of the styles contained therein, but the delete function does nothing, despite all unused selectors being checked.

I've confirmed the styles aren't in use by a search, through the reports screen, and by deleting all xhtml files except a blank one, and clicking the "Delete Marked Styles" button seems to fail silently (the dialog dismissed but nothing else).

Because I had updates from 1.4.3, I tried uninstallling and reinstalling fresh, and restarting, and it worked briefly, but the issue seems to be back again.

Anyone else seeing this issue? Aside from that, when it worked, it was awesome. I like that it could also remove header-based style definitions.

roger64 04-05-2021 08:57 PM

Hi

Sorry if this does not belong to this thread. Usually, Eli Schwartz publishes quite quickly a binary version of Sigil for Archlinux users. He informed this forum over a week ago that he would wait to provide a binary release of 1.5.1. (and Calibre btw) but, as of today, still failed to do so. A PageEdit version had been published earlier.

Has somebody more info about this?

DiapDealer 04-05-2021 10:22 PM

Someone has flagged the current Arch sigil package as out of date (on the day Sigil 1.5.1 was released). Maybe he's out of town? Or maybe he's waiting to see that it's stable before updating it? I'm sure he'll get around to it.

DNSB 04-05-2021 10:39 PM

Quote:

Originally Posted by Vanguard3000 (Post 4109626)
Hi, folks! Overall I'm enjoying the enhancements for 1.5.1, but I'm having an issue with the "Delete Unused Stylesheet Selectors" not working as expected. I've got an ePub with multiple stylesheets (a global, and several file-specific), and have removed all instances of most of the styles contained therein, but the delete function does nothing, despite all unused selectors being checked.

I've confirmed the styles aren't in use by a search, through the reports screen, and by deleting all xhtml files except a blank one, and clicking the "Delete Marked Styles" button seems to fail silently (the dialog dismissed but nothing else).

Anyone else seeing this issue? Aside from that, when it worked, it was awesome. I like that it could also remove header-based style definitions.

I just tested this on a couple of epubs I was cleaning up. Using the Delete Unused Stylesheet Selectors tool selected the same unused selectors as shown in the CSS Selectors Reports and the cssRemoveUnusedSelectors plugin. After clicking on Delete Marked Styles, eyeballing the 3 stylesheets showed styles have been removed. Running cssRemoveUnusedSelectors again show on unused selectors.

Both the epubs had relatively simple stylesheets with no overly complex selectors. I really could see no reason for having 3 stylesheets.

roger64 04-05-2021 10:42 PM

Quote:

Originally Posted by DiapDealer (Post 4109689)
... I'm sure he'll get around to it.

You must be right. These times, I'm paranoid...

Vanguard3000 04-05-2021 11:37 PM

Quote:

Originally Posted by DNSB (Post 4109695)
I really could see no reason for having 3 stylesheets.

Neither can I. I always simplify retail ebooks I buy, and it's got about ten stylesheets.

KevinH 04-05-2021 11:47 PM

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:

Originally Posted by Vanguard3000 (Post 4109626)
Hi, folks! Overall I'm enjoying the enhancements for 1.5.1, but I'm having an issue with the "Delete Unused Stylesheet Selectors" not working as expected. I've got an ePub with multiple stylesheets (a global, and several file-specific), and have removed all instances of most of the styles contained therein, but the delete function does nothing, despite all unused selectors being checked.

I've confirmed the styles aren't in use by a search, through the reports screen, and by deleting all xhtml files except a blank one, and clicking the "Delete Marked Styles" button seems to fail silently (the dialog dismissed but nothing else).

Because I had updates from 1.4.3, I tried uninstallling and reinstalling fresh, and restarting, and it worked briefly, but the issue seems to be back again.

Anyone else seeing this issue? Aside from that, when it worked, it was awesome. I like that it could also remove header-based style definitions.


Vanguard3000 04-06-2021 12:15 AM

1 Attachment(s)
Quote:

Originally Posted by KevinH (Post 4109707)
Please provide a working test case that shows this.

Here you go - thanks for looking into this for me. I've again uninstalled and reinstalled Sigil, making sure to remove appData and program files folders and the issue persists for me.

KevinH 04-06-2021 12:42 AM

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

Vanguard3000 04-06-2021 01:41 AM

Okay, I understand now. Adding the comment works as you describe. Thanks for your help.

eschwartz 04-06-2021 11:19 PM

Quote:

Originally Posted by roger64 (Post 4109677)
Hi

Sorry if this does not belong to this thread. Usually, Eli Schwartz publishes quite quickly a binary version of Sigil for Archlinux users. He informed this forum over a week ago that he would wait to provide a binary release of 1.5.1. (and Calibre btw) but, as of today, still failed to do so. A PageEdit version had been published earlier.

Has somebody more info about this?

https://lists.archlinux.org/pipermai...ch/030402.html

I'm back now, catching back up on updates. The new sigil release is currently in the process of building.

roger64 04-07-2021 06:50 AM

Thank you for your so helpful work.

"Un seul être vous manque et tout est dépeuplé" :)

Skydancer 04-15-2021 05:29 AM

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?

DiapDealer 04-15-2021 07:16 AM

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.

Notjohn 04-15-2021 11:16 AM

>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".

DiapDealer 04-15-2021 11:27 AM

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.