View Single Post
Old 02-10-2008, 12:16 AM   #190
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
Hi, tompe!

I have recently been converting .prc (mobipocket) files into .IMP format using your 'mobi2html' and my own perl script. Especially .prc with color illustrations and images.

I too have had to filter/change (I'm not complaining here) mobi specific tags, in particular:

1. My text editor opens the resulting .html as one-line (and word-wrapped). As a result, I like to replace '/div>' with '/div>\n' to get some line-breaks for visual purposes. Makes some things 'line-up' vertically to aid in error-correcting.

2. '<mbp: pagebreak' with '<p style="page-break-before:always' to avoid format-specific tags.

For personal reasons/preferences, I also change:

3. '<body' with '<body style="margin-left:2%; margin-right:2%; text-align:justify' to allow small margins and justified text. For those that do not want this, then it would be easy to change as this would appear in only one place, at the beginning of the file.

4. '<img align="baseline"' with '<img' as the eBook Publisher software I use strangely positions ALL images on the first page with the baseline keyword there.

Please note that to ensure the maximum conversion, I often leave out a leading '<' or trailing '>' as seen above. These replacements above work better by doing this.

By the way, would it be easy to incorporate my 'html2imp.pl' perl script within your 'Mobiperl' so that you can also produce .IMP format ebooks? You could call it 'mobi2imp'. Sorry, but I don't mean to lengthen your to-do list too much.

-Nick

Last edited by nrapallo; 02-10-2008 at 12:19 AM. Reason: typo
nrapallo is offline   Reply With Quote