![]() |
#271 | |
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:
c:\>mobi2imp.exe "Overclocked Stories of the Future Present.prc" Overclocked However, the .prc and .imp you referred to appear to have been built differently with regards to paragraph separation. Also, that .imp file created by BD used the 'book cover' feature, and as such the 'cover' image isn't referred to in the source .html and my perl script could not add it. However, since the 'cover' image was included in the .prc, I quickly edited the source .html to add the 'cover' as the first thing after the <BODY> tag with: Code:
<div align="center"><p align="center"><img src="record-132.JPG" /></div> This .prc to .imp procedure is almost as good as having the original source files!!! I feel slightly voyeuristic. -Nick |
|
![]() |
![]() |
![]() |
#272 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
This is a good reason to use a script language. You avoid all these problems with incompatible binaries.
|
![]() |
![]() |
Advert | |
|
![]() |
#273 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,676
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
So is this new fixed IMP better then thge one from Book Designer other then the font size? In other words, should I download a Windows Binary of your script to use to make the IMP version after I've made the PRC? If you say yes it is better, I'll replace my IMP version with yours for people to download.
|
![]() |
![]() |
![]() |
#274 |
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
|
Can you post another BD build of this book in .IMP format (after updating the PubUtil21.dll as per my recent tip)?
Then I will compare the two and give you my opinion. -Nick |
![]() |
![]() |
![]() |
#275 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,676
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Here it is....
|
![]() |
![]() |
Advert | |
|
![]() |
#276 |
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
|
When comparing the two .IMP versions of "Overclocked Stories of the Future Present.prc"; (1) produced by 'mobi2imp' with the 'cover' page fix, and (2) produced by you using the BD with the new PubUtil21.dll, have the following differences:
True differences: - Cover image and interior graphics are 16 grayscale in (1) and B & W dithered in (2) - (1) can be produced without the original 'source' files (only need .prc); Different user selectable options: - (1) has a small (2%) left & right margin; (2) has nomargins - (1) has paragraphs (blank line) separation; (2) has no blank line separation Other than the above, they use the same 'small' font size (one point larger than the previous 'x-small' BD build) for the body text. The headings look the same and one would think the books ARE the same. Hope this helps. -Nick |
![]() |
![]() |
![]() |
#277 | |
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 summary: The original BD version produced by you uses 'x-small' font. -Nick
The revised BD version produced by you uses 'small' font. The converted .prc produced by my 'mobi2imp' uses 'small' font. |
|
![]() |
![]() |
![]() |
#278 | |
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 - version 6 ready for Mobiperl distribution
Quote:
I updated mobi2imp.pl from version 2 (included in the Mobiperl v0.0.31 distribution) to version 6. Please include this version for any future distribution. Things that changed: version 4: - 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: - now allow 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 '--largemargins' (5%), '--hugemargins' (8%) and even '--nomargins' (0%) - you can change the default text-align from justify to '--nojustify' (left aligned). - further to Kovidgoyal's recent 'mobi2oeb' post, now can output in OEBFF (.oeb) output. As a result, the output can be any and all at once of: '--1150' .IMP, '--1200' .IMP, '--1100' .rb and '--oeb' OEBFF! version 6: - 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 for your suggestion here)! To run this program, I normally use a windows batch file, like: Code:
@echo off rem Example batch file that can be used to procees many files at once. rem [Category Author Title] are all optional, with same being extracted from source file. rem ExplodeDir = . means use current directory, but not useful for multiple files. rem add the switch --OEB, --1200, --1100 to simutaneously create these versions along with 1150 .IMP rem add the switch --1150 to conversly not create the 1150 version rem add the switch --nomargins, --tinymargins --largemargins, --hugemargins to set left-right margins to 0%, 2px, 5% and 8% respectively rem add the switch --smallerfont, --largerfont, --nojustfiy to use 'x-small', 'medium' font size or no full justification rem rem Source ExplodeDir [Category Author Title] rem ====== ========== ======== ====== ===== rem perl mobi2imp.pl "Oliver Twist.prc" Oliver Classics "Dickens, Charles" "Oliver Twist" rem perl mobi2imp.pl "Alice_In_Wonderland.mobi" Alice Classics "Carroll, Lewis" "Alice In Wonderland" rem perl mobi2imp.pl "Alice_In_Wonderland.mobi" . rem rem mobi2imp.exe --oeb --smallerfont "Alice_In_Wonderland.mobi" Alice rem mobi2imp.exe --1200 --largerfont --tinymargins "Oliver Twist.prc" Oliver mobi2imp.exe SpaceEncyclopedia.mobi Space mobi2imp.exe --smallerfont --largemargins "Alice_In_Wonderland.mobi" Alice mobi2imp.exe --nojustify --nomargins "Oliver Twist.prc" Oliver pause Last edited by nrapallo; 02-18-2008 at 12:36 PM. Reason: forgot to address this to tompe! |
|
![]() |
![]() |
![]() |
#279 |
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
|
Looks like mobi2imp is really coming along. How does it do TOC processing and chapter breaks. IMP needs a <a name="toc"></a> just ahead of the toc entry in order to get the jump to TOC to work properly (a choice on the customizable button). This is a hardcoded value. (That is another tip, by the way, for editing the html0 in BD.)
Dale |
![]() |
![]() |
![]() |
#280 | |
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:
I don't do any 'processing' of the HTML, only correct minor inconsistenies. I could just add to the beginning of EVERY file: Code:
<a name="toc"></a> Obvioulsy, you could choose to add it manually after using mobi2imp and double-clicking the .opf and use eBook Publisher for the manual build. -Nick |
|
![]() |
![]() |
![]() |
#281 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,676
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
nrapallo... I really dislike blank lines between paragraphs, hate them with a passion. Blank lines only belong to denote a new section in a chapter, not to tell me when I've hit a new paragraph. What sort of indenting do you have? So could you program them out before I use your script to make IMP from PRC? Otherwise, I'll have to stick with Book Designer to do IMP even though otherwise your script sounds better.
|
![]() |
![]() |
![]() |
#282 | |
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
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#283 | |
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:
If the orginal uses <div>..</div>, then I'm not sure why the blank lines would be there, other than a repeat of the above cause. Requires further exploration... -Nick |
|
![]() |
![]() |
![]() |
#284 | |
New York Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
|
Quote:
______ Dennis |
|
![]() |
![]() |
![]() |
#285 | |
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
|
Quote:
The latest version of the tool lets you select for 3 base font sizes but the consensus of the manufacturer is that small is better which is why they changed it. Dale |
|
![]() |
![]() |
![]() |
Tags |
mobi2mobi, mobils |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools | Jad | Kindle Formats | 476 | 03-15-2015 05:51 PM |
Tools for Editing Kindle .mobi Files? | GJN | Kindle Formats | 33 | 12-26-2013 02:05 PM |
Handy Perl Script to convert HTML0 files to smartquotes | maggotb0y | Sony Reader | 0 | 04-12-2007 11:49 AM |
PRS-500 Perl tools to generate Reader content | TadW | Sony Reader Dev Corner | 0 | 01-08-2007 05:55 AM |
gmail copy (gmcp) - Perl script to copy files to/from Gmail | Colin Dunstan | Lounge | 0 | 09-04-2004 01:24 PM |