|
|
#1 |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2012
Location: Hong Kong
Device: Kindle Touch, firmware 5.1.2
|
author-title metadata and file name
I'm a complete newbie. My question may have been answered in the past, in which case please forgive me and please point me to the url. I have the latest calibre. I'm only using its viewer at present, but have begun experimenting with metadata. I have a bunch of epubs and mobis downloaded from various sources like amazon, guttenberg, archive.org, and so on. They come with different manners of metadata and convention for file names. I'd like to adopt my own convention for the whole lot. I want: The file NAME to be "Author - Title - Language.epub" or "Author - Title - Language.mobi", e.g. "Joannot Martorell - Tirant lo blanc - Catalan.mobi" and "Joannot Martorell - Tirant lo blanc - Espanol.epub" AND the metadata to be consistent with the file name. Currently Calibre does the opposite: title first, author second. Now I did see the much-advertised option to swap the title and the author, and that does indeed give me the correct file name, but then calibre displays Joannot Martorell as "title" and "Tirant lo blanc" as "author", which is wrong. It's a little weird because Calibre itself orders things in folders sorted by author names, so somehow recognizes that sorting by author names is the way to go, but then does not apply this logic to the naming of the file. Note that at present I am getting "Title - Author.mobi" and the "language" I am adding into the title itself on a case by case basis. But of course I'd really like to automate the process, with calibre reading the "language" and adding it to the file name after author and title. I don't mind having long file names, I don't want them to be cropped, is there a way to extend the maximum number of characters allowed for a file name? Also, as an extra (easier) question, how can I clear a "field"? For instance, I'd like to remove all ratings and all genres for all my files. I'm able to assign the same rating to all the files, but for some reason couldn't work out how to clear for all. many thanks! |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,587
Karma: 549131
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (stanza/iBooks/QuickReader)
|
You cannot affect the way that Calibre stores its files internally in its library (you should treat that as if it was a 'black box' and not try and mess with it). See this sticky for more on this.
You can control the folder/filename format used when Calibre exports books from the library by setting the "save to disk" template.
__________________
Calibre2opds: Calibre library as a web site - the popular alternative to the Calibre Content Server CLOUD SERVICES: Dropbox: Use this link to sign up for a free Dropbox account and both of us get an extra 500MB free space. Megacloud: Use this link to sign up for a free MegaCloud account and both of us get an extra 500MB free space. Copy.com: Use this link to sign up for a free Copy.com account and both of us get an extra 5GB free space. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2012
Location: Hong Kong
Device: Kindle Touch, firmware 5.1.2
|
thanks itimpi,
The reason I went into the library is that I'm using calibre to convert epub to mobi and that's where the .mobi files were stored. I'll never go there again. I did "save to disk" instead, and interestingly the folder hierarchy came out differently with a "title" folder inside a "surname, name" folder, but the file names remained unchanged as "title - name+surname.mobi". Are you saying I can change the format of that name when I use "save to disk"? How do I change the "file name" format for files I "save to disk" ? Many thanks for your help. And would you know how I can remove all ratings from all books? Thanks again. |
|
|
|
|
|
#4 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,587
Karma: 549131
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (stanza/iBooks/QuickReader)
|
Quote:
If you are using the "Send to Device" options then each output device plugin can be individually customized with its own save_template for that device.
__________________
Calibre2opds: Calibre library as a web site - the popular alternative to the Calibre Content Server CLOUD SERVICES: Dropbox: Use this link to sign up for a free Dropbox account and both of us get an extra 500MB free space. Megacloud: Use this link to sign up for a free MegaCloud account and both of us get an extra 500MB free space. Copy.com: Use this link to sign up for a free Copy.com account and both of us get an extra 5GB free space. |
|
|
|
|
|
|
#5 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,707
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Saving or Sending have preferences for setting preferred format order
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#6 |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2012
Location: Hong Kong
Device: Kindle Touch, firmware 5.1.2
|
thanks to both of you, itimpi and theducks, I'm getting closer.
I've managed to swap the author and title fields in the file after I "save to disk" by selecting the following template: {authors}/{authors} - {title} So that's pretty intuitive once you've worked out where to look. Thanks a lot for your help. It seems there's no way to batch-convert the authors format from "Twain, Mark" to "Mark Twain", correct me if I'm wrong. I also wanted to add language to the file name. Based on what I read there: http://manual.calibre-ebook.com/temp...codes-localize, I tried: {authors}/{authors} - {title} - {language_strings(lang_codes, localize)} Based on intuition, I also tried: {authors}/{authors} - {title} - {language} Neither works. Does anyone know how to do it? Many thanks. |
|
|
|
|
|
#7 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,707
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
First run the metadata check: find Authors with Commas Select all the results (de-select those you do not want to change) Then run the: Fix: Swap Author....
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#8 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
Quote:
Code:
{authors}/{authors} - {title} - {language:language_strings(1)}
Code:
{authors}/{authors} - {title} - {0:'language_strings(field('languages'), 1)'}
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
|
#9 | |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2012
Location: Hong Kong
Device: Kindle Touch, firmware 5.1.2
|
Quality Check Plugin
Quote:
The plugin is very easy to use. It has a huge amount of possibilities. Using it and some labor time, I've been able to clean up the different fields I find useful (title, author, language, Publisher [why isn't there a "translator" field and a "other authors" field (for preface, introduction, etc.)? an oversight!]). I've been able to fix the author names. I discovered that amazon is not consistent in naming, for instance, none other than... Cervantes, who is at times Miguel de Cervantes, at other times Miguel de Cervantes Saavedra, at times Miguel Cervantes (of course he was all of these and more). I'm still having a minor issue with the format of the titles, e.g. I get: "A. A. Milne - Red House Mystery, The.azw" when I'd rather have: "A. A. Milne - The Red House Mystery.azw" I haven't yet worked out how to not get the article "The" tagged at the end. The book title is the way I want inside calibre, but it is changed when saving to disk. This is my template: {authors}/{authors} - {title}. I tried both "language" and "languages" and neither worked. Ah but I notice a new post by chaley on the topic. Bottom line theducksP.S. While all my authors are listed alphabetically by the first name, e.g. John Stuart Mill is listed below "I" and before "K", the author A.A.Milne whom you'd expect to sit right at the top instead is immediately below John Stuart Mill, so the double A is ignored by calibre. Anyway, not to worry, it doesn't bother me, just a comment in passing. |
|
|
|
|
|
|
#10 | |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2012
Location: Hong Kong
Device: Kindle Touch, firmware 5.1.2
|
Quote:
This one worked in the Preferences -> Saving books to disks -> Template Editor: {authors}/{authors} - {title} - {0:'language_strings(field('languages'), 1)'}
|
|
|
|
|
|
|
#11 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,707
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
Sort is a Preference: Tweaks You don't want 'Library order' (2 places)
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#12 | |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2012
Location: Hong Kong
Device: Kindle Touch, firmware 5.1.2
|
Quote:
1. "Control sorting of titles and series in the Library display" 2. "Control formatting of titles and series when used in templates" "Control how title and series names are formatted when saving to disk/sending to device. The behavior depends on the field being processed. If processing title, then if this tweak is set to 'library_order', the title will be replaced with title_sort. If it is set to 'strictly_alphabetic', then the title will not be changed. " Changed it and it worked.
|
|
|
|
|
|
|
#13 |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2012
Location: Hong Kong
Device: Kindle Touch, firmware 5.1.2
|
I found an alternative way of tagging books by language. I used the "tags" field to set the language in the abbreviated form: en, es, fr, ca, la, ... for English, Spanish, French, Catalan, Latin, etc. And then I append this to the template - {tags} and it gives me:
Johanot Martorell - Tirant Lo Blanc - ca Johanot Martorell - Tirant Lo Blanc - es Johanot Martorell - Tirant Lo Blanc - en It's shorter and I like it better to have ca than to have Catalan. Thanks to all of you for your help! Now I really wish there were a "translator" field, because I have multiple translations of this book. (Cervantes praised it as the best ever, in case you're curious about the Tirant to blanc obsession running through this thread) EDIT: I found out that you can add your own column, e.g. translator, illustrator, other_authors, etc.. Great! Last edited by annoporci; 11-08-2012 at 04:08 AM. Reason: add info |
|
|
|
|
|
#14 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
Quote:
Code:
{authors}/{authors} - {title} - {language}
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
|
#15 | |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2012
Location: Hong Kong
Device: Kindle Touch, firmware 5.1.2
|
Quote:
well I refrained from redefining language from, say, Spanish to es, because I wasn't sure if Kindle would then recognize the correct language and pop the appropriate dictionary. I should, as you say, have created a custom column instead of hijacking the tags. However, I don't use the tags at all ("romance", "poetry" ... yes I know, they're my books! on the other hand I do need a quick way to identify books with the same title but different languages). I see that you can clear certain fields (like the tags) for a batch of books, but I haven't found how to do that for the ratings. cheers for now, thanks again for your help.
|
|
|
|
|
![]() |
| Tags |
| author, title |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't change title metadata of .mobi file? | dkgonda | Library Management | 1 | 03-04-2012 06:20 PM |
| Metadata is changing my Title/author upon exit. | Gros'Land | Library Management | 2 | 06-04-2011 09:34 AM |
| Title and author's Metadata is switched | Student1 | Library Management | 8 | 01-23-2011 10:35 PM |
| Recognition of author and title from html files/reading metadata from a seperate file | Lethe | Calibre | 5 | 04-03-2010 08:35 AM |
| when importing file title metadata screwed up | dschiri1 | Calibre | 1 | 07-25-2009 11:24 AM |