![]() |
#16 |
Groupie!? GROUPIE!?!?
![]() ![]() ![]() ![]() ![]() ![]() Posts: 318
Karma: 649
Join Date: Aug 2008
Location: The Dirty Shwa
Device: EBW 1150, Kindle
|
Nick: Any work on impedit yet? I'm looking for a way to edit the catagory in an IMP file from the command line.
|
![]() |
![]() |
![]() |
#17 |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
![]() But I do remember helping AZed add that capability to EBook-Tools on CPAN (Perl code repository). I'll see if I can use AZed's code to create a functional 'impedit' command line program, but I know a GUI solution that works quite well, ConvertIMP. ![]() What target program would you prefer to use: Windows executable or Unix/MAC Perl script? Any syntax you would like to see used for the option/parameter switches? Last edited by nrapallo; 04-07-2009 at 10:59 AM. Reason: added links |
![]() |
![]() |
![]() |
#18 |
Groupie!? GROUPIE!?!?
![]() ![]() ![]() ![]() ![]() ![]() Posts: 318
Karma: 649
Join Date: Aug 2008
Location: The Dirty Shwa
Device: EBW 1150, Kindle
|
I am using windows now so a windows .exe is the best for me. Syntax doesn't matter at all, I'm learning some python and am determined to find a way to hack this stuff into Calibre. Hence why I need commandline tools for everything.
I know it won't be part of the main calibre tree but I'm hopful I can get it working enough for Windows users to be able to muck with. |
![]() |
![]() |
![]() |
#19 | |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
![]() Here is a quick and dirty attempt at a .imp metadata edit program called impmeta. It is based on ebook.pl from EBook-Tools by Zed Pobre. The readme for it is as follows: Code:
impmeta - Set specific metadata values in an ETI .imp file. Usage: impmeta filename.imp [Options] Options: --input filename.imp | -i filename.imp Specify the input filename. This can also be specified as the first argument, in which case the -i option will be ignored. --output modified.imp | -o modified.imp Specify the output filename. If not specified, the input file will be overwritten. --identifier Specify the identifier metadata. --category | --cat | --c Specify the category metadata. --subcategory | --subcat Specify the subcategory metadata. --title | --t Specify the title metadata. --lastname Specify the author last name metadata. --middlename Specify the author middle name metadata. --firstname | --author | --a Specify the author first name metadata. Note that IMP files commonly place the full name in this component, and leave the middlename and lastname entries blank. Examples impmeta mybook.imp --title 'Fixed Title' --author 'John Q. Brandy' impmeta -i mybook.imp -o fixed.imp --title 'Fixed Title' --cat "To Read" Anything you can think of that's missing or you want added? Last edited by nrapallo; 04-07-2009 at 07:40 PM. Reason: typo |
|
![]() |
![]() |
![]() |
#20 |
Groupie!? GROUPIE!?!?
![]() ![]() ![]() ![]() ![]() ![]() Posts: 318
Karma: 649
Join Date: Aug 2008
Location: The Dirty Shwa
Device: EBW 1150, Kindle
|
Nick: That works great! I've only really tested the catagory part, but will beat this up for you as I'm converting a ton of books from LRF to HTML / IMP now.
Additions... What about a way to mass change a directory? ie: impmeta *.imp --cat "Fantasy" would set the whole shebang in the directory? My end goal is to (under windows for now) click a button and be able to edit fields in IMP's from calibre, convert to IMP within calibre, etc. |
![]() |
![]() |
![]() |
#21 | |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Code:
for %%i in (*.imp) do impmeta "%%i" --cat "Fantasy" Oh, and for recursively down into all subdirs, use: Code:
for /r %%i in (*.imp) do impmeta "%%i" --cat "Fantasy" ![]() |
|
![]() |
![]() |
![]() |
#22 |
Groupie!? GROUPIE!?!?
![]() ![]() ![]() ![]() ![]() ![]() Posts: 318
Karma: 649
Join Date: Aug 2008
Location: The Dirty Shwa
Device: EBW 1150, Kindle
|
Well then! I always forget about the old command.com tricks. So far I've used it on around 20 books in my real library and all is fine. When I'm out today I'm picking up my first pbook in a long time. Determined to learn python now, it looks easy to work with.
|
![]() |
![]() |
![]() |
#23 |
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
I've got a lot of python self-learn type ebooks in .imp format if you want them. I'll have to check if I have a EBW1150 .imp version as most are in REB1200 .imp format.
Last edited by nrapallo; 04-08-2009 at 09:37 AM. |
![]() |
![]() |
![]() |
#24 |
Groupie!? GROUPIE!?!?
![]() ![]() ![]() ![]() ![]() ![]() Posts: 318
Karma: 649
Join Date: Aug 2008
Location: The Dirty Shwa
Device: EBW 1150, Kindle
|
Thanks Nick! Apreciated the links and will be giving this a go over! Something new to play with so we'll see if it sticks in my head or makes it hurt like basic does.
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
4GB internal memory: how much for books? | desertblues | Amazon Kindle | 11 | 10-06-2010 09:45 AM |
Info Amazon collects about books I didn't buy from them? | rangepig | Amazon Kindle | 1 | 08-26-2010 01:17 AM |
Double Collections with internal and SD books | simplyparticular | Calibre | 3 | 07-13-2010 10:04 PM |
Can I autofetch info about my books? | darkmonk | Calibre | 19 | 03-19-2009 09:27 PM |
Perl only access to imp file info | derrell | IMP | 5 | 08-29-2008 10:38 AM |