View Single Post
Old 01-05-2009, 09:39 PM   #23
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
Round two: Summary of initial findings...

Quote:
Originally Posted by pdurrant View Post
On a stylistic note, I prefer to specify no space between paragraphs (by setting margin-top and margin-bottom to 0em), but to have a text indent on the first line of each paragraph, except the first paragraph of each chapter. But that it a personal preference.
I appreciate that there will be a lot of personal preferences when creating ebooks, so I don't really want to concentrate on what does work, but would rather focus on what doesn't work when we each make .prc/.mobi, .lrf/.epub or .imp ebooks. Your preferences "work" when I create a .imp from your Mobipocket-specific .htm, except:
  • My reader cannot adjust L/R margins so I usually have to give it a fixed (small) margin of 2% (but 2px works as well) so I needed to leave (re-introduce) the body {CSS rule} in the <style> section.
  • My reader does not display a cover image unless it is embedded at the beginning of the ebook. I needed to reinsert the code for that first illustration. On second thoughts, I could add another file to the .opf <spine>, namely cover.html (to display the cover image like I do in Mobi2IMP) which would then be separate from the main .html. What do you think?
  • I put back the "Contents" after the title page and made it centered now by changing the class used in the <div> to 'center'. It now works better. The location of the TOC is not the issue here, I just wanted to show you that it could be "fixed" and then appear like my original .imp/.lrf ebooks.
  • Something weird is happening in the .imp ebook when the <h2 id=> tag is combined with the CSS rule for "page-break-before". The TOC entries bring me to the page BEFORE the Chapter title in the .imp version. Strange behaviour!
  • I decided to see if I could emulate the <pre> tag by changing it to <p><small><small> and then for each line within the <pre></pre> pairs, add a <BR> to each line easily with a Text Editor. It somewhat worked!

Quote:
I do like the idea of coming up with a 'generic' HTML format that works with the software to create multiple formats. I've avoided creating LRF or other files, because I can't test how they'll look.

For Mobipocket, you need an extra item in the opf file in the metadata part of the manifest:

<x-metadata><EmbeddedCover>images\illus-0001-1.jpg</EmbeddedCover></x-metadata>

and also a guide item to the table of contents is a good idea, just before the end of the package

<guide><reference type="toc" title="Table of Contents" href="Little%20Stories%20for%20Little%20Children.h tm%23contents"></reference></guide>
For .imp creation, I too need extra metadata in the <x-metadata> block for the Mobipocket .opf to load into my .imp eBook Publisher software. I've now added it, but my program ignores your cover image unfortunately. My program "chokes" on the 'url spaceless encoding' and I had to restore the original .htm filename (with spaces) for it to work. Also, your pictures in the images directory you posted along with your .prc ebook were washed and were a blueish/gray tint/hue. They did not appear the same as the original PG source images. Also, they were in a jpeg (jfif) encoding that my program did not recognize, so I just reverted back to the PG images again.

Quote:
Anyway, I attach a zip of my html,opf & images (for which I corrected the white point), along with my prc.

Paul
OK, I herein attach two .zip files for you (and all) to see what "compromises" can be reached in order to be able to use the same .html source files to again make different format ebooks, in this case .imp and .prc.

This is tricky, so please follow:

Little Stories for Little Children-use prc to imp.zip is a file that used your Mobipocket-specific .html/.opf and I changed to create a valid .imp with the above changes implemented. I also produced a new .prc from that revised/changed .htm for you to see if it looks acceptable (format-wise, not necessarily personal preference-wise. )

Little Stories for Little Children-use imp to prc.zip is a file that used my IMP-specific .html/.opf and I changed to create a valid .prc and closer to what you want. I also produced a new .imp from that revised/changed .htm for you to see how that now looks to me.

I hope we are converging...

Last edited by nrapallo; 01-06-2009 at 09:01 AM. Reason: cover.html as another alternative
nrapallo is offline   Reply With Quote