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 03-30-2014, 04:04 AM   #1
CC-GoE
Junior Member
CC-GoE began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2014
Device: none
Capitalize

HI!
Is it possible to tell Calibre to Capitalize all the book titles in my library?
That is, to give the first letter of each word, a Capital letter:

Hello, What Are You Doing There?
CC-GoE is offline   Reply With Quote
Old 03-30-2014, 04:12 AM   #2
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,611
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@CC-GoE - Try select all books, Edit Metadata, check Change title to title case - it's just above Change cover

BR
BetterRed is offline   Reply With Quote
Advert
Old 03-30-2014, 04:50 AM   #3
CC-GoE
Junior Member
CC-GoE began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2014
Device: none
Quote:
Originally Posted by BetterRed View Post
@CC-GoE - Try select all books, Edit Metadata, check Change title to title case - it's just above Change cover

BR
Thanks.
I did that but titles are the same.
In particular, I am interested for the words:
"a", "in", "the", "of" etc.
Can they be automatically changed somehow to Capital?
CC-GoE is offline   Reply With Quote
Old 03-30-2014, 04:53 AM   #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)
Because that isn't title case. You can use a regex on the titles, though. Can't remember what the regex is to capitalize a letter at the moment.
eschwartz is offline   Reply With Quote
Old 03-30-2014, 06:47 AM   #5
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,325
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by eschwartz View Post
Because that isn't title case. You can use a regex on the titles, though. Can't remember what the regex is to capitalize a letter at the moment.
Python regexps don't have replacement target processing like the ones in VI. However, there is a way to do it using calibre's post processing on search/replace. The idea is to find each word one by one then capitalize that word. 'Twas a bit of a challenge to work it out. You can see it in the screen capture of the bulk metadata search and replace I used. The text of the regexp in that capture is
Code:
((?<=^)|(?<= ))(.*?)(?= |$)
which means look-behind for a space or the beginning of the text, then match as little as possible until a look-ahead for a space or the end of the text succeeds.
Attached Thumbnails
Click image for larger version

Name:	Clipboard02.png
Views:	374
Size:	57.9 KB
ID:	121016  
chaley is offline   Reply With Quote
Advert
Old 03-30-2014, 06:54 AM   #6
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: 45,164
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@chaley: You could just use the regex engine's boundary operator.
kovidgoyal is offline   Reply With Quote
Old 03-30-2014, 07:05 AM   #7
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,325
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
@chaley: You could just use the regex engine's boundary operator.
Tried "\b(.*?)\b" and "\b(.*)\b", and they don't work. It seems that the first one should, but I didn't feel like taking the time to work it out why it doesn't.

Ahh ..., "\b(\S*)\b" does work, as does "(\S*)".
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Capitalize first word in sentence with search and replace? ianc Conversion 6 10-21-2013 04:47 PM
Can I capitalize a letter? Jorge Junior ePub 13 11-14-2012 10:30 PM
How not to capitalize titles from meta data? rogue_librarian Library Management 14 12-10-2011 08:31 PM
Capitalize Authors Names iridius Library Management 7 03-09-2011 12:38 AM


All times are GMT -4. The time now is 08:57 AM.


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