View Single Post
Old 04-28-2009, 12:19 AM   #33
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
Better access to temporary files...

OK, I took ancalex's progress with copying those temporary files to the source file's directory and tried to eliminate those two extra parameters recently added for userTmpDir and docTmpDir as those are known within the .js script. The results are posted below in any2IMP v0.1.2. The .zip includes the source .au3, compiled .exe and modified .js script.

Basically, I used the variable project.SourceFile(0) to provide me with the filename of the first spine entry (zero-based index) in the .opf; which will usually contain the source (html) .tmp file I need to modify before the .imp conversion takes place.

This file can then be opened and various replace operations can be applied to remove inconsistencies or add functionality. I prefer small margins, big pictures, and use of the default fonts and will develop some replace regex once I brush up on how jscript implements these.
Attached Files
File Type: zip any2IMP-v0.1.2.zip (301.8 KB, 891 views)
nrapallo is offline   Reply With Quote