View Single Post
Old 07-20-2008, 02:46 PM   #537
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,024
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Some changes to 0.0.38 that I found useful

I've been using mobi2mobi quite extensively to add/update covers and to add proper titles and author names to my collection of 1200+ Mobipocket eBooks.

I've found some instances in which it didn't work, and (with a minimal knowledge of Perl) I've added in various changes to make things work for me.

In particular, some parts of mobi2mobi assumed that a cover or thumb offset of 0 was invalid. This doesn't seem to be the case.

In another instance, version 2 mobipocket files weren't converting correctly because the mobi header wasn't being enlarged suitably.

In a third, the cover image wasn't being recognised on my Cybook Gen3 because the images weren't immediately after the book, and we weren't updating the "first image" offset when adding in the first image in a file.

Lastly, I wanted 600x800 images up to 62KB in length. If some other device requires smaller than 62KB, the file size change (to 62KB) is probably a bad idea.

I've added comments to (I think) all the differences between my files and the 0.0.38 release. I've sent a private message to Trompe about these files, but you can't attach files in private message so I'm posting here. Hopefully he'll be able to check my changes and include good ones in a new release.

If you're brave, you can try them for yourself - but bear in mind I'm a C/C++ programmer, not at all familiar with Perl.

Paul
Attached Files
File Type: zip Mods to MobiPerl 0.0.38.zip (22.3 KB, 357 views)
pdurrant is offline   Reply With Quote