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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2010, 12:34 PM   #1
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
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:
http://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.
kiwidude is offline   Reply With Quote
Old 10-11-2010, 12:41 PM   #2
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: 26,338
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As user_none said, there is no good algorithm to distinguish this.
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 10-11-2010, 01:17 PM   #3
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
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?
kiwidude is offline   Reply With Quote
Old 10-11-2010, 01:19 PM   #4
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: 26,338
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not in english, but who says title must only be in english.
kovidgoyal is offline   Reply With Quote
Old 10-11-2010, 01:20 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: 26,338
Karma: 5382313
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.
kovidgoyal is offline   Reply With Quote
Old 10-11-2010, 01:38 PM   #6
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Quote:
Originally Posted by kovidgoyal View Post
Just use the search and replace with an appropriate regex to fix 'S in your titles if you're sure it is always wrong.
Ahh... the "developer's response"... Please don't take offense, I am a software developer myself.

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?
kiwidude is offline   Reply With Quote
Old 10-11-2010, 01:40 PM   #7
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: 26,338
Karma: 5382313
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 01:48 PM.
kovidgoyal 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
Title Case Dopedangel Calibre 6 10-16-2009 09:01 AM
DX: Contrast has Been Improved ny10522 Amazon Kindle 3 06-15-2009 03:46 AM
Has E-ink improved? Kilarney Which one should I buy? 4 03-14-2009 08:01 PM
txt2lrf - New and Improved kovidgoyal LRF 42 02-10-2009 08:41 AM
Improved the case by cutting a hole KlondikeGeoff Amazon Kindle 3 03-06-2008 07:11 PM


All times are GMT -4. The time now is 12:26 PM.


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