Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-17-2019, 10:05 AM   #1
BrokenDynamo
Member
BrokenDynamo began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2018
Device: none
How I can apply multiple search in order

Greetings, I have multiple search lines that applying to every book I work in (find and replace) can I find plugin or something to find and replace these multiple function in one step?
BrokenDynamo is offline   Reply With Quote
Old 06-17-2019, 10:19 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by BrokenDynamo View Post
Greetings, I have multiple search lines that applying to every book I work in (find and replace) can I find plugin or something to find and replace these multiple function in one step?
I use this all the time for my cleanups

Tools: saved search
Create a group of the individual saves (move them into the group)
To use: Select the group (standard highlight), Click Load (blue circled), click Replace all (red circled)
Note:All the Search and replace modes are STILL in control.
That is where you set the scope and type. Current file or All HTML or CSS (must use current AND have focus)
Attached Thumbnails
Click image for larger version

Name:	saved Search2.JPG
Views:	145
Size:	100.0 KB
ID:	171956  
theducks is offline   Reply With Quote
Old 06-17-2019, 10:24 AM   #3
Vroni
Banned
Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'Vroni knows the difference between 'who' and 'whom'
 
Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
I dont need to press the load button.... is this a difference between macOS and Windows Version?
Vroni is offline   Reply With Quote
Old 06-17-2019, 04:32 PM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Vroni View Post
I dont need to press the load button.... is this a difference between macOS and Windows Version?
When running on a group, you don't have to press Load Search.

That button is there if you want to take a single saved search and "load" it into the Find/Replace boxes.
Tex2002ans is offline   Reply With Quote
Old 06-19-2019, 04:29 AM   #5
BrokenDynamo
Member
BrokenDynamo began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2018
Device: none
Thanks for the help it worked!
and good to know that I don't have to use load search.
BrokenDynamo is offline   Reply With Quote
Old 06-19-2019, 05:10 AM   #6
BrokenDynamo
Member
BrokenDynamo began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2018
Device: none
but I've notice an issue that replace doesn't read specific regex line like $1 that keep page numbers which (\d*) from changing but instead it leaves $1 and remove number like it's a normal text
BrokenDynamo is offline   Reply With Quote
Old 06-19-2019, 05:37 AM   #7
BrokenDynamo
Member
BrokenDynamo began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2018
Device: none
Find:
<span class="English" lang="en-US" xml:lang="en-US">&lt;page(\d*)&gt;

replace:
<span epub:type="pagebreak" id="page$1" title="$1"></span>

the results that I got from vs code editor is this:
<span epub:type="pagebreak" id="page6" title="6"></span>
(which is my attempt)

but for some reason the saved searches panel in sigil give the same result which is:
<span epub:type="pagebreak" id="page$1" title="$1"></span>

but any regex code work fine in it like .*? but not $1 for some reason.
BrokenDynamo is offline   Reply With Quote
Old 06-19-2019, 05:47 AM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
PCRE regex doesn't use the $1 syntax for replacements. Use \1 instead.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to search for books which credits will apply to? WillAdams Amazon Kindle 3 01-04-2019 12:24 AM
How to use multiple gift cards on one order? RZetlin Kobo Reader 3 05-05-2014 09:59 PM
save multiple search/replace, or search/replace multiple ebooks user743 Editor 12 04-12-2014 02:38 AM
Handling chronological order of multiple series DMee Library Management 3 08-31-2011 04:17 AM
Import order when adding multiple books Sparkling Library Management 5 07-08-2011 07:41 AM


All times are GMT -4. The time now is 09:13 AM.


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