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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-07-2013, 10:55 AM   #16
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,887
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by DazJWood View Post
We all like to do things different!
You're spot on with that statement.

Quote:
Originally Posted by DazJWood View Post
I would prefer to have all tags correct of course but the author and title are the priority. I would like them formatted to how I like them; which is not necessarily how they are embedded in the mobi files. Equally I don't want to lose some of the information / tags that are already on the file.
Unless I put the tags in the file myself I never want to use the tags that are in a file, instead I use the GoodReads Metadata download plugin to retrieve my as outlined in this post.

Also I never allow the metadata download process to alter the Author, Title or Series of a book, because I already put them the way I want them.

Good Reading.
DoctorOhh is offline   Reply With Quote
Old 01-07-2013, 04:07 PM   #17
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 3,824
Karma: 2698649
Join Date: Mar 2012
Location: NSW Australia
Device: none
Non commercial 'technical' publications often have useful tags and comments in their metadata, but incorrect title & author, and the original filename is often just a reference number. I'm thinking of public domain documents from academia, governments, think tanks, supra-nationals such as UN, IMF, EU etc. There are no 3rd party metadata sources for these publications.

For many people the 'title & author(s)' are the primary identification for their documents - so existing collections will often have file-names with accurate title and author, whilst the embedded metadata will remain untouched because without Calibre there's no convenient way to even view it - let alone get it right.

When I was initially loading Calibre with my existing collection of 'technical' publications I would have appreciated an option to take 'title & author(s)' from the file-name and the cover & other metadata from whatever was embedded in the document. I ended up adding books to a "New Books" library, taking all the metadata from the document, and then correcting the 'title & author(s)' before moving the books to the "Main" library. I still do this with all books - even real ebooks from Amazon, B&N etc.

Quote:
Originally Posted by DazJWood View Post
Incidentally, when I try to capitalize every word in the title (using Title Case), why does it not capitalize words like of, a, the, etc...?
"Title Case" like most things English, has no single authoritative definition see ===>>> http://grammar.about.com/od/grammarf...italstitle.htm

What you're asking for is more often called "Capital Case". What Calibre's Capitalize option does is more often referred to as "Sentence Case".

Other languages have different rules and conventions often maintained by government sponsored regulatory agencies - e.g. in French and German its probably defined by the Académie française and Rat für deutsche Rechtschreibung respectively

BR
BetterRed is online now   Reply With Quote
Old 01-08-2013, 06:04 AM   #18
DazJWood
Junior Member
DazJWood began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2013
Device: Kindle App on Android
Quote:
Originally Posted by BetterRed View Post
For many people the 'title & author(s)' are the primary identification for their documents - so existing collections will often have file-names with accurate title and author, whilst the embedded metadata will remain untouched because without Calibre there's no convenient way to even view it - let alone get it right.

When I was initially loading Calibre with my existing collection of 'technical' publications I would have appreciated an option to take 'title & author(s)' from the file-name and the cover & other metadata from whatever was embedded in the document. I ended up adding books to a "New Books" library, taking all the metadata from the document, and then correcting the 'title & author(s)' before moving the books to the "Main" library. I still do this with all books - even real ebooks from Amazon, B&N etc.
Yay I'm not the only one that misses this functionality!
It is frustrating that I have the information in the file names but no way of importing them unless I forgo the rest of the metadata from the file.

Quote:
Originally Posted by BetterRed
"Title Case" like most things English, has no single authoritative definition see ===>>> http://grammar.about.com/od/grammarf...italstitle.htm

What you're asking for is more often called "Capital Case". What Calibre's Capitalize option does is more often referred to as "Sentence Case".
Capital Case would be a good additional option then. I name all my files and titles using capitals for the first letter of each word.

The problem is everyone wants something different!

Daz
DazJWood is offline   Reply With Quote
Old 01-09-2013, 01:50 AM   #19
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 3,824
Karma: 2698649
Join Date: Mar 2012
Location: NSW Australia
Device: none
Daz - I did suggest a possible way to do it

Quote:
Originally Posted by BetterRed View Post
Maybe one way to do it would be to extract the opf from from the MOBI with the MobiUnpack plugin and then use the from-opf option of the ebook-meta command to update the Calibre metadata with what's in the opf file - see http://manual.calibre-ebook.com/cli/ebook-meta.html. I think the MobiUnpack plug-in is a wrapper around a command line program, if you used the latter should make it simpler to write a script
Did you try it

If it works on a single book then it should be possible to write a script to execute the mobiunpack and ebook-meta commands on each book in your library to extract the metadata out of the mobi files and write it into the calibre database. As I read the from-opf option you should be able to select the metadata items you want - ie you wouldn't select the author and title.

Sorry, I can't help with the scripting - that bit of my brain died years ago.

Cheers BR
BetterRed is online now   Reply With Quote
Old 01-09-2013, 12:44 PM   #20
mdb5972
Member
mdb5972 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jan 2011
Device: Sony PRS350
Possible suggestion:

1. Create a Custom Column text field {disk_filename}
2. Add the books via the CLI calibredb add
3. Use the calibredb add -f #{disk_filename}:{filename}
-- one at a time so will be slower
4. Use RegEx in the multiple edit to parse the custom {disk_namefield} to the Author, Title fields -- saving them for quick use next time.

This would let you leave it on 'Read metadata from file' but allow you to quickly parse the custom field to adjust the title and author.

I use custom tags like '_ADDED' (from Preferences:'Add Books' and Tweaks:'Control how tags are applied...'=True) on add books to quickly search for a subset of records that I need to process after adding new books/records. Or for command line changes to existing records set an custom yes/no updated (#ie #upd) flag to find the changed subset.


Windows: update example

FOR /F "SKIP=1 TOKENS=1,2 DELIMS=," %a in (UNPROCESSED.CSV) DO @ECHO. && @ECHO BOOK ID: %~a && ECHO ISBN : %~b && ECHO. && @IF EXIST E:\xRESULTS\%~b.opf (calibredb set_metadata --dont-notify-gui --with-library="E:\CALIBRE\WORK" -f #upd:yes %~a e:\xRESULTS\%~b.opf)


%~b cuz my export adds double-quotes around the fields; %~ strips them

Last edited by mdb5972; 01-09-2013 at 01:06 PM.
mdb5972 is offline   Reply With Quote
Old 06-22-2014, 07:20 AM   #21
nikoski
Enthusiast
nikoski began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Feb 2014
Device: none
Any fresh ideas on this issue about getting title and author from the file name and the rest of metadata (untouched) from the already existing file info?

This is exactly what i'm missing when trying to import a bunch of Epubs to calibre.
nikoski is offline   Reply With Quote
Old 07-10-2014, 03:57 AM   #22
KiSmo
Junior Member
KiSmo began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2014
Device: nook st gl
Quote:
Originally Posted by nikoski View Post
Any fresh ideas on this issue about getting title and author from the file name and the rest of metadata (untouched) from the already existing file info?

This is exactly what i'm missing when trying to import a bunch of Epubs to calibre.
I had reverse situation.
Books were organized in folders by series name and series index.
e.g.: "The Erevis Cale Trilogy 02 - Dawn of Night.prc"
I could add books to calibre using "read metadata" but then I would lose all information about series (there were about 240 books in 70 series)
So, i imported books in new calibre library using rexex: (?P<series>[^_0-9-]*)(?P<series_index>[0-9]*)\s*-\s*(?P<title>[^_].+) ?
Afterwards i converted all book to epub and deleted all prc formats.
This left me with correct series indexes but without author. All books had correct metadata but wrong database entry.
I could go and click "Set metadata from the selected format" but I would have to do it 240 times.

I deleted entire library from calibre.

That left files on disk with correct metadata stored in epub.

Then I imported books using "read metadata from file".

btw: bulk copy of metadata information to database would be very fine option.
KiSmo is offline   Reply With Quote
Old 07-18-2014, 10:22 AM   #23
Inferno
Connoisseur
Inferno began at the beginning.
 
Posts: 58
Karma: 10
Join Date: Apr 2012
Device: android tablets
Question for original poster. What is in the metadata that is important if the author and title are not correct?

Last edited by Inferno; 07-18-2014 at 10:24 AM. Reason: misread original
Inferno 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
Regex: File Renaming Pre-Import & Importing penguinaka Library Management 20 08-14-2012 07:11 PM
Import MetaData an Tags adrian142 Library Management 0 04-03-2012 12:40 PM
Import failed Error:404 when attempting to import from Calibre to Stanza dvond Apple Devices 0 05-13-2011 04:00 PM
Tags import problem femto Calibre 10 04-22-2009 05:39 AM
What is the default regular expression for filename import? palex481 Calibre 2 03-22-2009 07:11 PM


All times are GMT -4. The time now is 10:58 PM.


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