OK, let the
enhancements begin!
I changed line 83 in
any2IMP.js to:
This will allow margins to be better supported in the resulting ebooks. I think this is a MUST!
I added another "convert from" if statement before line 40 in
any2IMP.js, namely:
Code:
if (szBaseNameExt == ".opf"){
WScript.StdOut.WriteLine("Converting... Please wait");
oBuilder.BuildFromProject(
sDirName + "\\" + fileName);
WScript.StdOut.WriteLine("Conversion completed");
WScript.Quit();
}
Now only if we can get access to the .tmp (html) file that gets created (and then deleted) by eBook Publisher as well as the images. I tried .epub, but the images are not stored (a bug with eBook Publisher). Previously, I was able to overcome this by first creating the older .oeb and then thereafter creating the .epub (see this solution in my latest
mobi2imp.pl v9.4d)
Oh, by the way, with the above ability to convert directly from .opf to .imp, you will need to tweak in
any2IMP.au3 line 44 again to be:
Code:
$OpenedFileName = FileOpenDialog("Choose file...", $LastDir, "MS Word .doc files (*.doc)|MS Word .rtf files (*.rtf)|MS PPT .ppt files (*.ppt;*.pps)|HTML .htm files (*.htm*)|TEXT .txt files (*.txt)|OPF .opf files (*.opf)|All Files (*.*)")
.
Enjoy!