![]() |
#1 |
Bozana
![]() Posts: 17
Karma: 10
Join Date: Jan 2013
Device: PC
|
![]()
I would love to have a feature that is Propercase, which is every single first letter, is Uppercase, such as a to A or the to The. Titlecase only goes so far, however, I would strongly prefer Propercase. Is there a way I could do this with Regular Expression for titles of books, please?
|
![]() |
![]() |
![]() |
#2 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,798
Karma: 27405122
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
The free version is adequate for most things. For me the big advantage is that can be used just about anywhere - calibre metadata and book editing, file manager, word processors, spread sheets, text editors, etc, etc. Avoids having to remember a dozen different ways to do essentially the same thing in a dozen different programs. BR |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,216
Karma: 23446406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sure use function mode and write a simple function to do that. You can use the builtin case functions as a guide for how to write the function. https://manual.calibre-ebook.com/function_mode.html
|
![]() |
![]() |
![]() |
#4 | |
Bozana
![]() Posts: 17
Karma: 10
Join Date: Jan 2013
Device: PC
|
Quote:
However, it doesn't do on mass, with over 45k worth of titles in Calibre. I need a regex script that works with Calibre to do it on mass. Anyone has ideas please? I have Magic File Renamer By Fine Bytes, that is useful but only renames files and nothing to do with Calibre. Thank you BetterRed for trying xoxoxo |
|
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,798
Karma: 27405122
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
The calibre book editor doesn't edit metadata - the way to do what you want is select multiple books in the book list, then Metadata edit->Edit metadata in bulk, viz:
BR |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Bozana
![]() Posts: 17
Karma: 10
Join Date: Jan 2013
Device: PC
|
Quote:
Title case: He Lives in Edmonton, but Services all Over the Region, as a Electrican Proper Case: He Lives In Edmonton, But Services All Over The Region, As A Electrican I already know that trick with Title Case that you've showed... I'm chasing Proper Case... Thank you anyway. ![]() |
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,870
Karma: 7036359
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
EDIT: This template uses the python title() function to "Return a titlecased version of the string where words start with an uppercase character and the remaining characters are lowercase." It does a better job in some cases but suffers from changing words like "isn't" to "Isn'T". Code:
python: def evaluate(book, context): return book.get('title').title() Last edited by chaley; 06-10-2024 at 12:12 PM. |
|
![]() |
![]() |
![]() |
#8 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,798
Karma: 27405122
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#9 | |
Bozana
![]() Posts: 17
Karma: 10
Join Date: Jan 2013
Device: PC
|
![]() Quote:
![]() And yes it works and I'm so happy! You've made my day! ![]() ![]() |
|
![]() |
![]() |
![]() |
#10 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,433
Karma: 152905840
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
OTOH, your books and your choice for the titles. |
|
![]() |
![]() |
![]() |
#11 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Aug 2024
Device: Samsung Tablet Galaxy Tab A7 (Cantook)
|
Quote:
I do (I think) exactly what it says and still it gives me the wrong result. What am I doing wrong? |
|
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 10
Karma: 10
Join Date: Aug 2024
Device: Samsung Tablet Galaxy Tab A7 (Cantook)
|
Anybody else that can help me ?
![]() |
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,870
Karma: 7036359
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You didn't correctly follow the example. See the attachment.
|
![]() |
![]() |
![]() |
#14 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,433
Karma: 152905840
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
One item I noticed when I was looking at this was in that the section under Test text which I was expecting to see the original title shows the modified title. I had renamed the 3 books I was testing with to all lower case. OTOH, if I put text in the test box, it does not appear to be be affected. 'this is a test title' remains all in lower case though that may be expected.
Last edited by DNSB; Today at 01:59 PM. |
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,870
Karma: 7036359
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
It is showing you the text indicated by the "Search field". If the search field is "template" it shows you that, the result of the template. The "Test result" column shows the text after transforms are applied to the search field. When using templates usually there aren't any, but there can be.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
10% Credit Towards Great on Kindle Titles When Purchasing One of Those Titles | Manabi | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 11-01-2019 01:07 AM |
my kindle doesn't show proper file name in case of pdfs | barteq | Devices | 1 | 03-06-2017 10:09 PM |
kindle origami voyage case or the leather origami case? want a simple case | wakkaday | Amazon Kindle | 14 | 10-19-2016 12:56 PM |
Sigil Proper Case Setting | Themus | Sigil | 14 | 04-26-2013 03:47 AM |
change book file name from capital letters to proper case | tsolignani | Library Management | 12 | 03-28-2013 04:16 AM |