Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Other formats > IMP

Notices

Reply
 
Thread Tools Search this Thread
Old 09-24-2008, 01:17 AM   #1
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
Easist way to modify IMP books internal header info?

Hi all ( ill bet you all are getting tired of seeing my posts by this point )

I have another question for those that have gone thru all this before.

What is the easist way to edit a IMP file to change the author / title / catagory information?

WITHOUT using ebookwise librarian. ( If install it after epub and all the other addons etc things get messed up )

Just looking for a quick and easy way, mainly so I can change / add the catagory field on books so that they are sort on the 1150 the way id like.

Thank you.

Last edited by askyn; 09-24-2008 at 11:42 AM.
askyn is offline   Reply With Quote
Old 09-24-2008, 01:43 AM   #2
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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
EDIT: I've now written a little dos command line utility in Perl called impmeta available here.

In our wiki pages, you will find IMP software, which lists
Quote:
Imp Librarian - windows - to catalog a collection of .IMP files and produce .csv files for import into MS Excel or equiv.
With it you can edit selected .IMPs (I found some files edited by Imp Librarian that could not be edited properly afterwards with GEBLibrarian - use with extreme caution & use on backups until you're sure this works for you!)

Also, I've been meaning to write an impedit utility for some time now (EDIT: see above), but have been distracted writing plugins for some program here ). It would be written in perl and have a similiar GUI interface to Mobi2IMP/PDFRead. (btw, that GUI was the brain child of ashkulz; I just copied it!)

In essence, the .imp ebook has fields after the first 48 bytes that are null byte terminated (dot represents that 0 byte):
Code:
ID . Category . Subcategory . Title . LAuthorname . MAuthorname . FAuthorname .
The only problem editing these directly with a hex/binary editor is that if the length changes for any field, the size of this header record in the imp file must be recalculated along with the offset to the .RES TOC entries. Not hard, but will take some time to code and perfect. I'll look at this soon, if ashkulz doesn't beat me to the punch.

For more information, see IMP and the detailed reverse-engineering work done by Jeffrey Kraus-yao in 2002 here.

If you promise to not get tired asking questions, I promise to not get tired answering them...

Last edited by nrapallo; 04-08-2009 at 11:43 AM. Reason: link to impmeta - dos command utility to change title/author/category in .imp ebooks
nrapallo is offline   Reply With Quote
Advert
Old 09-24-2008, 02:23 AM   #3
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
Quote:
Originally Posted by nrapallo View Post
If you promise to not get tired asking questions, I promise to not get tired answering them...
Thans not a problem, im sure ill have more questions then answers for a long time.
askyn is offline   Reply With Quote
Old 09-24-2008, 02:24 AM   #4
ashkulz
Addict
ashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enough
 
ashkulz's Avatar
 
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
Looks like I'll have to add a new command-line utility called 'impmeta' to ebookutils ... expect to see it in a release tomorrow.
ashkulz is offline   Reply With Quote
Old 09-24-2008, 04:02 AM   #5
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
Quote:
Originally Posted by ashkulz View Post
Looks like I'll have to add a new command-line utility called 'impmeta' to ebookutils ... expect to see it in a release tomorrow.
cool .. with maybe a gui wrapper in the future? ( hey a guy can wish cannt he ? )

woot =)
askyn is offline   Reply With Quote
Advert
Old 09-24-2008, 06:09 AM   #6
ashkulz
Addict
ashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enough
 
ashkulz's Avatar
 
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
Quote:
Originally Posted by askyn View Post
cool .. with maybe a gui wrapper in the future? ( hey a guy can wish cannt he ? )
don't look for a GUI wrapper from me ... if you want to contribute one, I'm willing to integrate it
ashkulz is offline   Reply With Quote
Old 09-24-2008, 09:56 AM   #7
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
It wouldn't be too hard to add impmeta to the list of things that the gui I've been tinkering with can call. It is just a front end for several other tools anyway.
derrell is offline   Reply With Quote
Old 09-24-2008, 09:58 AM   #8
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by ashkulz View Post
Looks like I'll have to add a new command-line utility called 'impmeta' to ebookutils ... expect to see it in a release tomorrow.
It should also allow the name of the .RES directory (and thus its length) to be changed; as a default, use the filename.

I have so many Lit2sb .imp conversions that ALL have 'o_sb' as their .RES directory name. This is the name you see (given) to the folder that gets exploded on the memory card! I can never find which 'o_sb' is the one I'm looking for.

The reader's internal os allows idential mutiple names and the only way to differentiate them is to look at the RSRC.INF; yeah, right, like I'm going to do that for 100+ titles...
nrapallo is offline   Reply With Quote
Old 09-24-2008, 10:05 AM   #9
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by derrell View Post
It wouldn't be too hard to add impmeta to the list of things that the gui I've been tinkering with can call. It is just a front end for several other tools anyway.
I have some perl code that extracts the header info and stuff but doesn't allow the meta data to be edited via GUI. I can give you the starting point, if you would finish it off.

email me at 'nrapallo (at) yahoo (dot) ca'
nrapallo is offline   Reply With Quote
Old 09-24-2008, 10:30 AM   #10
ashkulz
Addict
ashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enough
 
ashkulz's Avatar
 
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
Quote:
Originally Posted by derrell View Post
It wouldn't be too hard to add impmeta to the list of things that the gui I've been tinkering with can call. It is just a front end for several other tools anyway.
Do you have any plans of releasing the GUI in the near future? I'd prefer to delay the 0.9 release to include that ... maybe even call it 1.0

BTW, were you able to get the browsing under linux using eb1150 working? it worked for me with the later versions....
ashkulz is offline   Reply With Quote
Old 09-24-2008, 10:54 AM   #11
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
The gui is the one that I've working with for impfind. It sort of grew past just displaying imp files. It has some basic bookshelf management and will search for imp, lrf, mobi, zipped oeb and html books as well as epub and display some of the meta data for all of them. I need to change the name to something other than impfind now. As for releasing I'm in no hurry what I have now needs some serious cleaning up and I'm not real sure it will work under windows anymore. So waiting for the next release of ebook utils is not a problem.

As for the browsing haven't tried it yet with the newer versions. I think I'm still using 0.4. So I'm just a little behind the times.
derrell is offline   Reply With Quote
Old 09-24-2008, 11:49 AM   #12
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
Ill be waiting excitedly for these utilities for sure.

im not SURE its ImpLibrarian, but after using it to edit information on a selected batch of imp files, I dont seem to be able to load those files onto my 1150 ! ( for those intersted see the posting I made this morning (9/24/09) under impserv)

Not sure if its a problem with imp librarian or something that its done that imserv doesnt like etc.

so ill have to keep looking for a alternate way to edit that information.

thanks for all the help and suggestions tho!

Last edited by askyn; 09-24-2008 at 12:04 PM.
askyn is offline   Reply With Quote
Old 09-24-2008, 11:59 AM   #13
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by askyn View Post
Ill be waiting excitedly for these utilities for sure.

im not SURE its ImpLibrarian, but after using it to edit information on a selected batch of imp files, I dont seem to be able to load those files onto my 1150 ! ( for those intersted see the posting I made this morning (9/24/09) )

Not sure if its a problem with imp librarian or something that its done that imserv doesnt like etc.

so ill have to keep looking for a alternate way to edit that information.

thanks for all the help and suggestions tho!
It may be that Imp Librarian fails to recalculate the revised size of the fields header. Can you try editing a .imp using the same *length* for the fields, i.e. don't add/delete any letters, just replace existing ones.

I suspect that for this case it WILL work and maybe that's why Imp Librarian may work for some files.
nrapallo is offline   Reply With Quote
Old 09-24-2008, 12:09 PM   #14
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
ROFL ok.. imp librarian is way flaky and im going to drop using it for now.

reason?

It wont even open the shelf directory now were the imp files it edited last night are at !!

errors out with the error:

Runtime error '5'; invalid procedure call or argument

considering the only thing ive done with the books in that directory is a) copy them there b) edited them with imp librarian .. then c) tried to load them

I think imp librarian is a great concept program but has a few bugs.
askyn is offline   Reply With Quote
Old 09-24-2008, 01:07 PM   #15
GeneS
eBook Enthusiast
GeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enough
 
GeneS's Avatar
 
Posts: 120
Karma: 726
Join Date: Dec 2007
Location: US
Device: Sony PRS-350, Astak PocketPro, iPhone, Asus eee Pad Transformer
Quote:
Originally Posted by askyn View Post
ROFL ok.. imp librarian is way flaky and im going to drop using it for now.

reason?

It wont even open the shelf directory now were the imp files it edited last night are at !!

errors out with the error:

Runtime error '5'; invalid procedure call or argument

considering the only thing ive done with the books in that directory is a) copy them there b) edited them with imp librarian .. then c) tried to load them

I think imp librarian is a great concept program but has a few bugs.
Askyn and I seem to be running into each other in a number of threads.

I have not experienced any trouble seeing, transferring, or using .imp files that have been modified by ImpLibrarian. I am, however, going to stop using it in light of Askyn's experience.

I really do hope for a way (GUI?) to modify the header data so that I can quickly find a book once it's on my 1150. Thanks to those of you who have the knowledge and interest to work on making the 1150 more useable.
GeneS is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
4GB internal memory: how much for books? desertblues Amazon Kindle 11 10-06-2010 10:45 AM
Info Amazon collects about books I didn't buy from them? rangepig Amazon Kindle 1 08-26-2010 02:17 AM
Double Collections with internal and SD books simplyparticular Calibre 3 07-13-2010 11:04 PM
Can I autofetch info about my books? darkmonk Calibre 19 03-19-2009 10:27 PM
Perl only access to imp file info derrell IMP 5 08-29-2008 11:38 AM


All times are GMT -4. The time now is 09:07 AM.


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