10-11-2010, 11:34 AM | #1 |
calibre/Sigil Developer
Posts: 4,601
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Any chance of 'Title Case' being improved?
Using the 'Title Case' function in Calibre has a problem with pluralised hyphenated titles - e.g. "Aesop's Fables", which after using becomes "Aesop'S Fables".
Given how frequently the metadata Calibre pulls from has the titles annoyingly lowercased this casing feature becomes rather less useful than it otherwise should be given the frequency of "'s" is in book titles. I found a thread from a year ago on this which discussed the why but the proposed solution was left unaswered and unimplemented: https://www.mobileread.com/forums/showthread.php?t=59416 Any chance this will be revisited? Or is there another way of working around this? Another option I would like to see offered is "Proper Case", which is where the first letter of every word is uppercased, i.e. don't try to be clever with words like "a" and "the". Many thanks for your response. |
10-11-2010, 11:41 AM | #2 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
As user_none said, there is no good algorithm to distinguish this.
|
Advert | |
|
10-11-2010, 12:17 PM | #3 |
calibre/Sigil Developer
Posts: 4,601
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Can I ask what was wrong with the suggestion of detecting whether it is a single character preceded by an apostrophe and followed by a space? Can you suggest some titles where this would not work?
|
10-11-2010, 12:19 PM | #4 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not in english, but who says title must only be in english.
|
10-11-2010, 12:20 PM | #5 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just use the search and replace with an appropriate regex to fix 'S in your titles if you're sure it is always wrong.
|
Advert | |
|
10-11-2010, 12:38 PM | #6 | |
calibre/Sigil Developer
Posts: 4,601
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Two things. Firstly, good point on the rule maybe only working on english titles. However given that I would "guess" (with no empirical evidence) that a very high percentage of the books that Calibre users worldwide are indeed English titles, surely it's a "cheap win" to at least consider offering it as an option in the settings somewhere? There really is a very high percentage of pluralised titles out there, at least in my library. Secondly, thanks for the proposed workaround. However putting aside the temporary pain of brushing up on my regex expressions, I don't have a high degree of confidence in the search/replace function. It seems to have a strange behaviour and only work on a subset of the "selected" titles when I have tried it a couple of times today in 0.7.23. When I had around 100 titles selected, it would only make the changes to the last third or so of them from memory, so when done only those ones would be selected and changed? |
|
10-11-2010, 12:40 PM | #7 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You dont actually have to use a regex a simple substitution will do.
EDIT: And if you dont want to give offence, don't make offensive statements Last edited by kovidgoyal; 10-11-2010 at 12:48 PM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Title Case | Dopedangel | Calibre | 6 | 10-16-2009 08:01 AM |
DX: Contrast has Been Improved | ny10522 | Amazon Kindle | 3 | 06-15-2009 02:46 AM |
Has E-ink improved? | Kilarney | Which one should I buy? | 4 | 03-14-2009 07:01 PM |
txt2lrf - New and Improved | kovidgoyal | LRF | 42 | 02-10-2009 07:41 AM |
Improved the case by cutting a hole | KlondikeGeoff | Amazon Kindle | 3 | 03-06-2008 06:11 PM |