![]() |
#16 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
|
That is strange.
I can not recreate this with the Mac build from post #11. I added the following to two different css files: Code:
.first-letter-h { /* huh 3*/ margin-top: 1em; /* huh4 */ margin-bottom: 1em; /* huh5 */ } In case opening the css tabs before closing them matters in some way, I saved that epub. Closed completely out of Sigil. Fired up Sigil, loaded my test epub and with only the xhtml file open I told it to search ALL CSS Files, for first-letter-h and clicked find and it happily worked correctly. So I can not recreate this at all with my admittedly simplistic test case. Could one of the hyphens in the class name be an en dash or em dash somehow? A stripped down test case epub might help if you can post one. Thanks. KevinH Quote:
Last edited by KevinH; 03-05-2022 at 10:54 PM. |
|
![]() |
![]() |
![]() |
#17 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,252
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
The CSS is a bit of a mess in the original with such lovely items as: Code:
.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-h,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-j,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-w { line-height: 1 !important; margin-top: -0.07em; } .element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-a,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-c,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-e,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-f,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-r,.element-container-single.element-bodymatter p.first-in-chapter.first-full-width span.first-letter.first-letter-w { margin-right: 0.12em; } |
|
![]() |
![]() |
![]() |
#18 |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
|
I finally spent a little time playing with the new Find/Replace, and I must admit the new wrap behavior where search doesn't cycle forever while there are still matches takes some getting used to.
Is it possible to add a Restart button to the Saved Searches window? Otherwise I end up bouncing back and forth between the Find/Replace window and Saved Searches window to hit Restart as double-check to make sure I haven't missed a match. And apologies for jumping in so late in this process! ETA: I just ran DNSB's test using his scrambled.epub and I can reproduce his bug exactly as he described on my Mac using the latest test build (370). (However, when I ran KevinH's very simple test above, the search worked perfectly, no bug.) Last edited by odamizu; 03-06-2022 at 01:48 AM. |
![]() |
![]() |
![]() |
#19 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
|
@DNSB, Thanks for the test case. If I can reproduce it, I should be able to track it down and get it fixed.
|
![]() |
![]() |
![]() |
#20 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Okay, I can recreate this with your scrambled.epub test case. I have tracked this down to an unhandled corner case where you are currently not in the set of files to be searched but the files to be searched has at least 2 files but the search pattern only exists in one file of the set to be searched but *not* the first file.
I am working on a fix. |
![]() |
![]() |
![]() |
#21 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,252
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
Last edited by DNSB; 03-06-2022 at 01:15 PM. |
||
![]() |
![]() |
![]() |
#22 |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
|
|
![]() |
![]() |
![]() |
#23 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Please Test Search!
Hi All,
Fixing the corner case DNSB reported took a bit of a rewrite of one routine that impacts all of search. I really really really do not want to need a Sigil-1.9.3 so I want Sigil-1.9.2 to work (differently) but with no reversion bugs related to Search. So I have made one more set of test builds with the fixes to all reported bugs so far (except the Qt6 Linux only crash). I have posted them here: https://github.com/kevinhendricks/Bu...OnMac/releases The new builds are: Sigil-master-408449a-build_num-372-Mac.tar.xz and Sigil-master-408449a-build_num-372-Win-Setup.exe Please download them and run them through their paces search-wise. They have additional debug output built in so if we can not recreate a bug you report, we can enable that output to help track things down if needed. As far as I can tell, this build should be it (unless my rewrite broke something else by accident). Thanks! KevinH |
![]() |
![]() |
![]() |
#24 | |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
When executing a Saved Search:
Not sure if this is expected behavior or not, and I can work around it by selecting a different search then going back to my desired search if necessary, but if Load Search can double as a Restart button in the Saved Searches window that would be helpful. Thank you. On the bright side, I tested DNSB's scrambled.epub for first-letter-h and Sigil build 372 found them ![]() |
|
![]() |
![]() |
![]() |
#25 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Any change to Find, or target files, or direction, will perform the equivalent of a Restart. That is true from Saved Search and F & R.
But the point to this whole redesign is that you should rarely or never need Restart, as you do not need to go past your beginning point anymore just to see if you hit all matches when search is operating properly (as it should be with this build). Once you get the "No Matches Found" message, that means you have already visited each match one time since you started this search. You already decided which ones to replace and which ones to skip. People are so used to how the old search worked, they expect new search to need the same things. But searching past the end is not one of them. If you truly want to rerun a just finished search you can, by hitting Restart in F&R dialog, or just change direction (up to down or visa-versa) and repeat it until you again get the "No Matches Found" but in the opposite direction. It just takes some getting used to as the only way to know that before was to try to search around back to your starting point. Now just learn to rely on Sigil to keep track. Once working (again hopefully with this build) this will prevent missed searches while allowing entire Saved Search Groups to be run sequentially by selecting the Group and hitting Find again and again while all you do is decide to skip a match or replace it. It will run through the entire set of Search Group tests stopping only at the end. But to search past your starting point is just not a needed anymore (with hopefully this build) given Sigil's search keeps track if what matches were visited for any set of find value, target search group and search direction. I realize it is different from before, but it should be faster (fewer clicks), safer (each match visited once and only once), and allows Saved Searches to skip over replacements and continue the search until the end (which was not even possible before). It just requires Search to work correctly (which it hopefully will now). Last edited by KevinH; 03-06-2022 at 05:33 PM. |
![]() |
![]() |
![]() |
#26 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Quite often I view several consecutive matches before I decide if my search is actually finding what I intended. This means I don't start replacing until I have already stepped through the first several matches. I also don't necessarily replace every match I find, so I like to cycle through again in case I want to change my decisions. I am learning to live with Sigil ending a search when it decides instead of me deciding, since all I have to do at that point is select Restart. The problem comes when I click on Count All and see "3 matches found," but when I click on Find I see "No matches found." Then I click on Restart and now Count All tells me "8 matches found."
"3 matches found" or "No matches found" or "8 matches found"--all for the same search criteria, depending on what buttons I have or haven't clicked or where I am in the search--that's what I find problematic. I know you are exasperated and frustrated with those of us who do not use Find and Replace as you do, but this new behavior causes me me to double- and triple-check my work constantly. I understand that there are reasons for changing Find and Replace. I am trying to train myself to Restart searches from the top file in a group. I realize too that you are volunteering your time to make Sigil the best epub editor on the planet. I use it every day and thank you for it. This will be my last post on the subject. |
![]() |
![]() |
![]() |
#27 | ||
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Quote:
If Find reports "No matches found" then you have visited all of the matches in your search set once. If you skipped replacements on 3 of them, then Count All will show 3. If you hit Restart, and run Find it should take you to to one of them you skipped. Count All should only ever show the 3 you skipped. It should never switch to 8 unless you changed the search group to include other files. If the build I just posted is doing anything else that is a bug. One I need to track down and fix. Quote:
Last edited by KevinH; 03-06-2022 at 10:11 PM. |
||
![]() |
![]() |
![]() |
#28 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Quote:
|
|
![]() |
![]() |
![]() |
#29 | ||||
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
Quote:
![]() Quote:
Quote:
(I am working with latest test build 372.) |
||||
![]() |
![]() |
![]() |
#30 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Quote:
Is this with a Saved Search Group with multiple finds or just one? What do you have the Saved Search controls set to? Also, I will think about adding a Restart button to Saved Search but it might be for a future release as it requires new translations. If you ever get a test case and sequence of events for your Saved Search bug please let me know. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil-1.9.0 Release | DiapDealer | Sigil | 101 | 03-11-2022 07:20 PM |
Sigil-1.8.0 Release | DiapDealer | Sigil | 59 | 12-24-2021 10:38 PM |
Sigil-0.9.0 Release | KevinH | Sigil | 76 | 11-14-2015 06:45 PM |
New Sigil Release: Sigil-0.8.901 | KevinH | Sigil | 137 | 11-03-2015 09:42 AM |
Sigil 0.2.0 Release Candidates | Valloric | Sigil | 46 | 05-10-2010 09:55 PM |