03-22-2008, 02:22 AM | #1 |
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
|
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:
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:
- 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 Last edited by nrapallo; 02-13-2010 at 10:52 AM. Reason: updated to version 9.4 (now also need Mobi2IMP-9.4e.zip) |
03-22-2008, 02:23 AM | #2 |
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
|
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!!! FAQ: GEB (eBookwise) Librarian fails to transfer/load the resulting .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! 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. FAQ: I want to get Mobi2IMP, but don't want to use the Installer, for personal reasons!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. 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. |
Advert | |
|
03-22-2008, 01:10 PM | #3 |
Grand Sorcerer
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 |
03-22-2008, 03:15 PM | #4 | |
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:
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. |
|
03-22-2008, 06:54 PM | #5 |
zeldinha zippy zeldissima
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...
|
Advert | |
|
03-22-2008, 11:04 PM | #6 |
Resident Curmudgeon
Posts: 76,491
Karma: 136564766
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!
|
03-22-2008, 11:17 PM | #7 | |
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:
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). |
|
03-22-2008, 11:24 PM | #8 |
Resident Curmudgeon
Posts: 76,491
Karma: 136564766
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! |
03-22-2008, 11:44 PM | #9 | |
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:
Hope this helps. |
|
03-23-2008, 09:41 AM | #10 |
Enthusiast
Posts: 29
Karma: 324
Join Date: Mar 2008
Device: ebookwise, n800, tablet, etc
|
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. |
03-23-2008, 12:12 PM | #11 | |
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:
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" And how many different times are you going to do this? |
|
03-23-2008, 12:39 PM | #12 |
zeldinha zippy zeldissima
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. |
03-23-2008, 01:10 PM | #13 | |||||
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:
That "1200 instead of 1150" bug is going to make me create a FAQ!!! Quote:
Quote:
Quote:
Quote:
|
|||||
03-23-2008, 05:46 PM | #14 |
zeldinha zippy zeldissima
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 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 ] |
03-23-2008, 06:52 PM | #15 |
zeldinha zippy zeldissima
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... |
|
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 |