![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: May 2021
Device: kindle
|
![]()
Does anyonne else have the problem that
Edit metadata in bulk -> apply function after replace -> Title Case does not put a capital on various works like "in" "the" "a" etc For example "a witch in the time of the lords" should become "A Witch In The Time Of The Lords" but actual becomes "a Witch in the Time of the Lords" Somewhere in Calibre there must be a list of words that are not to be give a capital letter. Anyone know where and can they be remove? |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Moderator Notice
Moved out of development. Please comply with the stickie there |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Check the Language setting for that book
|
![]() |
![]() |
![]() |
#4 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Which conforms to the major Style Guides see Title case - Wikipedia Example: Killers of the Flower Moon (2023) - IMDb BR |
|
![]() |
![]() |
![]() |
#5 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,010
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Normally a, is, the, in, of and similar are not capitalised unless at the start. That's what Title Case means. There are edge cases that vary between Style Guides (and languages vary). But certainly absolutely every word Capitalised is not Title Case in English.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Preferred pronouns: We/Us
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 533346
Join Date: Jun 2014
Location: <--- Over There, USA
Device: Kindle PW 2
|
When you change the case, choose Capitalize. It's the wrong thing to do (says my inner librarian), but you do you.
![]() |
![]() |
![]() |
![]() |
#7 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
On a vanilla calibre 6.29 install on Windows 10; Capitalise case changes "a witch in the time of the lords" to "A witch in the time of the lords", which some tools refer to as Sentence case. BR |
|
![]() |
![]() |
![]() |
#8 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,010
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
I agree. Calibre's Capitalise is simply "sentence case", i.e. capitalise first letter of title.
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
One can do what I think the OP wants, all words capitalized, using template mode in search & replace. (Personally I think capitalizing every word is wrong, but the OP is in charge of the OP's library.)
If the titles don't contain non-alphabetic characters other than space then this GPM template does the job. Code:
program: new_title = list_re_group($title, ' ', '.', '(.*)', 'program: capitalize($)') If the titles do contain non-alphabetic characters such as colons and you want strings like foo:bar to become Foo:Bar then this python template gets close. Code:
python: def evaluate(book, context): import re nt = [] for w in re.split(r'([() :-]+)', book.get('title')): nt.append(w.capitalize()) return ''.join(nt) The first template probably gets most of the way there. I wouldn't try to get too fancy, instead correcting any "mistakes" by hand. The search/replace looks like this, with the desired template in the template box. |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: May 2021
Device: kindle
|
OK Chaley, thankyou, that looks like it should do what I want.
iIt is a bit beyond my programming capabilities so I will copy some books into a small library and give it a try. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. | MarjaE | Library Management | 1 | 03-30-2021 11:46 AM |
A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 04:36 PM |