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-10-2008, 10:18 AM   #1
mazzeltjes
Addict
mazzeltjes doesn't littermazzeltjes doesn't litter
 
mazzeltjes's Avatar
 
Posts: 242
Karma: 177
Join Date: Nov 2007
Location: Amsterdam
Device: sony 505
how to do batch conversion with libprs


Can anybody help me out here
I'm totally stupid with command line
and I can't work it out from the gui
I use win xp
mazzeltjes
mazzeltjes is offline   Reply With Quote
Old 02-10-2008, 07:13 PM   #2
dhbailey
Guru
dhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enough
 
Posts: 604
Karma: 733
Join Date: Mar 2007
Device: HP iPAQ211 / PRS 500, 700 and 505
From the GUI what you do is to go through and hand enter the metadata for each book.

Then you select all the books you want to convert and click on Convert Books. It then goes through and converts them all one at a time. Not really batch-convert, but it does automate the process somewhat.

You can't select the Batch Convert option, however, because it hasn't been enabled yet.
dhbailey is offline   Reply With Quote
Advert
Old 02-11-2008, 12:57 PM   #3
mazzeltjes
Addict
mazzeltjes doesn't littermazzeltjes doesn't litter
 
mazzeltjes's Avatar
 
Posts: 242
Karma: 177
Join Date: Nov 2007
Location: Amsterdam
Device: sony 505
Oke,that's a shit load of work
guess I'll wait 'till it's implemented then
thanx for the advice

anyone know when this is gonna be
mazzeltjes is offline   Reply With Quote
Old 02-11-2008, 02:23 PM   #4
dhbailey
Guru
dhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enough
 
Posts: 604
Karma: 733
Join Date: Mar 2007
Device: HP iPAQ211 / PRS 500, 700 and 505
I'm not sure it can be -- how will title / author /author-sort info be entered for each book, if you don't do it manually? It's not like files will all have this data in clearly recognizable areas so that the program can generate it automatically.
dhbailey is offline   Reply With Quote
Old 02-11-2008, 04:13 PM   #5
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by dhbailey View Post
It's not like files will all have this data in clearly recognizable areas so that the program can generate it automatically.
That's exactly what the LIT and LRF formats (and several others I believe) have... though I'm guessing he's talking about PDF or TXT files, which are a problem...
Valloric is offline   Reply With Quote
Advert
Old 02-12-2008, 04:22 AM   #6
gwynevans
Wizzard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
Quote:
Originally Posted by dhbailey View Post
I'm not sure it can be -- how will title / author /author-sort info be entered for each book, if you don't do it manually? It's not like files will all have this data in clearly recognizable areas so that the program can generate it automatically.
Unless you're naming your files to a particular scheme, which you can parse to obtain the meta-data, e.g. "Drake, David - RCN 01 - With the Lightnings.lit".

With that, something like the following can parse the name...
Code:
dash = file.find(' - ')
if dash != -1:
    fileAuthor = file[:dash]
    dash = file.rfind(' - ')  # Search back to allow for series seperators
    fileTitle  = file[dash+3:-4]

Last edited by gwynevans; 02-12-2008 at 04:26 AM.
gwynevans is offline   Reply With Quote
Old 02-12-2008, 06:46 AM   #7
dhbailey
Guru
dhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enoughdhbailey will become famous soon enough
 
Posts: 604
Karma: 733
Join Date: Mar 2007
Device: HP iPAQ211 / PRS 500, 700 and 505
Quote:
Originally Posted by gwynevans View Post
Unless you're naming your files to a particular scheme, which you can parse to obtain the meta-data, e.g. "Drake, David - RCN 01 - With the Lightnings.lit".
It took me a moment or two to figure out that you're suggesting the addition of that small snippet of code to the actual libprs500 application, so that it can generate the meta-data itself from the file name, assuming that the files have been named using a predetermined pattern.

Cool -- I hadn't thought of that! With file-renaming applications, that should be easy enough to incorporate (although I say it as a person who is lost beyond programming in BASIC, so it may be a lot harder than I think).
dhbailey is offline   Reply With Quote
Old 02-12-2008, 09:01 AM   #8
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: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
When I finally get around to implementing the recursive import feature, it will allow the user to specify a pattern for filenames which it will use as a fallback for getting metadata.
kovidgoyal is offline   Reply With Quote
Old 02-12-2008, 09:24 AM   #9
mazzeltjes
Addict
mazzeltjes doesn't littermazzeltjes doesn't litter
 
mazzeltjes's Avatar
 
Posts: 242
Karma: 177
Join Date: Nov 2007
Location: Amsterdam
Device: sony 505
David Robbins - Blade 6 - Crusher Strike.pdf J:\eMule\Incoming\Science Fiction and Fantasy 13130 update 3\David Robbins - Blade 6 - Crusher Strike.pdf
David Robbins - Blade 7 - Terror Strike.pdf J:\eMule\Incoming\Science Fiction and Fantasy 13130 update 3\David Robbins - Blade 7 - Terror Strike.pdf



This is the example of the way I've got them named and filed
not necesarily pdf's
I used pdftolrf on these pdf's in bulk
and the batch conversion worked great
13500 books in 2 months
so if it's possible with pdftolrf
why not with libprs????

@dhbailey I wish I could work in basic

is there a manual how to work with the command line
I'm a point and clicker????

Last edited by mazzeltjes; 02-12-2008 at 09:28 AM.
mazzeltjes 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
PDF to prc/azw Batch Conversion xsolitudex PDF 2 09-04-2010 10:19 AM
pdftohtml Batch Conversion kad032000 Sony Reader 8 06-27-2008 09:50 AM
Batch conversion html to lrf lilpretender Sony Reader 5 04-22-2008 09:22 PM
Batch conversion of txt BlackVoid Sony Reader 8 11-17-2007 09:53 PM
tips for batch conversion with emacs klikklak Sony Reader 0 11-14-2007 12:02 PM


All times are GMT -4. The time now is 12:40 PM.


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