View Single Post
Old 01-10-2009, 04:49 PM   #41
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 =X= View Post
Nick many thanks for the Perl Script. You did a fantastic job. With a little elbow grease I was able to port your PERL script to VBA and integrate it with the BookCreator tool. The IMP files created from BookCreator are excellent! Many thanks!

Also one recommendation. Change the CSS=1, even though the documentation says the CSS feature is obsolete and not used, I found this to be incorrect. The CSS=1 is required to preserve the MS Word format.

=X=
Wow, great discovery!!!

I just tried it and the .doc to .imp sample conversions look absolutely marvellous!

I wasn't too happy with my sample conversions when I had
Code:
        $project->{CSS} = 0;
and I was thinking about how best to add some internal manipulations to get it to look better, but now I don't have to because of your great find! I will revise the script (see below .pl) to now use:
Code:
        $project->{CSS} = 1;
Check out the samples I reconverted (using this CSS=1) into the 1150 ..imp , 1200 .imp and .oeb formats.

EDIT: I was able to unpack the .oeb version and display, with the Preview button, different .imp and _1200.imp showing two columns with nice margins! They are not in the .zip files above, but listed below. Looks nice indeed! (Thanks =X=)

The attached source html from the .oeb version did not create the same nice margins. I am trying to figure out why the Preview shows the nice margins but the Build Edition... doesn't. I think it has to do with the "oeb-column" settings.
Attached Files
File Type: zip samples_1150.zip (93.9 KB, 1173 views)
File Type: zip samples_1200.zip (91.9 KB, 1179 views)
File Type: zip samples_oeb.zip (287.6 KB, 1193 views)
File Type: pl Word2imp.pl (4.8 KB, 1036 views)
File Type: imp format.doc-viewer.imp (37.3 KB, 1177 views)
File Type: imp format.doc-viewer_1200.imp (35.8 KB, 1181 views)
File Type: zip format.doc.oeb_source_html.zip (52.5 KB, 1178 views)

Last edited by nrapallo; 01-10-2009 at 08:43 PM. Reason: different .imp and _1200.imp showing two columns with nice margins
nrapallo is offline   Reply With Quote