View Full Version : Page setting of the first page in a mobi file


FouxDuFafa
11-23-2009, 01:11 PM
Hello everyone!

I put this topic here (instead of the Workshop section) because it is heavily mobi related.

I was looking to several mobi eBooks to find good ideas of page settings :bookworm: And then, I opened this: http://www.mobipocket.com/en/eBooks/searchebooks.asp?Language=FR&searchStr=christmas+to+remember&searchType=All&lang=EN&orderBy=best# (first link, "Essai gratuit")

On the first page (page 2 actually in the given example), I found a very interesting feature: The vertical space between the title and the image adapts itself depending on the page size, instead of being fixed.
(see attachments for visual explanation)

As you can imagine since I'm posting a thread, I tried hard but I still don't know how to recreate this effect. :chinscratch: I would appreciate some :help:

Thank you

Jellby
11-23-2009, 02:18 PM
The code looks like this:

<mbp:pagebreak/>
<div height="7%"></div>
<div> <h2 width="0%" align="center"><font size="7"><b><span><b>A C<span><font size="4">HRISTMAS</font></span>[T<span><font size="4">O</font></span> R<span><font size="4">EMEMBER</font></span></b></span></b></font></h2>
<div height="5%"></div> <h2 width="0%" align="center"><font size="5"><b><span><b><span><i>Kay[Stockham</i></span></b></span></b></font></h2>
<div height="40%"></div>
<div height="3%"></div>
<p width="0%" align="center"><img recindex="00002" alt="image"/></p>
<div height="3%"></div>
<p width="0%" align="center"><font size="2">TORONTO &bull; NEW YORK &bull; LONDON<br/> AMSTERDAM &bull; PARIS[&bull; SYDNEY &bull; HAMBURG<br/> STOCKHOLM &bull; ATHENS &bull; TOKYO &bull; MILAN &bull; MADRID<br/> PRAGUE[&bull; WARSAW &bull; BUDAPEST &bull; AUCKLAND</font></p>
<div height="0%"></div> </div> </div>
<div> <mbp:pagebreak/>

The bold part should be the blank space.

FouxDuFafa
11-27-2009, 12:49 PM
OK! Thank you!!
How did you do to retrieve the code from the mobi file?

Jellby
11-27-2009, 02:35 PM
OK! Thank you!!
How did you do to retrieve the code from the mobi file?

I used MobiPerl (https://dev.mobileread.com/trac/mobiperl)'s mobi2html.

FouxDuFafa
11-27-2009, 02:50 PM
OK. Thanks for all the information

Terisa de morgan
11-27-2009, 03:21 PM
You can use calibre to retrieve it too.

FouxDuFafa
12-03-2009, 01:20 PM
How does it work on Calibre?
When I add the .mobi book, it doesn't convert it to html, and I couldn't find a way to visualize the tags.