![]() |
#1 |
Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Buglet? Warning Message needed?
Hi
I have been using Search and Replace and the Saved Searches and switching between them in the Calibre Editor a lot recently. I have noticed that when I appear to have have the sane regex in both and use the count facility on Search and Replace and the Saved Searches I sometimes get different counts. I investigated the issue and found this 1. Highlight text <br class="calibre8"/> 2. Paste into Saved Searches Editor 3. Click on Count button 4. Get a count of X 5.Highlight text <br class="calibre8"/> 6.Click on Magnifying Glass Button 7. It puts the text 8. Use the Count Menu Option 9. Get a count of Y I think I have spotted why this happens. When the Magnifying Glass Button is used to populate Search and Replace it escapes the outer chevrons i.e. \*<br class="calibre8"/>. When text is pasted into Saved Searches it does not automatically escape the outer chevrons i.e. <br class="calibre8"/>. I do not know what if anything should be done about the above but I have a suggestion which might help. Please see my next posting. |
![]() |
![]() |
![]() |
#2 | |
Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Second Post - Suggestion
Hi Kovid
A suggestion to consider, even if only for a second. ![]() ![]() As I said in my previous post Quote:
Essentially Search and Replace and Edit Search page of Saved Searches are duplicates. The only differences I can see is that you can populate Search and Replace by clicking on the Magnifying Glass button and it does not have a Count Button. My suggestion is to consider 1.removing the current Search and Replace screen and replace it with the B]Edit Search[/B] page of Saved Searches 2.When the current Search and Replace function is requested use the B]Edit Search[/B] page of Saved Searches . 3 This could perhaps be prepopulated if the Magnifying Glass button had been pressed. This would free up some screenspace. It eliminates possible mismatches in counts between Search and Replace and Saved Searches. The Saved Searches Edit screen has much bigger boxes to put the regex in. This would mean most regexes would be displayed in full rather than disappearing out of the box. I do have a workaround which helps but is not ideal. Instead of using Search and Replace I have set up a Dummy saved search which I have put at the top of the list. I then open and use this rather than Search and Replace unless it is a small very minor Search and Replace. Hope what I have put is clear. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
For your other suggestion, I don't like it. I swap between the search-and-replace and saved searches all the time. And have the edit opened whiles searching enough to not want that. When I am editing a saved search, I frequently run another search looking for why the saved search didn't do what I wanted. Or looking to make sure it did cover all cases. What would be good would be a way to create a saved search from the current search. That would save some copy-paste actions. Or to copy a saved search to the current search. I frequently edit saved searches and tweak them a bit for the current book but don't want to save the changes. And I have a couple of saved searches that are more templates than actual searches. I expect to change these each time I use them. |
||
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
As davidfor said, the magnifying glass does escaping in addition, not the same as copy/paste.
The find panel is deliberately made the way it is, it is meant for quick, relatively simply searches, unlike the saved search panel. @davidfor: you can right click the find box in the search panel and create a saved search from it. |
![]() |
![]() |
![]() |
#5 |
Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Thank you for your answers and info.
With what you have told me I can get these features to nore or less work how i wish. The point you have not picked up on is why Search and Replace can give a different Count to that produced by Saved Clips. Design query - if an unescaped "cut and paste" query and a similar escaped query by using the Magnifying Glass button in, Search and Replace why bother showing the escape characters? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Because they are searching for different things.
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Code:
<br class="calibre8"/> You also state that the magnifying glass escapes the "escapes the outer chevrons" and gave the example: Code:
\*<br class="calibre8"/> I can't reproduce your report. But, there are also inconsistencies in the report. I don't know if there are typos above, or something in how we are both doing the testing. |
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
![]() |
![]() |
![]() |
#9 |
Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
My apologies to both of you.
You are right I probably got a little confused in using the search and replace and saved search features. I have only just started regularly using both of them together. Before that I rarely used them. Having checked the manual I see I have been making an elementary mistake because I had assumed I had sufficient knowledge of Regex not to need it. Ah well back to square one again. |
![]() |
![]() |
![]() |
#10 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
you guys are working too hard (cut&paste)
![]() highlight text to be found: Ctrl-F |
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Buglet? | Thasaidon | Sigil | 10 | 10-07-2020 10:38 AM |
can't find the warning message for vendor-extension | JLius | ePub | 4 | 04-02-2014 04:59 AM |