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 03-22-2008, 02:22 AM   #1
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
Mobi2IMP 9.4 with new Windows GUI & UTF-8

I've released Mobi2IMP 9.4 now, which has minor bug fixes and some enhancements.
Just download, unzip and install the Mobi2IMP-9.4-Installer.zip attachment followed by the updated Mobi2IMP.exe dos executables in Mobi2IMP-9.4e.zip. Please read the EDIT at the bottom of this post for more information.

Mobi2IMP converts non-DRMed Mobipocket .PRC/.MOBI and PalmDOC .PDB files directly to .IMP formats (i.e. EBW1150 .imp, REB1200 .imp, REB1100 .rb and/or OEBFF .oeb/ETI .epub).

This project was created by Nick Rapallo and was inspired by PDFRead's .IMP creating module (ImpOutput) by Ashish Kulkarni and 'mobi2html' in Mobiperl by tompe on mobileread.com.

Changes in this release:
  • improved the removal of stray blank lines BEFORE a page-break that caused empty blank pages to be inserted into the ebook.
  • By default, Mobi2IMP now pads images with white space to match the device's aspect ratio. It also now relocates links to images that pointed to between an illustration and caption as well as removes any blank lines there between. (zelda_pinwheel will appreciate this when re-converting HarryT's 'Austen' classics)
    To avoid these fixes, two new switches are added to not fix images or image links between illustrations and captions. Choose '--noimagefix' to not pad/resize images to device's aspect ratio and '--noimagelinkfix' to leave image link locations "as is" and not remove blank lines before captions.
  • minor code clean-up and more informative messages.
REQUIRED: You must have the eBook Publisher software previously installed to facilitate the conversions. Due to the new Windows GUI, you no longer need to use the dos/command prompt or perl script.

Also, batch conversion using 'prc2imp.bat' can be done on Windows for all .PRC/.MOBI/.PDB in a folder. This will allow those with many mobipocket .prc/.mobi/.pdb files to migrate them to their ebookwise 1150 easily. For recursive batch processing, see post#11 below

Then all you have to do is put mobi2imp.exe in your path (or current directory), your 'prc2imp.bat' into the current directory containing your .prc, and then double-click 'prc2imp.bat' (just ensure you don't have too many .prc as ALL of them will be converted!)

After downloading and unzipping the Windows installer below (Mobi2IMP-9.4-Installer.zip), install the Mobi2IMP GUI to any drive location. After this Windows installation, in samples folder of the Mobi2IMP home directory (i.e. C:\Program Files\Mobi2IMP), a sample batch file can be executed to produce the sample .IMP ebooks along with the .opf project file used internally.

With mobi2imp, just beware that you're stuck with any inconsistencies (if any) introduced by the .prc/.mobi original when converting over. However, you can load the resulting .opf file into eBook Publisher and can further edit/tweak/build it, if necessary.

For a MINI-TUTORIAL, check here.

For the Mobi2IMP Wiki, check here.

For the Mobi2IMP Development Hub, check here.


Enjoy!

-Nick


Previous changes...
Code:
This all started out at post #197 in the Mobiperl thread and has evolved into a functional perl script and Windows GUI executable. version 2 - Now 'Category Author Title' are optional and don't need to be provided (if the mobipocket ebook was 'well' composed). version 3 - Now more forgiving of poorly constructed anchors (seen in feedbooks.com .prc's) and will insert the '<a name' tag as long as the 'filepos' points to the start of a tag i.e. "<". This will help retain most, if not, all hyperlinks! version 4 - Things that changed: - Now better warns that eBook Publisher must be installed first. - now takes switches '--1200' and '--1100' to allow for the simultaneous creation of the REB 1200 and REB 1100 versions along with the EBW 1150 .IMP version. - conversly, if the switch '--1150' is specified, then the EBW 1150 .IMP version is NOT created. version 5 - Things that are allowed now: - now allows you to change the text one font size larger ('medium') and one font size smaller (back to 'x-small') by using '--largerfont' and '--smallerfont' respectively. - per JSWolf's request, you can now change margins from the default (2%) to '--nomargins' (0%), '--largemargins' (5%) and even '--hugemargins' (8%) - you can change the default text-align from justify to '--nojustify' (i.e. left aligned). - further to Kovidgoyal's recent 'mobi2oeb' post, now can output in OEBFF (.oeb) output with '--oeb'. As a result, the output can be any and all at once of: '--1150' .IMP, '--1200' .IMP, '--1100' .rb and '--oeb' OEBFF! version 6 - Changes: - per DaleDe's request, you can now change margins from the default (2%) to '--tinymargins' (2px). - no longer requires external program (nconvert.exe); all image 'fixing' done internally by GD.pm (thanks to tompe for this suggestion)! version 7 - Changes: - per DaleDe's suggestion, you can now add small indent with '--indent'. - per JSWolf's request, you can now eliminate (blank line) paragraph separation with '--nopara' (may also need to indent para with '--indent'). - per DaleDe's suggestion, you can now get more info with '--verbose' or '--debug'. - first attempt at a 'readme.txt' - you get this also by executing 'mobi2imp' without any paramenters. version 8 - Changes: - can now override default .IMP naming of 'Author - Title'.ext, by using '--out MYIMPBOOKNAME' to specify .IMP filename produced (omit .ext) - BUGFIX: now strip <body> tag of any BD/mobi specific in-line styles before start 'fixing' things. version 9 - Changes: - can now handle (text) .pdb files properly i.e. PalmDOC 'TEXt'/'REAd' type - now makes the BookDesigner notice at the end 'small print' by default :thumbsup: - can make that BD notice 'big print' with '--BDbig' (case sensitive) - can make that BD notice start on a newpage using '--BDnewpage' :2thumbsup - can even remove that BD notice at the end with '--BDremove' :eek: - to add flare, can use '--bgcolor #FF80FF' to set background color for every page - BUGFIX: Only when using '--nopara' option, some <br />'s get ignored so another <br /> is added; if this creates issues, then '--noBRfix' will not add the second <br />. version 9.1 - Changes: - installs a Windows GUI ala PDFRead that can be used to convert files instead of using dos/perl. It even remembers 'options' last chosen! - removed 'ExplodeDir' as a required parameter and uses, as the default temp/explode DIR, the filename without extension (can be overridden). - added ability to optionally add a (default) 'cover' image to every conversion from .mobi to .imp based on the embedded cover in the source file. - implemented optional running headers (ala GEBLibraian) with two variants: one with the traditional 'Title Author' line followed by a <hr>; another with the header line only in color specified by the user. - added better documentation and even a mini-tutorial version 9.2 - Changes: - can now be installed on a different drive than your C: drive; just keep the same subdirectory structure for the GUI options file to be loaded properly. - removed '--tinymargins', '--largemargins' and '--hugemargins' and replaced with '--LRmargins LR' where LR can be inputted by the user (usually 2px, 5%, or 8%). - corrected GUI to replace 'no indent' option with proper 'use indent' as default is to NOT use any indent. Also moved things around a bit to make room for future options. - updated the 'Mobiperl' part of the code to implement recent improvements tompe put into 'mobi2mobi' and 'mobils' (like longtitle!). - FAQ: If Mobi2IMP is run with no parameters, then the help screen now warns that 'If resulting .IMP is wrong version in viewer, just re-install eBook Publisher!' - FIX: stripped from 'Title' and 'Author' any characters that are invalid for filenames. - FIX: removed stray blank lines BEFORE a page-break that caused empty blank pages to be inserted into the ebook. - FIX: fixed aspect ratio of images that caused images to 'bleed' into bottom and become 'chopped off' for either the 1150 and/or 1200 .IMP versions. Just padded sides of images with 'white' background until aspect ratio no longer causes a problem with eBook Publisher's weak handling of image re-sizing! - better verbose/debug info; information is good! version 9.3 - Changes: - added UTF-8 encoding support recently implemented in Mobiperl by tompe. - changed 'cover_nr.html' to replace L/R margin '2em' with '2px' to allow for bigger images. - Allowed 'aspect ratio' used to fix image resizing issue to be tied to device output. For 1150 or 1100 output, an aspect ratio of 0.72 is used; whereas if 1200 is selected for output, it will be overridden by an aspect ratio of 0.79 (even for other output options within the same conversion). It will be better to not simultaneously convert a file, but rather do the 1200 first, then the 1150 or others.
Pending improvements (available now in below Mobi2IMP 9.4e dos version .zip)

- NEW: Now converts Mobipocket-specific tags like <div height="0em"> and <div width="0em"> to
<div style="margin-top:0em"> and <div style="text-indent:0em">. Works for all tags like "<div " but "<img ".
Thanks to Nate the great for the inspiration!
- FIX: Allows proper <p>, <div>, <ul>, <li> closing tags now. Thanks to Jellby for the tip!
- FIX: Re-tweaked the image resizing to better allow one line of text below the image i.e. a "caption".
- FIX: Now properly uses lowercase tags instead of depreciated UPPERCASE tags.
- FIX: Tweaked the image resizing to allow one line of text below the image i.e. a "caption".
- FIX: Allows proper handling of null (0) content EXTH data.
- NEW: Now implemented extradata MobiPerl processing for multibyteoverlap coded ebooks.
- FIX: Now helps retain ill-formed links. When trying to find a "home" for a filepos link, Mobi2IMP will be aggressive, despite bad placement, and scan forward up to 256 chars away from specified filepos location.
- NEW: Now better handles image (aspect-ratio) resizing and allows for the simultaneous sequential conversion to EBW1150 .imp and REB1200 .imp.
- NEW: Now can build a (non-Sony) ETI .epub when the OEBFF (.oeb) GUI option is selected. Will cause the simultaneous creation of the .oeb ebook, but that .oeb can be deleted if the 'debug info' is selected (bug: not yet working).
- NEW: Allows the proper (functional) conversion of Feedbooks.com news feeds despite some quirks. Now can download RSS/news feeds in mobipocket format and convert them directly into .imp.
- NEW: Allows the proper (functional) conversion of Calibre news feeds despite some quirks. Now can download RSS/news feeds in mobipocket format and convert them directly into .imp.
- FIX: Now strip/blank out nulls and characters below ASCII 32, except chars 9 to 15. Also, remap some such chars to their HTML code equivalents. Now allows the converion of the MobileRead.com Mobipocket Download Guide as well as the Feedbooks.com Kindle Download guide into .imp.
- NEW: Now prints a summary of the .imp ebook/metadata info when done.
- FIX: Now properly uses the output directory to store results in a different directory than the input. Thanks to Elsi for discovering this.
- FIX: Now properly manipulates BookDesigner notice at end "as advertised".

TO DO:
-

EDIT: I will no longer change the GUI installer for minor bug fixes that do not change to GUI options screen. Instead, I will update only the Mobi2IMP.exe in the 'Mobi2IMP' directory. Unzip the highest version number followed by a letter below, if any, into the 'Mobi2IMP' home directory overwriting the old files/.exe in that directory as well as the 'bin', 'doc' and 'src' subdirectories. At the next release, these files will be deleted!

Previous version downloads: 54
Attached Thumbnails
Click image for larger version

Name:	Mobi2IMP_GUI_9.1.jpg
Views:	2526
Size:	78.5 KB
ID:	11690   Click image for larger version

Name:	Mobi2IMP_GUI_9.2.jpg
Views:	2368
Size:	78.3 KB
ID:	11836   Click image for larger version

Name:	Mobi2IMP_GUI_9.3.jpg
Views:	2267
Size:	82.2 KB
ID:	11942   Click image for larger version

Name:	Mobi2IMP_GUI_9.4.jpg
Views:	5238
Size:	79.0 KB
ID:	12143  
Attached Files
File Type: zip Mobi2IMP-9.4-Installer.zip (4.03 MB, 3521 views)
File Type: pl mobi2imp.pl (38.7 KB, 2137 views)
File Type: zip Mobi2IMP-9.4e.zip (1.71 MB, 2666 views)

Last edited by nrapallo; 02-13-2010 at 10:52 AM. Reason: updated to version 9.4 (now also need Mobi2IMP-9.4e.zip)
nrapallo is offline   Reply With Quote
Old 03-22-2008, 02:23 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
Mini-tutorial & FAQ

Reserved for updated Tutorial and FAQ.

FAQ: If resulting .IMP is wrong version in viewer, just re-install eBook Publisher!
I see you have found the infamous bug that the 1150 .imp "thinks" its a 1200 .imp!!!

The solution to this is to re-install eBook Publisher software. Since you may also use BookDesigner or GEB LIbrarian (aka eBookwise Librarian), the various .dlls used get confused and need to be the eBook Publisher versions to use Mobi2IMP properly!
FAQ: GEB (eBookwise) Librarian fails to transfer/load the resulting .IMP!
The target output defaults to where the source input is. The resulting .IMPs are stored there. You can then manually copy the files (via Windows Explorer) over to your Bookshelf directory under the GEB Librarian home directory.

Word of caution, do not put the 1150 .imp in the same GEB Bookshelf as the 1200 .imp as GEB Librarian will get confused and the ebooks will not transfer properly. The reason seems to be that the ebooks were created at the same time and hence have the same Unique Edition ID (I think). Anyways, to be safe, just don't mix the resulting .IMPs in the same Bookshelf. Just segregate 1150 and 1200 .IMPs.
FAQ: I want to get Mobi2IMP, but don't want to use the Installer, for personal reasons!
The Mobi2IMP Dev Hub Download section will continue to host the current Mobi2IMP dos executable for each release version i.e. 'Mobi2IMP-9.4-dos.zip'. Also, the Dev Hub site has the latest Mobi2IMP noSamples and noInstaller version i.e. 'Mobi2IMP-9.4-noSamples-noInstaller.zip'. These versions are for more experienced users who know what the Installer does and thus can avoid using it.

Last edited by nrapallo; 06-11-2008 at 10:53 PM.
nrapallo is offline   Reply With Quote
Advert
Old 03-22-2008, 01:10 PM   #3
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
I just went to the development site and tried to download stuff. The pl file is forbidden (likely a permission problem) and the zip file is much smaller than the one above in the forum. As a matter of fact the exe file is the same size as the zip file above but the zip file on the development site uncompresses to only 2.6 meg. Seems to be a problem somewhere.

Dale
DaleDe is offline   Reply With Quote
Old 03-22-2008, 03:15 PM   #4
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 DaleDe View Post
I just went to the development site and tried to download stuff. The pl file is forbidden (likely a permission problem) and the zip file is much smaller than the one above in the forum. As a matter of fact the exe file is the same size as the zip file above but the zip file on the development site uncompresses to only 2.6 meg. Seems to be a problem somewhere.

Dale
The Development Hub site is still a "work in progress..."; most things haven't fully been setup yet. I'm learning as I go. I'll see what could be wrong.

In the meantime, use the Windows Installer .zip in the first post above for now. It will 'install' the Mobi2IMP GUI 9.1 program (Mobi2IMP-gui.exe) along with dos executable (Mobi2IMP.exe), source (mobi2imp.pl), documentation and some samples.

By the way, the icon for Mobi2IMP that gets put in your Start Menu, can be later copied to the desktop for easier access.
EDIT: Ok this Dev Hub stuff is weird. The source mobi2imp.pl there is 'Forbidden' due to the .pl extension. I just replaced it with mobi2imp.pl.txt and it works now! Also, the 9 MB .exe at the Dev Hub site is the same file within the Windows Installer .zip above. The MobileRead forums do not allow .exe files to be attached (and for good reason!) so it shows up here as a .zip. The Mobi2IMP-exe.zip at the Dev Hub is just the dos executable not the GUI. Hope this helps explain things.

Last edited by nrapallo; 03-22-2008 at 03:35 PM.
nrapallo is offline   Reply With Quote
Old 03-22-2008, 06:54 PM   #5
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
yeah baby !! a gooey interface ! AND auto headers !! pretty soon, i won't need to tweak the code at all, anymore...
zelda_pinwheel is offline   Reply With Quote
Advert
Old 03-22-2008, 11:04 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,433
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Would it be possible to make a version 9.1 that has no GUI bloat that only uses the command prompt please? Before 9.1 i twas a nice simple program, easy to use without the need for an installer. Thanks!
JSWolf is offline   Reply With Quote
Old 03-22-2008, 11:17 PM   #7
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 JSWolf View Post
Would it be possible to make a version 9.1 that has no GUI bloat that only uses the command prompt please? Before 9.1 i twas a nice simple program, easy to use without the need for an installer. Thanks!
Jon, the Dev Hub has the file Mobi2IMP-exe.zip which contains only the dos executable and no GUI frontend.

The GUI is not the bloat here; it is the samples that I included for novices to experiment with. The samples comprise almost 75% of the size of the installer. The GUI (Mobi2IMP-gui.exe) is very tight and efficient at only 61 KB compared to the dos executable (Mobi2IMP.exe) at 2.6 MB!

Try the Windows installer and then just delete its samples directory (I know YOU don't need any samples)! It is easy to use and just as powerful as the dos executable (except for batch processing of many files).
nrapallo is offline   Reply With Quote
Old 03-22-2008, 11:24 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,433
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Could we have a ZIP file with just the GUI, the non-GUI and the documentation. The GUI and the non-GUI really don't need to be installed in order to work.

I'll give the GUI a go and see how it works. And well done!
JSWolf is offline   Reply With Quote
Old 03-22-2008, 11:44 PM   #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 JSWolf View Post
One problem with the windows installer is that it creates and adds a mess of files and directories I don't need or want Plus, it also puts it in a place that's not where I want it. And if I tell the installer to install it where I want, I have files I have to delete. Plus, I don't want an uninstall added to my system as I liked it being a nice simple no install version.

What I am saying is this needs to be like it used to be for those of us who aren't novices. What should happen in the ZIP file should contain all the files the installer installs without the installer. Then we can pick and choose what bits we want and were to put them.
Attached in the .zip is Mobi2IMP 9.1 without the installer and samples. Contains all important files and you can pick and choose which ones you want to keep. BTW, the GUI requires the default location of the dos executable/command file so for 'roll-your-own' types, it may not function.

Hope this helps.
Attached Files
File Type: zip Mobi2IMP-9.1-noGUI-noInstaller.zip (1.67 MB, 1982 views)
nrapallo is offline   Reply With Quote
Old 03-23-2008, 09:41 AM   #10
scruffy
Enthusiast
scruffy has a complete set of Star Wars action figures.scruffy has a complete set of Star Wars action figures.scruffy has a complete set of Star Wars action figures.scruffy has a complete set of Star Wars action figures.
 
Posts: 29
Karma: 324
Join Date: Mar 2008
Device: ebookwise, n800, tablet, etc
Thumbs up Recursive batch conversion?

The only thing missing now is the option to do a recursive conversion, over a whole directory of files... the current batch file only does within a single folder/directory.

Give us the ability to mass convert via the GUI, since you are calling the commandline program with settings, just build the tree (given a directory) and call it for each matching file found (ie prc,mobi,pdb or all), same settings for each.
scruffy is offline   Reply With Quote
Old 03-23-2008, 12:12 PM   #11
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 scruffy View Post
The only thing missing now is the option to do a recursive conversion, over a whole directory of files... the current batch file only does within a single folder/directory.

Give us the ability to mass convert via the GUI, since you are calling the commandline program with settings, just build the tree (given a directory) and call it for each matching file found (ie prc,mobi,pdb or all), same settings for each.
And how many different times are you going to do this? Anyway, here is a solution without using the GUI directly ...

As you know, the GUI is only a front-end for the command-line program. After done, the dos box/command prompt remains. Just copy the top of the screen where your calling options are and paste them into 'prc2imp.bat' in place of the '--verbose'.

Now, in the 'prc2imp.bat' file, place '/r' between 'for' and '%%i' and you'll get a recursive convert with YOUR options! Should look like this:

Code:
for /r %%i in (*.prc)  do mobi2imp.exe --verbose "%%i" "%%~ni"
You will end up converting all your files, recursively.

And how many different times are you going to do this?
nrapallo is offline   Reply With Quote
Old 03-23-2008, 12:39 PM   #12
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
First impressions

i just used the new version to convert HarryT's version of Jane Austen's Pride and Prejudice (illustrated), so i thought i would give my own first impressions (sorry for the pun ). this is partly for Nick, and partly for other people interested in making conversions, who may not have a lot of experience / technical knowledge. be not afraid ! it's really easy.

overall, brilliant ! i reinstalled eBook Publisher (i had that bug, where the supposed 1150 output was actually a 1200 file), and the output easily created imp (1150), imp (1200), opf and oeb files, and also left the html file. so from here, i could make any other format i wanted to, refine the output i already got, or just save the sources as a precaution for possible future conversion to new formats. it required little to no effort / technical knowledge on my part, which means that conversion is now accessible to a lot more people than before, which could be really great news for the upload section !

some questions / suggestions for v9.2

1. css indents since you can specify "no indent", i assume the para indent is added / kept by the conversion tool. however looking at the code, i notice that the indents are made using non-breaking spaces, rather than defining an indent in em in the css code (in fact, the indent is defined, as 0em). so, why not make the indent using the css ? it would be more elegant code and lighter files... and it shouldn't be too hard to modify, since the css statement is already there. unless it is to avoid problems with images ?

2. batch conversions as other posters have mentioned, i would love to be able to make a batch conversion (like with the .bat files from before the gui), but using the gui since there are other options which i appreciate (headers !!!). is this possible ? how ?
[EDIT : it looks like we were posting at the same time ! now there is a solution for batch conversions, great ! i will test it out right away, since i have more Austen to do... ]

3. speaking of headers.... first, yay !! thanks so much for adding that ! it's a little detail that i find really important and it's great that i don't have to add them by hand anymore ! now, since we have them, what about adding the option to format them in font-family:smallfont ? i personally prefer this, it sets the header off better from the body text and makes it less intrusive, while still being present. also, it can be really useful, in the case of overly-long titles, to gain the extra bit of space so it stays on one line...

well, that's all that strikes me ! once again, thank you for this excellent tool. have a drink on me, just tell the barman to put it on my tab !

Last edited by zelda_pinwheel; 03-23-2008 at 12:42 PM.
zelda_pinwheel is offline   Reply With Quote
Old 03-23-2008, 01:10 PM   #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 zelda_pinwheel View Post
i just used the new version to convert HarryT's version of Jane Austen's Pride and Prejudice (illustrated), so i thought i would give my own first impressions (sorry for the pun ). this is partly for Nick, and partly for other people interested in making conversions, who may not have a lot of experience / technical knowledge. be not afraid ! it's really easy.

overall, brilliant ! i reinstalled eBook Publisher (i had that bug, where the supposed 1150 output was actually a 1200 file), and the output easily created imp (1150), imp (1200), opf and oeb files, and also left the html file. so from here, i could make any other format i wanted to, refine the output i already got, or just save the sources as a precaution for possible future conversion to new formats. it required little to no effort / technical knowledge on my part, which means that conversion is now accessible to a lot more people than before, which could be really great news for the upload section !
Thanks for the accolades!

That "1200 instead of 1150" bug is going to make me create a FAQ!!!

Quote:
some questions / suggestions for v9.2

1. css indents since you can specify "no indent", i assume the para indent is added / kept by the conversion tool. however looking at the code, i notice that the indents are made using non-breaking spaces, rather than defining an indent in em in the css code (in fact, the indent is defined, as 0em). so, why not make the indent using the css ? it would be more elegant code and lighter files... and it shouldn't be too hard to modify, since the css statement is already there. unless it is to avoid problems with images ?
The 'non-breaking spaces' you see were in the original .prc (probably put there as a pseudo-margin by the BookDesigner program-don't get me started). Using CSS, I do add a '1em' (width of the 'm' character) indent that can be turned off with '--noindent'. I can't/won't get rid of the 'non-breaking spaces'.

Quote:
2. batch conversions as other posters have mentioned, i would love to be able to make a batch conversion (like with the .bat files from before the gui), but using the gui since there are other options which i appreciate (headers !!!). is this possible ? how ?
[EDIT : it looks like we were posting at the same time ! now there is a solution for batch conversions, great ! i will test it out right away, since i have more Austen to do... ]
I 'borrowed' this idea from PDFRead's author, Ashish Kulkarni (and his installer and his GUI idea...)

Quote:
3. speaking of headers.... first, yay !! thanks so much for adding that ! it's a little detail that i find really important and it's great that i don't have to add them by hand anymore ! now, since we have them, what about adding the option to format them in font-family:smallfont ? i personally prefer this, it sets the header off better from the body text and makes it less intrusive, while still being present. also, it can be really useful, in the case of overly-long titles, to gain the extra bit of space so it stays on one line...
I too like the professional look and fell of using 'font-family:smallfont' so this will definitely be part of version 9.2. In the meantime, just hand edit it in.

Quote:
well, that's all that strikes me ! once again, thank you for this excellent tool. have a drink on me, just tell the barman to put it on my tab !
nrapallo is offline   Reply With Quote
Old 03-23-2008, 05:46 PM   #14
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
first book made with the gooey version (and a few manual retouches) online. yay ! more to follow.

but, notwithstanding the tips from the Department of Recursiveness Department, batch file goodness remains abstruse for the moment. i did a new conversion, and looked at the top of the window, and i can't see anything that looks like formats, header options, alignment... what *exactly* should i copy to the .bat file ?? to be more clear, my DOS window has this at the very top :

Code:
MOBIHEADER uniquid: 1691981635
MOBIHEADER ver: 4
MOBIHEADER exthflg: 80
EXTH doctype: EXTH
EXTH length: 156
EXTH n_items: 7
ITEM: 64 14 - 100 20 - Austen, Jane
ITEM: 6e 11 - 110 17 - FIC004000
ITEM: 69 10 - 105 16 - Classics
ITEM: 12c 36 - 300 54 - 0x (no, sorry, i really can't be bothered to retype that gazillion-digit number by hand)
ITEM: c9 c - 201 12 - 0c00018
----> Cover Image_Index: 24
ITEM: cb c - 203 12 - 0x0000
ITEM: ca c - 202 12 0x00019
(and then there's all the images listed with names and dimensions and such).

if it helps, these are the output options i've selected in the interface :
- REB1200 .imp
- add cover image
- OEBFF .oeb
- no justify
- BD Notice will be removed
- no para sep.
- Header + Color FFFFFF
- verbose
- debug info
- bgcolor FFFFFF

[PRE-EMPTIVE EDIT : it seemed to me that the first info of my DOS window must be getting cut off (i don't know if there is a maximum length to a DOS window ?), so i did a conversion on a very small mobi file with no images, and i unselected "debug info". problem solved, i can see the options at the top of the window. i'm leaving this part of the message though, in case someone else is as big a goon when it comes to this stuff as me i'm going to try the recursive batch repetitive conversion recursiveness now. further updates as events warrant ]
zelda_pinwheel is offline   Reply With Quote
Old 03-23-2008, 06:52 PM   #15
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
favorable and prosperous termination of several and multiple attempts and endeavors

thank you, Department of Recursiveness Department, batch processing works ! i have imp versions of all Harry's Austen books now, just cleaning up the code a little bit and fixing the illustrations before uploading them.

a question about that : i put all my mobi files to be converted in the mobi2imp\bin directory in my system drive (where the .bat file is), but i have the impression that the "installer" doesn't so much "install" as "uncompress" the file... so, if i wanted to do this work on a different drive (i like to leave my system drive exclusively for my system), can i just move the entire mobi2imp directory ? or should i only move the .bat and .exe files to the directory with my mobi files ? or should i reinstall it to the I drive ? or ???

as for "don't get me started" on BookDesigner program... seriously ! that thing makes some wacky code... what's up with the open <p> tags before the images, but no closing p tag... or the double tags like <i><i> (...) </i></i> ?? why ??

i've been following the thread about writing a new ebook creation tool, i really hope they do it...

in the meantime, i should have enough to keep me busy with eBookPublisher and mobi2imp...
zelda_pinwheel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DR800 Future GUI enhancements: pop-ups, fly-outs, toolbars & more jm35 iRex 3 05-25-2010 02:41 PM
GUI doesn't show up in Windows morphine Calibre 3 09-04-2009 06:44 AM
GUI Frontend for python scripts [windows] - seeking mod input first sherman Workshop 7 04-27-2009 02:04 AM
[Librie-Dev] Librie RSS Reader (Windows GUI) v0.31b quantumskie Legacy E-Book Devices 0 11-30-2006 11:37 AM
[Librie-Dev] Librie RSS Reader v0.2b (Windows GUI) *needs XylogParser.dll* quantumskie Legacy E-Book Devices 0 11-27-2006 02:34 PM


All times are GMT -4. The time now is 06:29 PM.


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