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 02-24-2009, 03:11 PM   #1
tlc
Zealot
tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 140
Karma: 50288
Join Date: Feb 2009
Device: KK 3G, iPad
command line vs GUI (PDF->MOBI for K2)

I'm a MAC user who is new to e-readers and my Kindle is on it's way.
I'm trying to convert some PDFs before it gets here.

The 0.4.140 GUI choked on several of my PDFs. (See trac.) I tried "any2mobi filename" on one and it seems to have worked -- no errors reported, but I don't have a reader....

I could write a script to traverse the directories use any2mobi on my PDFs. But ...

1) How do I make the GUI (database?) aware of them? This will be important when I get to the "Send to device" phase.

2) There's a lot of probably important options to any2mobi that I don't know what to do with.

3) Does meta data need to live in the mobi files? Or will Calibre share them with the Kindle through some other mechanism? I had to get a good regex to get the metadata from the filenames and tell calibre to not read metadata from the files. I imagine those results are currently in the DB, not the PDFs.


Does anyone have a good workflow for converting a large number of PDFs to MOBI for the Kindle?? I saw a good-looking workflow post that combined Calibre with something else, but I can't find it now.

Thanks,
tlc

Last edited by tlc; 02-24-2009 at 03:18 PM.
tlc is offline   Reply With Quote
Old 02-24-2009, 03:16 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: 44,397
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
1) calibredb add

2) The options for any2mobi are (largely) the same as those presented in the GUI

3) It needs to live in the mobi files. calibre will automatically update the files with the metadata in the database when sending to a device.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-24-2009, 03:51 PM   #3
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
I was just going to ask about the metadata, as I just did a trial conversion to Mobi of one of my own books, from htm--using the Calibre GUI. When I changed the metadata in the Calibre library, the change did not show up when I then opened the file in Mobi Reader desktop. Does Calibre only change the metadata in the actual ebook file when sending to a device? (That wouldn't help me with mobi files, which I need to send to my PDA via other means. Much less mobi files that I would put up for other people.)

Is there a way to force the metadata change into the book file? I've been touting Calibre to people as a great way to edit metadata, but now I'm confused.
starrigger is offline   Reply With Quote
Old 02-24-2009, 03:57 PM   #4
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: 44,397
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre does not change the metadata in the files stored in its database, for two reasons

1) Sometimes changing metadata can result ina corrupted file
2) It would significantly slow down GUI operations

However, whenever you use the Save to disk or Send to device functions, claibre creates a copy of the book in its database with the updated metadata.
kovidgoyal is offline   Reply With Quote
Old 02-24-2009, 03:59 PM   #5
tlc
Zealot
tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 140
Karma: 50288
Join Date: Feb 2009
Device: KK 3G, iPad
When I added PDFs to the GUI/db, I used a regex from the group and still had to massage some of the meta data.

If I do any2mobi on the command line, that won't put the DB meta data in the mobi files, right?

If I do "calibredb add", will that look like a duplicate entry in the GUI? Or will it be a single entry with two formats? Will it associate the hand-edited meta data in the DB with the new MOBI form?

Thanks
-troy
tlc is offline   Reply With Quote
Advert
Old 02-24-2009, 04:12 PM   #6
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: 44,397
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
use mobi-meta to set metadata in mobi files and calibredb --help to see all you can do with calibredb
kovidgoyal is offline   Reply With Quote
Old 02-24-2009, 04:39 PM   #7
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
Quote:
Originally Posted by kovidgoyal View Post
calibre does not change the metadata in the files stored in its database, for two reasons

1) Sometimes changing metadata can result ina corrupted file
2) It would significantly slow down GUI operations

However, whenever you use the Save to disk or Send to device functions, claibre creates a copy of the book in its database with the updated metadata.
Ah, so Save to Disk is my friend. I just tested it; it works.

But I don't understand the choice of "Save to disk" and "Save to disk in a single directory." And what's the purpose of the zip file (with an xhtml file inside) which was saved along with my mobi file?

I wonder if you could have the Windows-standard "Save As" command, which would let the user choose the folder and choose a different filename, if desired. (And perhaps be more familiar feeling to Windows users who scratch their heads at some of the more code-oriented commands. )

Does the Save to Disk command save all formats at once?
starrigger is offline   Reply With Quote
Old 02-24-2009, 04:47 PM   #8
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by starrigger View Post
But I don't understand the choice of "Save to disk" and "Save to disk in a single directory." And what's the purpose of the zip file (with an xhtml file inside) which was saved along with my mobi file?
Save to Disk will create a folder for each author and within that a folder for each book and put the ebook file there. "Save to Single Dir" will just put all the book files into the selected directory without any of those containing organization folders.

BOb
pilotbob is offline   Reply With Quote
Old 02-24-2009, 04:48 PM   #9
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: 44,397
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
select multiple books and click the various save to disk commands to see the difference
kovidgoyal is offline   Reply With Quote
Old 02-24-2009, 05:15 PM   #10
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
Okay, got it.

Those new files are not in the Calibre database, right? So I can just delete them with Windows Explorer?
starrigger is offline   Reply With Quote
Old 02-24-2009, 05:32 PM   #11
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by starrigger View Post
Okay, got it.

Those new files are not in the Calibre database, right? So I can just delete them with Windows Explorer?
Yes... as long as you didn't tell it to save to you calibre db folder.

BOb
pilotbob is offline   Reply With Quote
Old 02-24-2009, 05:46 PM   #12
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
Quote:
Originally Posted by pilotbob View Post
Yes... as long as you didn't tell it to save to you calibre db folder.

BOb
Well, they're in a subfolder of my Calibre Library folder. But the db file seems to be in the "root" Calibre Library folder.
starrigger is offline   Reply With Quote
Old 02-24-2009, 06:20 PM   #13
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by starrigger View Post
Well, they're in a subfolder of my Calibre Library folder. But the db file seems to be in the "root" Calibre Library folder.
Ah... hairy... but yes... they are NOT considered part of the calibre db. You really should avoid putting files into that folder manually. Consider it sacrosanct.

BOb
pilotbob is offline   Reply With Quote
Reply

Tags
any2mobi, calibre, command line

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Still having problems PDF to MOBI line unwrapping jengwen Calibre 2 04-16-2010 09:14 AM
Problem updating metadata (using mobi2mobi command line and gui) whitearrow Kindle Formats 3 12-05-2009 07:07 PM
Why use the command line? slantybard Calibre 6 07-22-2009 12:17 PM
Mobi Creator and the command line Ortep Kindle Formats 1 06-11-2009 09:00 AM
single word wrapped onto a separate line on kindle (pdf to mobi) shinew Calibre 2 03-21-2009 06:16 PM


All times are GMT -4. The time now is 10:20 AM.


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