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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-09-2020, 03:36 PM   #1
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
Want downloaded author metadata to go from, say, C. S. Lew to CS Lew

I'd like downloaded author metadata to remove the spaces and dots in the initials of author names.

For example, "C. S. Lewis" should automagically appear as "CS Lewis".

"John Q. Smith" should autoconvert to "John Q Smith"

I select a row, press Control-D, choose "Configure Download", click "Create Rules to transform author names", click "Add rule". But now I'm stuck. I'm guessing I should choose "matches regex pattern". But I don't know what to put in the next two blanks.

Can someone please tell me what I should have in these blanks?

Last edited by droopy; 07-09-2020 at 03:41 PM.
droopy is offline   Reply With Quote
Old 07-09-2020, 05:48 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 41,097
Karma: 157915458
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by droopy View Post
I'd like downloaded author metadata to remove the spaces and dots in the initials of author names.

For example, "C. S. Lewis" should automagically appear as "CS Lewis".

"John Q. Smith" should autoconvert to "John Q Smith"

I select a row, press Control-D, choose "Configure Download", click "Create Rules to transform author names", click "Add rule". But now I'm stuck. I'm guessing I should choose "matches regex pattern". But I don't know what to put in the next two blanks.

Can someone please tell me what I should have in these blanks?
You could use the Quality Check plugin to reformat author initials. Customize the plugin to say author initials should be AB which will remove spaces and periods.

BTW, C. S. Lewis used both spaces and periods in his signature as in the one from a scan of one of his letters.
Attached Thumbnails
Click image for larger version

Name:	c-s-lewis-signature2.png
Views:	160
Size:	9.1 KB
ID:	180514  

Last edited by DNSB; 07-09-2020 at 05:51 PM.
DNSB is online now   Reply With Quote
Advert
Old 07-09-2020, 06:22 PM   #3
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
DNSB, yes, I have the QualityCheck plugin. And I already do what you're suggesting. But that works after a book is imported. I'd rather get the initials formatted according to my preference before they become part of the library. This is why I ask about configuring names in the Configure Metadata section.
droopy is offline   Reply With Quote
Old 07-09-2020, 10:16 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 41,097
Karma: 157915458
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
You might want to check the Regex Search in Advanced Search Box thread in this forum.

You'll to modify the regex since he was looking to change, for example, C S Lewis to C. S. Lewis.
DNSB is online now   Reply With Quote
Old 07-09-2020, 11:16 PM   #5
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: 44,616
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Preferences->Metadata download->Create rules to transform author names
kovidgoyal is offline   Reply With Quote
Advert
Old 07-10-2020, 03:07 PM   #6
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
Red face

Quote:
Originally Posted by droopy View Post
I'd like downloaded author metadata to remove the spaces and dots in the initials of author names.

For example, "C. S. Lewis" should automagically appear as "CS Lewis".

"John Q. Smith" should autoconvert to "John Q Smith"

I select a row, press Control-D, choose "Configure Download", click "Create Rules to transform author names", click "Add rule". But now I'm stuck. I'm guessing I should choose "matches regex pattern". But I don't know what to put in the next two blanks.

Can someone please tell me what I should have in these blanks?
Quote:
Originally Posted by kovidgoyal View Post
Preferences->Metadata download->Create rules to transform author names
Hi Kovid. I'm aware of that. I just don't know how to do regex.
droopy is offline   Reply With Quote
Old 07-10-2020, 04:20 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,830
Karma: 138235604
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by droopy View Post
Hi Kovid. I'm aware of that. I just don't know how to do regex.
You don't need regex if the cases are the same. You can change C.S. Lewis into CS Lewis and C. S. Lewis into CS Lewis without regex.
JSWolf is online now   Reply With Quote
Old 07-10-2020, 06:22 PM   #8
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,068
Karma: 7874545
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by JSWolf View Post
You don't need regex if the cases are the same. You can change C.S. Lewis into CS Lewis and C. S. Lewis into CS Lewis without regex.
Uhhhh... How? I don't see any way in those rules to change the "spelling" of an author other than with regex.
chaley is offline   Reply With Quote
Old 07-10-2020, 06:28 PM   #9
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,490
Karma: 58055868
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 chaley View Post
Uhhhh... How? I don't see any way in those rules to change the "spelling" of an author other than with regex.
Me neither stripping dot and or optional spaces

Search <<<Not tested
([A-Z])\.*\s*([A-Z])\.*\s*(.+)

Replace
\1\2 \3
theducks is offline   Reply With Quote
Old 07-11-2020, 07:03 AM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,830
Karma: 138235604
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by chaley View Post
Uhhhh... How? I don't see any way in those rules to change the "spelling" of an author other than with regex.
Here one way to do it without regex.

Click image for larger version

Name:	Lewis01.JPG
Views:	252
Size:	26.3 KB
ID:	180531
JSWolf is online now   Reply With Quote
Old 07-11-2020, 07:14 AM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,830
Karma: 138235604
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The best way to do it does use regex.

Click image for larger version

Name:	Lewis01.JPG
Views:	158
Size:	23.7 KB
ID:	180532
JSWolf is online now   Reply With Quote
Old 07-11-2020, 07:39 AM   #12
georgemk
Addict
georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.
 
Posts: 237
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
@JSWolf
The OP was asking for a general way to change any author. The CS Lewis change was an example of what they wish to change. Why are you fixated on one name when the post title points to a general change of name?
georgemk is offline   Reply With Quote
Old 07-11-2020, 08:24 AM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,830
Karma: 138235604
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by georgemk View Post
@JSWolf
The OP was asking for a general way to change any author. The CS Lewis change was an example of what they wish to change. Why are you fixated on one name when the post title points to a general change of name?
There is no general way to deal with different author names. You have to have a separate entry for each author.
JSWolf is online now   Reply With Quote
Old 07-11-2020, 09:31 AM   #14
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,064
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
The reason I settled on getting the Author(s) and Title from the file name was that I find it easier to get the values I want using my file manager's simple UI and 3rd party renamers etc. And they are the same tools I use to create a file name for everything else.

If I get the author and title right and I can extract the ISBN I can download the rest or type it into the Book List cells.

BR
BetterRed is offline   Reply With Quote
Old 07-15-2020, 05:50 PM   #15
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
Quote:
Originally Posted by georgemk View Post
@JSWolf
The OP was asking for a general way to change any author. The CS Lewis change was an example of what they wish to change. Why are you fixated on one name when the post title points to a general change of name?
GeorgeMK is correct. The CS Lewis name was just one example.

Are you folks sure Regex can't automate this?
droopy 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
hello from e charn lew eric_charn_lew Introduce Yourself 1 03-25-2020 05:40 AM
Other Fiction Tolstoi, Lew: Erzählungen [German] v2; 30.07.2017 Karl May ePub Books 0 03-27-2017 02:28 PM
Other Fiction Tolstoi, Lew: Auferstehung. [German]. 20-Nov-2010 weatherwax Kindle Books 0 11-20-2010 11:07 AM
Other Fiction Tolstoi, Lew: Auferstehung. [German]. 20-Nov-2010 weatherwax ePub Books 0 11-20-2010 11:05 AM
Wallace, Lew: Ben-Hur. v1. 9 May 07 HarryT BBeB/LRF Books 5 05-10-2007 06:20 PM


All times are GMT -4. The time now is 03:51 PM.


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