Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-12-2017, 12:36 PM   #856
taratears
Connoisseur
taratears began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Aug 2013
Device: Kindle Fire HD
Thank you
taratears is offline   Reply With Quote
Advert
Old 06-24-2017, 10:21 AM   #857
bluepiggy42
Junior Member
bluepiggy42 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2016
Device: none
Help on the Search ePub

Quick question......I am doing a search and wanted to know if there was a way to pair down the results. For instance, I am looking for tablet, but the search also returns tabletop as tablet is found in that word.

Thank you
bluepiggy42 is offline   Reply With Quote
Old 06-24-2017, 01:31 PM   #858
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 3,060
Karma: 587516
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Voyage
Quote:
Originally Posted by bluepiggy42 View Post
Quick question......I am doing a search and wanted to know if there was a way to pair down the results. For instance, I am looking for tablet, but the search also returns tabletop as tablet is found in that word.
Huh. I did not know that was a feature of Quality Check. Now I'm going to tell you how it works.

Looking in the code, it uses a regular expression search.

So to make only tablet, use: \btablet\b
\b means 'word boundary'.

To match tablet and tablets, use: \btablets?\b
s? means '0 or 1 s characters.

Regular expression reference.
JimmXinu is offline   Reply With Quote
Old 06-24-2017, 07:04 PM   #859
bluepiggy42
Junior Member
bluepiggy42 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2016
Device: none
Quote:
Originally Posted by JimmXinu View Post
Huh. I did not know that was a feature of Quality Check. Now I'm going to tell you how it works.

Looking in the code, it uses a regular expression search.

So to make only tablet, use: \btablet\b
\b means 'word boundary'.

To match tablet and tablets, use: \btablets?\b
s? means '0 or 1 s characters.

Regular expression reference.
Thank you!!!!!!! I use that feature all the time to find words or phrases in a book. It's my most used plug-in
bluepiggy42 is offline   Reply With Quote
Old 07-21-2017, 01:48 AM   #860
icallaci
Evangelist
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 429
Karma: 6483398
Join Date: Sep 2012
Device: Kobo Aura One and H20, Samsung Galaxy Note 4 and Galaxy Tab S2 8.0
I realize this is a long shot, but thought I'd ask anyway: the Quality Check plugin has identified ~500 epubs in my library where the CSS contains "line-height: 1;" or "line-height: 1em;". I'd like to change all of these to "line-height: 0;" but the thought of editing 500+ files one at a time is daunting. I've searched for a Windows utility that will do a batch search and replace but after downloading and trying six of them without finding one that will do the job, I'm about to give up. Does anyone know of a Windows utility (preferably free) that will search and replace the text inside epub files? I've tried grepWin, FAR, FNR, TextCrawler, and others without luck. Of course, I'd love it if the Quality Check plugin would allow a simple search and replace (since it already does the search part so quickly and reliably), but I also realize that's not likely to happen. So...can't hurt to ask, right? Thanks.
icallaci is offline   Reply With Quote
Advert
Old 07-21-2017, 01:53 AM   #861
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 31,135
Karma: 7777777
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use

calibre-debug --expode-book file.epub

which will unpack file.epub into a temp dir and then wait for you to type y after making your changes and then recreate the epub from the temp dir.

You can automate it by using something like expect to pass in the y automatically after running the replace tool.
kovidgoyal is offline   Reply With Quote
Old 07-21-2017, 02:18 AM   #862
icallaci
Evangelist
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 429
Karma: 6483398
Join Date: Sep 2012
Device: Kobo Aura One and H20, Samsung Galaxy Note 4 and Galaxy Tab S2 8.0
Quote:
Originally Posted by kovidgoyal View Post
Use

calibre-debug --expode-book file.epub

which will unpack file.epub into a temp dir and then wait for you to type y after making your changes and then recreate the epub from the temp dir.

You can automate it by using something like expect to pass in the y automatically after running the replace tool.
Yes! Thank you! I was so focused on finding a grep-like tool to parse through the files that I couldn't see any other possible solutions. I'll give that a try tomorrow after a good night's sleep. Thanks again.
icallaci is offline   Reply With Quote
Old 07-21-2017, 02:44 AM   #863
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 31,135
Karma: 7777777
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And this change https://github.com/kovidgoyal/calibr...b4ef814c4ad0ea

should make it much simpler to automate.
kovidgoyal is offline   Reply With Quote
Old 07-21-2017, 03:05 AM   #864
BeckyEbook
Member
BeckyEbook began at the beginning.
 
BeckyEbook's Avatar
 
Posts: 17
Karma: 10
Join Date: Jan 2017
Location: Poland
Device: Kindle (Key3, PW2, PW3), Nook (ST, GLP), Kobo Touch, Tolino Vision 2
This commit is great gift for me!
--explode-book and --implode-book with specified folders – that's what I was looking for!
Now I will be able to unpack the ebook, pass it through my edits/changes and pack it back.
Thank you!
BeckyEbook is offline   Reply With Quote
Old 07-21-2017, 10:19 AM   #865
icallaci
Evangelist
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 429
Karma: 6483398
Join Date: Sep 2012
Device: Kobo Aura One and H20, Samsung Galaxy Note 4 and Galaxy Tab S2 8.0
Quote:
Originally Posted by kovidgoyal View Post
And this change https://github.com/kovidgoyal/calibr...b4ef814c4ad0ea

should make it much simpler to automate.
Oh, this is PERFECT! I woke up and it was Christmas morning. Thank you so much.
icallaci is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Search the Internet kiwidude Plugins 283 06-28-2017 05:54 PM
[GUI Plugin] Open With kiwidude Plugins 316 06-12-2017 06:30 PM
[GUI Plugin] Clipboard Search kiwidude Plugins 9 08-12-2014 03:36 AM
[GUI Plugin] Kindle Collections (old) meme Plugins 2070 08-11-2014 12:02 AM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 07:47 PM


All times are GMT -4. The time now is 07:26 PM.


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