Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-21-2014, 01:37 PM   #1
Inferno
Connoisseur
Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
How to search Author column for "The " or "A "

I am trying to search my Author(s) column for "The " or "A ". When I search for "The " I get a great number of results including Theo etc.

What I am trying to do is find those books that have the author and title reversed. I can't see how to use regex to search the author column.

I don't want to search and replace. Just to find these books so I can "eyeball" them.
Inferno is offline   Reply With Quote
Old 07-21-2014, 02:11 PM   #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,978
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 Inferno View Post
I am trying to search my Author(s) column for "The " or "A ". When I search for "The " I get a great number of results including Theo etc.

What I am trying to do is find those books that have the author and title reversed. I can't see how to use regex to search the author column.

I don't want to search and replace. Just to find these books so I can "eyeball" them.
Try the Quality Check Plugin
It has all sorts of metadata checks (but not the A or The)

Code:
title:="~^The"
should find those that Start with 'The'
theducks is offline   Reply With Quote
Advert
Old 07-21-2014, 03:08 PM   #3
Inferno
Connoisseur
Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
What option? and wouldn't that code get titles with the?

I look at Quality Check and see that Search ePubs searches inside the epub (not what I want). I only want to check the author field.

I am looking for those books that have the title and author switched or the author not filled in correctly.

It seems that the quality check needs to look inside the epub to find this information. I just want to be able to search the author field for "the " or "A "

Is there no way to search for "the" followed by whitespace just in the Author column without having to go through every file.

I started running the quality check but it will take hours for the entire library. Longer than searching individually
Inferno is offline   Reply With Quote
Old 07-21-2014, 03:28 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Using "~" at the beginning of a search match activates regex mode.

"^" is the regex symbol for beginning-of-string.

"~^The" matches the word "The", using regex to only match at the beginning of the field.
eschwartz is offline   Reply With Quote
Old 07-21-2014, 04:44 PM   #5
Inferno
Connoisseur
Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
Thank you. I had somehow missed using the tilde. I finally got what I needed from "~The\s"
Inferno is offline   Reply With Quote
Advert
Old 07-21-2014, 05:25 PM   #6
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,978
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 Inferno View Post
What option? and wouldn't that code get titles with the?

I look at Quality Check and see that Search ePubs searches inside the epub (not what I want). I only want to check the author field.

I am looking for those books that have the title and author switched or the author not filled in correctly.

It seems that the quality check needs to look inside the epub to find this information. I just want to be able to search the author field for "the " or "A "

Is there no way to search for "the" followed by whitespace just in the Author column without having to go through every file.

I started running the quality check but it will take hours for the entire library. Longer than searching individually
Most of the QC metadata checks work on the DB, not the books.
A MD check on 5K books takes less than 5min on a lowly P4 running XP

There are also many Book checks, and yes, those do take time, but not hours.
theducks is offline   Reply With Quote
Old 07-21-2014, 05:40 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
ha, the space. Yeah, of course. "^The" matches There|They|(others) ...
eschwartz is offline   Reply With Quote
Old 07-21-2014, 06:29 PM   #8
Inferno
Connoisseur
Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
Quote:
Originally Posted by eschwartz View Post
ha, the space. Yeah, of course. "^The" matches There|They|(others) ...
More troublesome are Katherine, Theresa etc lol.
Inferno is offline   Reply With Quote
Old 07-21-2014, 06:34 PM   #9
Inferno
Connoisseur
Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
Quote:
Originally Posted by theducks View Post
Most of the QC metadata checks work on the DB, not the books.
A MD check on 5K books takes less than 5min on a lowly P4 running XP

There are also many Book checks, and yes, those do take time, but not hours.
I have almost 90K books in this library so it was going to take quite a while in comparison to doing a regex search when I just wanted to check for Authors with "The" in them as that gives a fairly high chance that it is a case of title/author being switched.

My problem was finding how to use regex to check and narrow it down. I use the Quality check plugin for other things like once in a while to check the author search field, formatting author initials etc.
Inferno is offline   Reply With Quote
Old 07-25-2014, 04:38 PM   #10
Inferno
Connoisseur
Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
Thank you for the help. I have been able to find most what I need with using "~\ssearchtext\s" however I am having problems figuring how to search for ( or ) with regex. I tried escaping them with \( but it didn't work. Any suggestions?
Inferno is offline   Reply With Quote
Old 07-25-2014, 04:58 PM   #11
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,389
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Inferno View Post
Thank you for the help. I have been able to find most what I need with using "~\ssearchtext\s" however I am having problems figuring how to search for ( or ) with regex. I tried escaping them with \( but it didn't work. Any suggestions?
When you search in calibre you are talking to two processors, calibre and regular expression parsing. If you are trying to escape regular expression metacharacters use two backslashes. The first will be eaten by the calibre parser, and the second by the regular expression parser.
chaley is offline   Reply With Quote
Old 07-28-2014, 05:24 PM   #12
Inferno
Connoisseur
Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.Inferno ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
Quote:
Originally Posted by chaley View Post
When you search in calibre you are talking to two processors, calibre and regular expression parsing. If you are trying to escape regular expression metacharacters use two backslashes. The first will be eaten by the calibre parser, and the second by the regular expression parser.
Thank you. That helps a lot!
Inferno is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A warning for Linux users: slow "Add Books", "Unknown" title and Author rolgiati Library Management 8 07-24-2013 04:36 PM
Question: addition of "virtual libraries" (was "base search restriction") chaley Library Management 53 04-15-2013 12:52 PM
Custom column: "Updated date", when adding new "versions" of the same file? enriquep Library Management 16 11-03-2011 10:46 AM
Question - Does iLiab have the "search" & "annotation, highlighting" features? HiSoC8Y iRex 5 07-01-2009 04:37 PM


All times are GMT -4. The time now is 10:13 PM.


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