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 01-08-2010, 11:28 AM   #1
LARdT
The LARdT of E-Books
LARdT began at the beginning.
 
LARdT's Avatar
 
Posts: 106
Karma: 46
Join Date: Dec 2009
Device: HANLIN V3ext (Papyre 6.1)
Functions for directory & file naming

Dear Kovid,

Are there any functions available to apply them to metadata for directory and file naming?
Now that Calibre supports file naming configuration in the uploading of books to the e-reader I am thinking in features that are common in mp3 name file handling such as:

- Upper: converts name to uppercase
- lower: convert to uppercase
- Capitalize: capitalize (every first letter of each word converted to uppercase)
- Title: First letter of title converted to uppercase, the rest lowercase
...

I think you get the idea. I suppose that could be added easily as a python plugin (if I had the lesser idea about Python, i'll try myself).
LARdT is offline   Reply With Quote
Old 01-08-2010, 01:26 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,449
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No plans for the moment, I have other features I am working on, but feel free to open a ticket, maybe one of the other calibre developers will be interested.
kovidgoyal is offline   Reply With Quote
Old 01-08-2010, 06:44 PM   #3
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
There is support in the right click menu for changing the case of the metadata fields. However, it currently only works when editing existing metadata. There is no way as of yet to apply one of the case changes when importing.
user_none is offline   Reply With Quote
Old 01-09-2010, 07:57 AM   #4
LARdT
The LARdT of E-Books
LARdT began at the beginning.
 
LARdT's Avatar
 
Posts: 106
Karma: 46
Join Date: Dec 2009
Device: HANLIN V3ext (Papyre 6.1)
Thanks for the info.
Anyway I'll try a ticket. The whole point of it is beign sure that filenames in PC and Device will be consistent just in case there is an error in the metadata
LARdT is offline   Reply With Quote
Old 01-09-2010, 01:06 PM   #5
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,284
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by LARdT View Post
Thanks for the info.
Anyway I'll try a ticket. The whole point of it is beign sure that filenames in PC and Device will be consistent just in case there is an error in the metadata
Until someone allows a substring of a field:{author_sort:1a}
You could manually set the Literal value for the single Alpha char of the directory you want.

B/{author_sort}...
Now save all authors that sort to 'B' (Butcher, Bujold, Bradley, Bradburry...)

Change the letter to 'C' and repeat for that group. (Cherryh, Campbell, Carver...)
theducks 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
transliteration in file&directory names vadim_k Calibre 4 11-14-2011 08:04 AM
File naming on Kindle tomsem Calibre 2 09-15-2010 02:05 AM
File naming convention for best import result? Belfaborac Calibre 1 06-07-2010 10:14 AM
File directory corruption in IR1000S physics@war iRex 3 02-08-2010 09:56 AM
File naming strangeness HarryT iRex 2 06-05-2009 12:39 PM


All times are GMT -4. The time now is 08:15 AM.


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