Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-31-2022, 01:02 PM   #91
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,766
Karma: 6000000
Join Date: Nov 2009
Device: many
With a lot of feedback from people who build their own, the DryRun ReplaceAll capability has now been added to master and some form of it will appear in the next release.

Quote:
Originally Posted by KevinH View Post
Okay, it appears to be quite popular. I will start looking at how to actually accomplish that.

Thanks to everyone that provided their feedback.
KevinH is online now   Reply With Quote
Old 03-31-2022, 04:35 PM   #92
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by KevinH View Post
With a lot of feedback from people who build their own, the DryRun ReplaceAll capability has now been added to master and some form of it will appear in the next release.


Can't wait to see it! Thank you!!
Turtle91 is offline   Reply With Quote
Advert
Old 04-01-2022, 11:26 AM   #93
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by KevinH View Post
With a lot of feedback from people who build their own, the DryRun ReplaceAll capability has now been added to master and some form of it will appear in the next release.
Thank you, this will be really helpful, can't wait to try it

Currently I use the same method as Turtle91 described previously.
Mister L is offline   Reply With Quote
Old 04-01-2022, 09:18 PM   #94
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
@Kevin - Can you please pop a Windows build on your github page? I too would love to try this out.
snarkophilus is offline   Reply With Quote
Old 04-02-2022, 09:10 AM   #95
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,766
Karma: 6000000
Join Date: Nov 2009
Device: many
Okay, but nothing is final and everything is subject to change:

See: https://github.com/kevinhendricks/Bu...OnMac/releases

Look for Build 397.

To try it. Set up Find and Replace to find and replace something and set to all html files,

Then hold the SHIFT key down as you click on ReplaceAll.

You should see the DryRun table.

If you double-click on a table entry it will open CV there.

You can adjust the amount of context chars before and after.

If you make changes you will need to hit Refresh to get updated positions.

If you edit things in a file in the original order (bottom of file to top, in spine order, all of your remaining offsets in that file will stay correct. But the columns are sortable. So if you want you first sort on offset, and then filename.

There is a filter.

You can close it at anytime.

It will not make any changes. Once closed you can of course click ReplaceAll to make the actual changes.

Please note, there are other variations on how best to do this so expect changes before this appears in a release.

Last edited by KevinH; 04-02-2022 at 10:36 AM.
KevinH is online now   Reply With Quote
Advert
Old 04-02-2022, 09:35 AM   #96
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Awesome! Can I make a small request?

As popular as I anticipate this option being... can you allow some form of option setting so we don't have to remember to select shift first? A button, checkbox, or preferences setting???
Turtle91 is offline   Reply With Quote
Old 04-02-2022, 10:31 AM   #97
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,766
Karma: 6000000
Join Date: Nov 2009
Device: many
Sorry. Probably not. DryRun is extra and it will not do a real replace all. It is for validating things before running an actual ReplaceAll if you choose to do one.

Also the Find and Replace dialog is height limited and quite space constrained. I hope to squeeze in a Text only checkbox some day but even that will push the limits.

And as I said, it does not actually do anything. You still need to use normal Replace All to actually change things in the epub. So it can not replace the ReplaceAll button or function.

So just like using Control + click limits things to use only the current file, SHIFT + click will run the DryRun. I will add info on using Shift to the tool tip.

This info will also be added to the Sigil user guide eventually if the tool does not evolve into something else yet again.


Quote:
Originally Posted by Turtle91 View Post
Awesome! Can I make a small request?

As popular as I anticipate this option being... can you allow some form of option setting so we don't have to remember to select shift first? A button, checkbox, or preferences setting???

Last edited by KevinH; 04-02-2022 at 11:58 AM.
KevinH is online now   Reply With Quote
Old 04-02-2022, 02:13 PM   #98
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,766
Karma: 6000000
Join Date: Nov 2009
Device: many
FWIW, I just now added an alternative dialog called the Replacement Chooser that can be launched by ALT+click on the ReplaceAll button. It shows a similar table but it is blocking (modal) but you can delete selected rows of any match/replacements in the table you do not want by hitting the delete key, then hit apply to make just the remaining changes.

Once I iron out some remaining issues and get it a bit more polished early next week, I will post an updated test build. This type of dialog tool might be more useful than the dry-run in the end but it will *not* allow you to double click to hop to CV since it must be blocking for safety (so you can't make changes behind its back - so to speak).
KevinH is online now   Reply With Quote
Old 04-02-2022, 10:33 PM   #99
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by KevinH View Post
Okay, but nothing is final and everything is subject to change:

See: https://github.com/kevinhendricks/Bu...OnMac/releases

Look for Build 397.
This is great! Should it have a Search menu entry under the existing Replace All entry? Not a necessity if you add a tool tip I guess.

My only nit is that it doesn't remember the dry run window geometry. It starts with the "after" column truncated. If I widen the window, close it, try a different dry rum, then the window restores to its original size and I need to resize to see the full "after" column again.
snarkophilus is offline   Reply With Quote
Old 04-03-2022, 09:01 AM   #100
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,766
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by snarkophilus View Post
This is great! Should it have a Search menu entry under the existing Replace All entry? Not a necessity if you add a tool tip I guess.

My only nit is that it doesn't remember the dry run window geometry. It starts with the "after" column truncated. If I widen the window, close it, try a different dry rum, then the window restores to its original size and I need to resize to see the full "after" column again.
Strange. It saves its geometry on Window close and restores its geometry on Window open in settings, for me. But I use macOS. Not sure why that doesn't work for you. Please remember the context setting alone does not fully control width as the length of the matched segment and replacement under regex can vary highly from row to row.

So I can grow the geometry and have it saved when I close the window but the next search may still need adjusting depending on the length of the match and replace strings in that search.

Last edited by KevinH; 04-03-2022 at 09:09 AM.
KevinH is online now   Reply With Quote
Old 04-03-2022, 10:02 AM   #101
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Not sure if this is possible, but one thing I would like to see is the action 'open with' in Book Browser being able to operate on a group of files.

At the moment this has to be done one file at a time, so I find myself constantly switching back and forth when I editing a group of images in Photoshop.
Ashjuk is offline   Reply With Quote
Old 04-03-2022, 10:12 AM   #102
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by KevinH View Post
Strange. It saves its geometry on Window close and restores its geometry on Window open in settings, for me. But I use macOS. Not sure why that doesn't work for you. Please remember the context setting alone does not fully control width as the length of the matched segment and replacement under regex can vary highly from row to row.

So I can grow the geometry and have it saved when I close the window but the next search may still need adjusting depending on the length of the match and replace strings in that search.
I just tried again, this time moving aside my %APPDATA%/sigil-ebook/sigil directory so starting with no saved preferences at all. Started sigil, it opened up an empty epub2 book. Typed ctrl-f, body, <tab>, somebody, hold down shift, click Replace All, and get the first image. Expand the window horizontally, that's the second image. Click Close, hold down shift, click Replace All and I get the third image which has the same geometry (both size and position) as the first image.

This is with 64-bit Windows 10 version 21H1.

I don't seem to have any other saved-geom issues - the main window, preview window, saved searches windows etc all work as expected.
Attached Thumbnails
Click image for larger version

Name:	2022-04-04 00_05_49-Window.png
Views:	79
Size:	13.0 KB
ID:	193061   Click image for larger version

Name:	2022-04-04 00_06_39-Window.png
Views:	79
Size:	13.3 KB
ID:	193062   Click image for larger version

Name:	2022-04-04 00_08_17-Window.png
Views:	68
Size:	13.0 KB
ID:	193063  
snarkophilus is offline   Reply With Quote
Old 04-03-2022, 12:02 PM   #103
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,766
Karma: 6000000
Join Date: Nov 2009
Device: many
I am not seeing that on my macOS build. It saves the settings to the sigil.ini file when it is closed and that dialog's destructor is called. Perhaps something is delaying the destructor being invoked? So I just added a closeEvent handler to save to the geometry to the ini file earlier. Hopefully this will fix the issue you are seeing.

One thing to do is try your test again and after resizing and closing but before opening it again, please look in the sigil.ini file for the "dryrun_report" group heading and look for a "geometry" entry under it to verify something is being saved. If so, then the problem may be related to the ReadSettings.

Thanks,

Kevin

Quote:
Originally Posted by snarkophilus View Post
I just tried again, this time moving aside my %APPDATA%/sigil-ebook/sigil directory so starting with no saved preferences at all. Started sigil, it opened up an empty epub2 book. Typed ctrl-f, body, <tab>, somebody, hold down shift, click Replace All, and get the first image. Expand the window horizontally, that's the second image. Click Close, hold down shift, click Replace All and I get the third image which has the same geometry (both size and position) as the first image.

This is with 64-bit Windows 10 version 21H1.

I don't seem to have any other saved-geom issues - the main window, preview window, saved searches windows etc all work as expected.
KevinH is online now   Reply With Quote
Old 04-03-2022, 12:07 PM   #104
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,766
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Ashjuk View Post
Not sure if this is possible, but one thing I would like to see is the action 'open with' in Book Browser being able to operate on a group of files.

At the moment this has to be done one file at a time, so I find myself constantly switching back and forth when I editing a group of images in Photoshop.
As long as you do not use PageEdit, with the right batch file you can in fact do this right now with the External Editor icon.

It should pass out the path of the current OPF which a batch file could parse and batch open any editor you want with all of the images. It would be a bit tricky but doable.

In BookBrowser, what happens now if you block select a bunch of images and try to do an Open With?

Also this would be doable via a custom plugin as well.
KevinH is online now   Reply With Quote
Old 04-03-2022, 12:33 PM   #105
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by KevinH View Post
In BookBrowser, what happens now if you block select a bunch of images and try to do an Open With?

Also this would be doable via a custom plugin as well.
At the moment if I select a group of image files in BookBrowser and right-click them, the Open With option is greyed out.

The batch file method sounds a little complicated, and is probably beyond what I was looking for.

Thanks anyway.
Ashjuk is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible To-Do List for Future Sigil Releases Post Sigil 1.8 KevinH Sigil 143 02-05-2022 12:08 PM
Icon Redesign for future 1.0 Release of Sigil shorshe Sigil 38 06-06-2016 11:29 PM
Sigil on Nook vs Sigil on Kobo vs Sigil on iBook rosshalde Sigil 12 11-13-2014 09:34 AM
Sigil’s Future Direction (Post 0.4.x) user_none Sigil 90 10-11-2011 03:28 PM
Sigil's Future crutledge Sigil 36 07-26-2011 06:02 PM


All times are GMT -4. The time now is 01:06 PM.


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