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-26-2010, 12:02 PM   #1
Seanette
Addict
Seanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-books
 
Seanette's Avatar
 
Posts: 250
Karma: 834
Join Date: Oct 2010
Location: Sacramento, CA
Device: Motorola Triumph w/Android 4.0.4 (custom ROM) w/FBReader, Vista laptop
Conversion to title case

First, let me say I love Calibre. Very easy to use and does everything I need from it and then some.

I would like to respectfully suggest for future upgrades, though, that the bit that converts titles to title case be slightly tweaked, since it insists on capitalizing "of", "the", "and", and similar words not normally capitalized in titles unless the first word or occurring after a separator like a colon.

I have no clue how feasible this may or may not be, just kind of throwing it out there to get whatever consideration it may or may not deserve.
Seanette is offline   Reply With Quote
Old 10-26-2010, 02:11 PM   #2
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 5,459
Karma: 831552
Join Date: Jan 2010
Location: France
Device: Many android devices
Something like this was done last week, but isn't released yet.

The 'rules' are described at http://daringfireball.net/2008/05/title_case.
chaley is offline   Reply With Quote
Old 10-26-2010, 09:29 PM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,839
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by chaley View Post
Something like this was done last week, but isn't released yet.
It seems to be in the current release (0.7.24) and works as advertised. Maybe it will make it to the change log next release.

Update: Bulk edits still use the capitalize everything approach.

Last edited by DoctorOhh; 10-26-2010 at 09:58 PM.
DoctorOhh is offline   Reply With Quote
Old 10-26-2010, 09:41 PM   #4
Seanette
Addict
Seanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-books
 
Seanette's Avatar
 
Posts: 250
Karma: 834
Join Date: Oct 2010
Location: Sacramento, CA
Device: Motorola Triumph w/Android 4.0.4 (custom ROM) w/FBReader, Vista laptop
Quote:
Originally Posted by dwanthny View Post
It seems to be in the current release (0.7.24) and works as advertised. Maybe it will make it to the change log next release.
Having trouble finding my version number, but I just downloaded the software within the last week and am finding the oddity mentioned in my first post in the thread.
Seanette is offline   Reply With Quote
Old 10-26-2010, 09:43 PM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,839
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Seanette View Post
Having trouble finding my version number, but I just downloaded the software within the last week and am finding the oddity mentioned in my first post in the thread.
It uses the method described in rules linked previously to individual title case changes (see attached), but if you use the bulk title case changes it still uses the old capitalize everything rules. Hopefully the change to the bulk edit window will be in the next release.
Attached Thumbnails
Click image for larger version

Name:	Title_case.jpg
Views:	93
Size:	59.6 KB
ID:	60251  

Last edited by DoctorOhh; 10-26-2010 at 09:54 PM.
DoctorOhh is offline   Reply With Quote
Old 10-26-2010, 10:00 PM   #6
Seanette
Addict
Seanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-books
 
Seanette's Avatar
 
Posts: 250
Karma: 834
Join Date: Oct 2010
Location: Sacramento, CA
Device: Motorola Triumph w/Android 4.0.4 (custom ROM) w/FBReader, Vista laptop
Quote:
Originally Posted by dwanthny View Post
It uses the method described in rules linked previously to individual title case changes (see attached), but if you use the bulk title case changes it still uses the old capitalize everything rules. Hopefully the change to the bulk edit window will be in the next release.
I've been doing the case changes while editing metadata, and am in fact getting the result I described above. The alleged change in code is apparently not working in my installation.

How in the world do you find your version number in Calibre, anyway? I tried everything I could think of.

Last edited by Seanette; 10-26-2010 at 10:03 PM.
Seanette is offline   Reply With Quote
Old 10-26-2010, 10:26 PM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,839
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Seanette View Post
I've been doing the case changes while editing metadata
As long as it is an individual Title Case change it is working for my Windows XP version of calibre 0.7.24. I wouldn't worry about it working or not until it is officially in the change log. Hopefully in the next release.

Quote:
Originally Posted by Seanette View Post
How in the world do you find your version number in Calibre, anyway? I tried everything I could think of.
Version number is in the lower left status bar (see attached).
Attached Thumbnails
Click image for larger version

Name:	version.jpg
Views:	57
Size:	183.7 KB
ID:	60252  

Last edited by DoctorOhh; 10-26-2010 at 10:32 PM.
DoctorOhh is offline   Reply With Quote
Old 10-26-2010, 11:17 PM   #8
Seanette
Addict
Seanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-books
 
Seanette's Avatar
 
Posts: 250
Karma: 834
Join Date: Oct 2010
Location: Sacramento, CA
Device: Motorola Triumph w/Android 4.0.4 (custom ROM) w/FBReader, Vista laptop
Quote:
Originally Posted by dwanthny View Post
Version number is in the lower left status bar (see attached).
I'm on Vista with 0.7.24 (shrug). It's not a huge functionality issue, just a minor thing that probably only really bugs slightly OCD types.

As for finding the version number , my grandfather would have said "if that had teeth, it would have bitten you".

Honest, I have a brain, and it even works most of the time.
Seanette is offline   Reply With Quote
Old 10-27-2010, 03:42 AM   #9
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 5,459
Karma: 831552
Join Date: Jan 2010
Location: France
Device: Many android devices
Could you give an example where it fails? By 'example', I mean a series of steps and some before and after values?

I ask because as dwanthny said, my 'fixes' affect bulk and template functions. The 'correct' title case function has been in edit metadata (single) for months (and it isn't alleged). Therefore either a) you have found another pathway to title case, b) you have a title that the function thinks it shouldn't change, of c) you are running a different calibre than the rest of the world.
chaley is offline   Reply With Quote
Old 10-27-2010, 04:27 AM   #10
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
One edge case that gets me now and again is when I'm navigating the actual filesystem via CLI - it's that the Title Case changes only affect the DB - they don't change the original filename like other metadata edits do. However newly created/converted files follow the case changes. That leads to confusion when I'm using tab completion from the command line and not finding the specific version of the file I wanted.
ldolse is offline   Reply With Quote
Old 10-27-2010, 09:30 AM   #11
Seanette
Addict
Seanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-booksSeanette has learned how to read e-books
 
Seanette's Avatar
 
Posts: 250
Karma: 834
Join Date: Oct 2010
Location: Sacramento, CA
Device: Motorola Triumph w/Android 4.0.4 (custom ROM) w/FBReader, Vista laptop
Quote:
Originally Posted by chaley View Post
Could you give an example where it fails? By 'example', I mean a series of steps and some before and after values?

I ask because as dwanthny said, my 'fixes' affect bulk and template functions. The 'correct' title case function has been in edit metadata (single) for months (and it isn't alleged). Therefore either a) you have found another pathway to title case, b) you have a title that the function thinks it shouldn't change, of c) you are running a different calibre than the rest of the world.
At this point, I suspect it's a different pathway issue.
Seanette is offline   Reply With Quote
Old 10-27-2010, 10:01 AM   #12
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: 25,952
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by ldolse View Post
One edge case that gets me now and again is when I'm navigating the actual filesystem via CLI - it's that the Title Case changes only affect the DB - they don't change the original filename like other metadata edits do. However newly created/converted files follow the case changes. That leads to confusion when I'm using tab completion from the command line and not finding the specific version of the file I wanted.
This will be on a case insensitive file system?
kovidgoyal is offline   Reply With Quote
Old 10-27-2010, 10:41 AM   #13
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by kovidgoyal View Post
This will be on a case insensitive file system?
No, I'm on OSX, case sensitive hfsplus. If it was case insensitive I don't think it would matter as the filenames would be equal regardless of case. I'm sure Windows users never notice this one.

It basically goes like this to be more clear. I add a book like this:
"this IS my test title.lit"

Tab completion works just by typing 't' in the directory and hitting tab.

After adding the book and editing metadata etc, Calibre will change the book title in the DB to something like this:
"This is my Test Title"

Since the title didn't change other than case the file isn't renamed.

Now if I convert the book to epub for example the new filename is:
"This is my Test Title.epub"

I'm often working with ebook-convert from the command line (but after I've done stuff from the GUI), and now tab completion doesn't work until I choose one case or the other(usually unconsciously) and then I spend a few seconds wondering why I get 'file not found' on whatever variant I thought I was converting from before realizing that I got bit by this behavior.
ldolse is offline   Reply With Quote
Old 10-27-2010, 10:52 AM   #14
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: 25,952
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I can't replicate that behavior on case sensitive linux. If I change the case of a title, the folder the files are stored in as well as the files themselves are renamed with the new case.

I don't have a case sensitive OS X machine to test on, but as far as I know, there is no difference in the code path for OS X and linux.
kovidgoyal is offline   Reply With Quote
Old 10-27-2010, 11:00 AM   #15
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
OK, well I've never looked into this in detail before, but I'll see if I missed something in how I'm doing it to myself (never worried about it much, but this thread prompted me to mention it).

When was this auto case changing function added? Would having books in the db from before the feature was added be part of it?
ldolse 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
Any chance of 'Title Case' being improved? kiwidude Calibre 6 10-11-2010 12:40 PM
conversion to FB2 error with & in title tselling Calibre 2 01-07-2010 11:46 PM
Title Case Dopedangel Calibre 6 10-16-2009 08:01 AM
Waterfield Slipcase, sleeve case, & Travel Case albert1028 Amazon Kindle 5 03-27-2009 07:44 PM
Sony's Premium Leather case v. M-edge 505 Case thorswitch Sony Reader 23 12-16-2008 03:24 PM


All times are GMT -4. The time now is 08:55 PM.


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