07-17-2011, 02:21 AM | #1 |
Guru
Posts: 973
Karma: 4269175
Join Date: Apr 2010
Location: Europe
Device: Pocketbook Basic 613
|
How not to capitalize titles from meta data?
Is there a way to turn off capitalizing of book titles for downloaded meta data? It's not appropriate in German or French, and I find myself going into the title field every time to undo the auto-capitalization. Surely there's a way to turn this off?
On a case by case basis would be best (it's useful in English), but I'lll turn it off completely if I have to (and that is an option). Many thanks in advance. |
07-17-2011, 05:26 AM | #2 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Not as far as I know. If you let the metadata update the title field you are at the mercy of the metadata supplier as far as case is concerned.
Do you even need the downloaded metadata to update the title field? If not you can simply disable that update. |
07-17-2011, 09:26 AM | #3 | ||
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
||
07-17-2011, 06:35 PM | #4 |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
I used to get lower case metadata often and never do now, so calibre might capitalize the titles in newer versions. I like it this way but some mightn't.
The change case option (right click menu) works from both the metadata and the gui and is easier than retyping manually. Helen |
07-18-2011, 03:26 AM | #5 |
Guru
Posts: 973
Karma: 4269175
Join Date: Apr 2010
Location: Europe
Device: Pocketbook Basic 613
|
But it doesn't really work with German, e.g., where only nouns are capitalized. Sure, I can use lower-case for the whole title, but I'll still need to change back the remaining words. I'd rather the meta data were correct (if it is), and Calibre left it alone.
Can anybody confirm that this is, in fact, not Calibre's doing but that the meta data comes in that way, i.e. improperly capitalized in the first place? |
07-18-2011, 06:06 AM | #6 | |
Fanatic
Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
|
Quote:
Smile, I'm Dutch and the first thing I see when I read German is ALL those capitals. We only capitalize the first word in a sentence. But in a book title we can capitalize. The only exceptions are words like 'de' and 'een' (the and a) But I have to do that by hand, Calibre isn't doing it for me unless I select Change Case -> Title Case. When I download meta data from an external source I'm dependant on that source. |
|
08-28-2011, 05:21 PM | #7 | |
Member
Posts: 13
Karma: 10
Join Date: Aug 2011
Device: Kindle 3
|
Quote:
I'm sure of that, as I'm in process of writing my own plugin for metadata download from polish source. The title downloaded from source is capitalized (meaning - only first word of title starts with capital letter). I do not change the case of title. And after metadata update the case is changed to title case. e.g.: Gra o tron (title from source) Gra O Tron (after metadata update) And this is generally an error. |
|
08-29-2011, 05:15 PM | #8 | |
Fanatic
Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
|
Quote:
I used the title: Het Leven, Het Heelal en De Rest The source it uses lower case for en and it stays like that. The lower case for en is correct. The upper case for De is incorrect. It shows up in Calibre exactly as it was in the source as can be seen from the plugin that grabs the meta data Last edited by Ortep; 08-29-2011 at 05:20 PM. |
|
08-30-2011, 04:52 AM | #9 | |
Member
Posts: 13
Karma: 10
Join Date: Aug 2011
Device: Kindle 3
|
Quote:
"Gra o tron" In goodreads.com you have: http://www.goodreads.com/book/show/6184496-gra-o-tron So only first word is capitalized. Rest is lowercase. It is ok for polish language. After import metadata to calibre you have: Gra O Tron which looks as oddly in Polish "A song Of ice And fire" in English. |
|
09-09-2011, 04:50 AM | #10 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jun 2009
Device: Jetbook, Pocketbook IQ 701 also Sony TH-55
|
To remove auto capitalization comment out two lines in file base.py
Code:
--- 373,374 in version 0.16 if mi.title: mi.title = fixcase(mi.title) --- |
09-09-2011, 04:59 AM | #11 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Title case is "intelligently" corrected. This works well for english titles, not so well for others. If you are writing a plugin for another language, you can disable this by simply not calling the clean_downloaded_metadata method or implemnting your own logic for it.
|
09-29-2011, 06:04 PM | #12 |
Member
Posts: 13
Karma: 10
Join Date: Aug 2011
Device: Kindle 3
|
|
12-10-2011, 04:07 AM | #13 |
Enthusiast
Posts: 30
Karma: 10
Join Date: Nov 2011
Device: none
|
@kovidgoyal:
I do not have any idea concerning programming. You say "Title case is "intelligently" corrected." Does this mean Calibre DOES set title case? If so, I still do not understand why there is no option in the Calibre GUI to leave the title as it comes from the metadata provider. |
12-10-2011, 08:28 AM | #14 | |
Well trained by Cats
Posts: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Your example: Goodreads would affect all languages if the author disabled the feature. I turned OFF Title and Author lon ago as I was tired of the source correcting my correct entry (I had the dead tree copy in my hands). |
|
12-10-2011, 08:31 PM | #15 |
Junior Member
Posts: 5
Karma: 10
Join Date: Aug 2011
Device: ipad, android
|
@kovidgoyal:
I realy love your work and your plugin for amazone metadata too. Thank you very much for all your work! But the "intelligent correction" makes me crazy. I have changed the source to german amazone, which provides correctly capitalized title datas for german books. But with your plugin almost all capitalizations get incorrect and I had to correct them manualy for hours and hours. It would be realy very helpfull, if autocorrection could be set off bei a simple button or so in your amazone plugin gui as I am not a programmer and can not write my own plugin. Thank you in advance. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
series and meta data | Toxaris | Calibre | 2 | 02-07-2011 02:08 AM |
ePub meta data | brudigia | ePub | 4 | 07-26-2010 12:58 PM |
set meta data with ebook-meta and ebook-convert | krischik | Calibre | 6 | 01-19-2010 11:40 AM |
Meta data problems | melhall | Sony Reader | 1 | 03-31-2008 10:58 PM |
PRS-500 Meta Data in Vista not available | Gamgee72 | Sony Reader Dev Corner | 2 | 09-12-2007 05:12 PM |